Skip to content

198 backend core services every class service - #202

Merged
thomasdejaeghere merged 15 commits into
developmentfrom
198-backend---core---services---every-class-service
Mar 11, 2025
Merged

198 backend core services every class service#202
thomasdejaeghere merged 15 commits into
developmentfrom
198-backend---core---services---every-class-service

Conversation

@lennertdr

@lennertdr lennertdr commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

Implemented:

  • GetClass (with various ways to get classes)
  • UpdateClass (with a partial object to only update necessary fields)
  • DeleteClass
  • CreateClass
    And tests for every case.

What else:

  • Added a new error for when the database failed to create a class.
  • Defined getUserClasses and updateClass (with a Partial object) in the class repository interface (@brentjan, @brieromb)

Why are tests failing?

Upon agreed changes to services.ts (with @thomasdejaeghere and @LambrechtMaarten), files and tests out of the scope of this branch need to change Service<T extends ServiceParams, ReturnType> to Service<T extends ServiceParams>.

The tests for this branch have all passed.

This closes:

@LambrechtMaarten LambrechtMaarten left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good use of the Optional!

@LambrechtMaarten
LambrechtMaarten self-requested a review March 11, 2025 13:46
@thomasdejaeghere
thomasdejaeghere merged commit c2010e1 into development Mar 11, 2025
@thomasdejaeghere
thomasdejaeghere deleted the 198-backend---core---services---every-class-service branch March 11, 2025 13:58
@thomasdejaeghere thomasdejaeghere linked an issue Mar 11, 2025 that may be closed by this pull request
1 task
@lennertdr lennertdr linked an issue Mar 11, 2025 that may be closed by this pull request
1 task
@thomasdejaeghere thomasdejaeghere added the enhancement New feature or request label Mar 11, 2025
@thomasdejaeghere thomasdejaeghere added this to the Milestone 1 milestone Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

3 participants