-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the set of milestones when a milestone answer session is created (#…
…191) - MilestoneAnswer - An answer is now created for every milestone when an answer session is created - The initial value of the answer is `-1` which indicates the user has not yet submitted an answer for this milestone - Add `milestone_group_id` field for convenience when calculating statistics / feedback - get_milestone_groups - Now returns the milestones according to the MilestoneAnswers for the current session - This means the set of milestones is fixed and doesn't change even if a milestone expected_age changes such that it would no longer be selected for that session - update_milestone_answer - no longer creates an answer session if there is no existing unexpired one - either updates the existing answer for the supplied session, or returns 404 or 401 - Milestone component - all answers now exist, replace check for existence with check for `-1` to determine if the answer has already been answered - add types-python-dateutil to mypy pre-commit hook dependencies - remove out-dated comment & type ignores from related code - resolves #189
- Loading branch information
Showing
8 changed files
with
76 additions
and
55 deletions.
There are no files selected for viewing
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 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 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 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 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 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 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 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