Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for user_sets and user_set versioning #113

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

pstaabp
Copy link
Member

@pstaabp pstaabp commented Aug 21, 2022

This adds tests (both perl and jest) for user_sets and set versioning. A few changes have been made as well:

  • on routes in which course_user_id was used, user_id is used instead for easier handling of permissions mostly related to those with self_access.
  • there is a route for user_set for get, put, delete that includes the set_version as well, since this is needed for uniqueness.
  • there are routes kept without set_version that will default to set_version => 0

This depends on #112

@pstaabp pstaabp force-pushed the add-mojo-user-set-test branch 3 times, most recently from 6948b58 to 44c53f5 Compare August 25, 2022 09:32
WIP: cleanup the tests


WIP: deleting from db--update store tests
WIP: cleanup the tests


WIP: deleting from db--update store tests
WIP: add user-set tests to mojolicious routes


WIP: add user-set tests to mojolicious routes


WIP: updated user_sets tests to check for permissions

FIX: update the way the set_version param is fetched to avoid error.

WIP: new set_version mojolicious test.

WIP: new set_version mojolicious test.


WIP: deleting from db--update store tests

WIP: cleanup the tests

WIP: deleting from db--update store tests
WIP: send message from mojolicious layer and more cleanup.
FIX: update the pinia store tests.

WIP: add user-set tests to mojolicious
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant