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

Dashboard class groups #93

Merged
merged 3 commits into from
Oct 18, 2023
Merged

Conversation

Carifio24
Copy link
Member

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 whose class_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.

@Carifio24 Carifio24 merged commit e15e63b into cosmicds:main Oct 18, 2023
1 check passed
@johnarban johnarban linked an issue Oct 18, 2023 that may be closed by this pull request
@Carifio24 Carifio24 deleted the dashboard-class-groups branch October 16, 2024 04:40
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.

Set up new db tables for pilot educators
1 participant