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

Make passing ids to GradesService optional, create GradeInput,SubjectInput classes #1621

Merged
merged 8 commits into from
May 8, 2024

Conversation

Jonas-Sander
Copy link
Collaborator

@Jonas-Sander Jonas-Sander commented May 7, 2024

This PR enables the users of the GradesService to not need to generate Ids.

  • Adds SubjectInput and GradeInput class (have no Id field)
  • Make add methods return the Id of the newly created thing (term, subject, ...)
  • addCustomGradeType no longer takes GradeType, but rather properties
  • Make Grade class private since its only used for internal usage of GradesService now

Fixes #1535

@github-actions github-actions bot added testing feature: grades Users can add their grades to Sharezone. labels May 7, 2024
@Jonas-Sander Jonas-Sander changed the title Make passing ids to GradesService optional (they are generated by the service) Make passing ids to GradesService optional, use xxxInput classes May 7, 2024
@Jonas-Sander Jonas-Sander changed the title Make passing ids to GradesService optional, use xxxInput classes Make passing ids to GradesService optional, create GradeInput,SubjectInput classes May 7, 2024
Copy link

github-actions bot commented May 7, 2024

Visit the preview URL for this PR (updated for commit 2addfbe):

https://sharezone-test--pr1621-no-id-input-joupe4up.web.app

(expires Sat, 11 May 2024 10:18:03 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b

@Jonas-Sander Jonas-Sander marked this pull request as ready for review May 7, 2024 13:21
Copy link
Member

@nilsreichardt nilsreichardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Jonas-Sander Jonas-Sander added this pull request to the merge queue May 8, 2024
Merged via the queue into main with commit 96e7836 May 8, 2024
37 checks passed
@Jonas-Sander Jonas-Sander deleted the no-id-input branch May 8, 2024 11:13
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.

Let GradesService generate an Id for a Subject, Term, etc instead of having to pass it to the class
2 participants