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.
This PR adds the SQL and model for a table describing dashboard class groups. Since I don't imagine this will be a long-term thing, I didn't want to create a junction table as well, so the associated class IDs for a group are just stored as a list of integers in MySQL's
JSON
format.Additionally, this adds an endpoint
/dashboard-class-groups<code>
, which will return an object whoseclass_ids
field is list of class IDs associated with the class group corresponding to the given code. If the code isn't found, the response code is a 404 and the response will just contain an error message.