-
Notifications
You must be signed in to change notification settings - Fork 19
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
Integration tests, user importation, daily user course activity auto (cron job) importation #133
Merged
chrissantillan
merged 14 commits into
UnlockedLabs:main
from
PThorpe92:integration_tests
Mar 19, 2024
Merged
Integration tests, user importation, daily user course activity auto (cron job) importation #133
chrissantillan
merged 14 commits into
UnlockedLabs:main
from
PThorpe92:integration_tests
Mar 19, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PThorpe92
force-pushed
the
integration_tests
branch
from
March 14, 2024 16:04
4a965dd
to
b274fb2
Compare
PThorpe92
changed the title
Integration tests and canvas user importation
Integration tests, user importation, daily user course activity auto (cron job) importation
Mar 15, 2024
chrissantillan
approved these changes
Mar 15, 2024
chrissantillan
approved these changes
Mar 15, 2024
PThorpe92
force-pushed
the
integration_tests
branch
from
March 15, 2024 23:42
cec1165
to
4d739fa
Compare
PThorpe92
force-pushed
the
integration_tests
branch
from
March 18, 2024 21:25
7937c64
to
28f5df3
Compare
NOTE: @calisio has some UI changes being pushed to this branch before it's merged. |
chrissantillan
approved these changes
Mar 19, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OKAY
Changes in this PR:
Implement importing users from canvas.. currently this will import all unique users from canvas from the account that the master key is responsible for.
integration testing. This adds several tests for getting data from canvas. including one that imports all known users, then imports all the courses, and enrollments for each user.
UserCourseActivity.. Currently there are two fields on the Enrollment object from canvas that seem useless on their own.
alone, those are fairly useless, but if we collect them daily.. we can determine each day a user did or did not log in and access the course, and if we keep track daily of the amt of time, we can get a solid number or how many hours a user has spent on all their courses. helping @coledykstra populate his
github contribution
style component.So this creates a Job that runs every day and introduces the UserCourseActivity table, that will keep these metrics for each student.
Since we are fetching this data anyway daily, this opens a good opportunity to include other metrics from the users enrollment, (grades, etc), and calendar items (which i have another branch i'm already working on).
This adds protection for the ProviderPlatform API keys, and alters the front end to not show the key by default. There is now a toggle between showing and hiding the value, and by default the back end will not return the key. it must be requested individually by adding
api/v1/provider-platforms/{id}?show_key=true
. The tests have been adjusted to reflect this behavior.Plus lots more stuff i probably forgot by now