Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Centralize schedule metadata and make it editable by Data Administrators #2018
Future improvements to CALC point to a need for Data Administrators to be able to add new schedule data to CALC without requiring changes to the codebase.
For example, Kelly would like to augment his Region 10 bulk upload with rows containing data about Region 6 schedules. For his part, this would just require setting the
Currently, the list of schedules available in CALC is surfaced in the following places:
Currently these locations have hard-coded lists, and changing the schedule list requires visiting each list and making the relevant changes.
This PR changes the list to be stored in the database and be editable in the admin UI by Data Administrators, with an initial data migration that pre-populates the list to its current settings.
Data Administrators will see this in the admin UI:
Once they click on it, they will see a list of schedules:
If they click on one of them, they can edit it:
The "Schedule" field above may be a bit confusing: put more concretely, it's the value the
This approach makes sense to me. I like the flexibility it builds in, and the logic is straightforward. I think the only part that feels a bit odd is having Yet Another Django App (YADA) just for contracts, but I'm not sure it makes sense to put this anywhere else, either.