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

Throw ArgumentError when trying to change to a negative Weight. #1719

Merged
merged 8 commits into from
Aug 21, 2024

Conversation

Jonas-Sander
Copy link
Collaborator

The GradesService will now throw an ArgumentError when a negative Weight is provided.
To make this change I created the NonNegativeWeight class that is used internally, so that we "parse, don't validate".

@github-actions github-actions bot added testing feature: grades Users can add their grades to Sharezone. labels Aug 21, 2024
Copy link

Visit the preview URL for this PR (updated for commit 1246bbe):

https://sharezone-test--pr1719-grades-weight-error-5nhg7k0s.web.app

(expires Sat, 24 Aug 2024 11:23:01 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@Jonas-Sander Jonas-Sander merged commit 85b9317 into main Aug 21, 2024
36 checks passed
@Jonas-Sander Jonas-Sander deleted the grades-weight-error-on-negatives branch August 21, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: grades Users can add their grades to Sharezone. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant