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
Staff f22: Add job to update MongoDB for a single quarter / subject area #22
Merged
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
This adds the ability to submit asynchronous jobs in the backend, including one demonstration test job. Tests are included as well.
backend tests failed due to missing @AutoConfigureDataJpa annotation frontend tests had issues here and there
needed because we added the annotation that does automatic updatedAt createdAt attributes to each entity
We need to both generate and store these dates with their time zone, so that they get reported consistently regardless of whether the server's local time is Pacific, Eastern, GMT or whatever
It was tripping up mutation testing
Also adds ability for Storybooks to do some limited mocking of apis
It is internal to React and not exposed, so it cannot be tested
pconrad
changed the title
Staff f22 pc course job mongodb part
Staff f22: Add job to update MongoDB for a single quarter / subject area
Nov 22, 2022
pconrad
force-pushed
the
staff-f22-pc-course-job-mongodb-part
branch
from
November 23, 2022 00:38
142aa4c
to
4f842c4
Compare
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.
Overview
In this PR, we roll out a new feature that allows admins to update a MongoDB database with course information via an asynchronous job.
The intent is for this new feature to open up several new lines of development, especially for the -1 teams on courses:
Especially, this opens up the possibility to develop searches that are not supported by the UCSB Courses API, such as search by course (over multiple quarters) and search by instructor (over multiple quarters.)
It also opens up the possibility to add similar jobs that will:
User Story
As an admin
How to Test / Use this feature
Here's an outline, followed by some animations
Step 1: See MongoDB data:
This animation shows how to look at and do queries on MongoDB data:
Steps 2-3: Login as Admin, Load Subjects
Steps: 4-8: Running the job and waiting for it to finish (in this case, MATH courses in W23):
Step 9: See the MATH courses
The query is: