-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deleting custom grade types. (#1597)
Add `GradeService.deleteCustomGradeType`: ```dart /// Deletes a custom grade type and removes it from all weight maps. /// /// A custom grade type can only be deleted if it is not assigned to any grade /// or as the final grade type of any term, otherwise a /// [GradeTypeStillAssignedException] is thrown. /// /// Throws [GradeTypeNotFoundException] if the grade type with the given [id] /// does not exist. /// /// Throws [ArgumentError] if the grade type with the given [id] is a /// predefined grade type. void deleteCustomGradeType(GradeTypeId id) { ``` Fixes #1532
- Loading branch information
1 parent
0958128
commit d3298db
Showing
4 changed files
with
308 additions
and
0 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