You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding a new grade type (e.g. presentation) to the default weights of a default subject (written exam -> 50%, oral participation -> 50%) then the default weights are deleted and the final grade type of the subject is changed.
Steps to reproduce the bug
Go to the grades page
Tap on the add grade button
Select a grade and grade system (e.g. "2+", "1-6 (+-)")
Select a subject (e.g. "Deutsch")
Create a new term (e.g. "10/2")
Select that term
Create the grade
Tap on the newly created term
Tap on the edit icon of the subject
At "Berechnung der Fachnote" tap on "Neue Gewichtung hinzufügen"
Select a weighting that is not already added, e.g. "Präsentation"
It seems like when adding a new grade type weight, the subject WeightType setting is switched from WeightType.inheritFromTerm to WeightType.perGradeType (app/lib/grades/pages/subject_settings_page/subject_settings_page_controller.dart). Since the default grade type weights (written exam: 50%, oral participation: 50%) are coming from the term, after switching to WeightType.perGradeType they are "gone" from the view of the subject. The only weight type there will be the newly added grade type.
So: The UI doesn't update right away to show the switch from the WeightType settings of the term to the subjects. After closing and the re-opening the settings page it is correctly shown that only the grade type has a weight assigned.
What we should probably do is duplicate the weight settings from the term when switching the GradeType setting from WeightType.inheritFromTerm to WeightType.perGradeType.
Describe the bug
When adding a new grade type (e.g. presentation) to the default weights of a default subject (written exam -> 50%, oral participation -> 50%) then the default weights are deleted and the final grade type of the subject is changed.
Steps to reproduce the bug
Current broken behavior
When opening the subject settings again the
Expected behavior
Screenshots, videos or logs
sharezone.grade.type.bug.phone.mp4
Sharezone.grade.bug.new.grade.type.webm
Tested device
Context
Probably applies to a bug report by a user on discord: https://discord.com/channels/545668860859252746/1232365061717102704/1326862647596945419
The text was updated successfully, but these errors were encountered: