Skip to content

bug/116-fixed edit faculty not working on lector#117

Open
DrDeathDrop wants to merge 1 commit into
mainfrom
bug/116-edit-faculty-doesnt-work-on-lector
Open

bug/116-fixed edit faculty not working on lector#117
DrDeathDrop wants to merge 1 commit into
mainfrom
bug/116-edit-faculty-doesnt-work-on-lector

Conversation

@DrDeathDrop

Copy link
Copy Markdown
Contributor

No description provided.

@DrDeathDrop
DrDeathDrop requested a review from a team as a code owner June 24, 2026 10:28
@DrDeathDrop DrDeathDrop changed the title Fixed edit faculty not working on lector bug/116-fixed edit faculty not working on lector Jun 25, 2026
public LectorDto createLector(LectorDto lectorDto) {
final Lector lector = lectorMapper.toEntity(lectorDto);

if (lectorDto.facultyId() != null) {

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.

Internal dtos will not be used.

}

@Test
void testCreateLectorShouldSetFacultyWhenFacultyIdIsNotNull() {

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.

Change naming convention. For example "findById_shouldReturnEntity_whenFacultyExists"

private LectorDto updateEntityAndConvertToDto(final LectorDto dto,
final Lector entity) {
final Lector entity) {
lectorMapper.updateEntityFromDto(dto, entity);

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.

Mapping should be in the facade layer.

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.

2 participants