Skip to content

Facade migration t3/ migrate lector to facade pattern#124

Open
DrDeathDrop wants to merge 9 commits into
mainfrom
Facade-migration-T3/-Migrate-lector-to-facade-pattern
Open

Facade migration t3/ migrate lector to facade pattern#124
DrDeathDrop wants to merge 9 commits into
mainfrom
Facade-migration-T3/-Migrate-lector-to-facade-pattern

Conversation

@DrDeathDrop

Copy link
Copy Markdown
Contributor

No description provided.

@DrDeathDrop
DrDeathDrop requested a review from a team as a code owner June 30, 2026 10:48
@DrDeathDrop DrDeathDrop self-assigned this Jun 30, 2026

@constantine0621 constantine0621 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.

changes needed in the Mapper and faculty checks in the WebFacade, recommended to add a LectorValidator for the faculty checks

@DrDeathDrop DrDeathDrop linked an issue Jul 1, 2026 that may be closed by this pull request
Comment thread src/main/java/org/unilab/uniplan/lector/LectorValidator.java

@DjesikaV DjesikaV 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.

fix LectorValidator

public ResponseEntity<Void> deleteLector(@NotNull @PathVariable UUID id) {
lectorService.deleteLector(id);

public ResponseEntity<Void> deleteLector(@NotNull @PathVariable final UUID id) {

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.

@NotNull is not needed for @PathVariable

Comment on lines +55 to +56
lectorMapper.updateEntity(request, lector);
lectorValidator.validate(request);

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.

wrong order, the validation should be first than the updateEntity()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Edit faculty doent work in lector

4 participants