Skip to content

Refactor/concept dto#441

Merged
GtanSndil merged 13 commits intorefactor/refactoring_magma_traditional_in_new_magmafrom
refactor/conceptDTO
Apr 1, 2026
Merged

Refactor/concept dto#441
GtanSndil merged 13 commits intorefactor/refactoring_magma_traditional_in_new_magmafrom
refactor/conceptDTO

Conversation

@GtanSndil
Copy link
Copy Markdown
Contributor

No description provided.

@GtanSndil GtanSndil requested a review from FBibonne March 4, 2026 12:54
@GtanSndil GtanSndil marked this pull request as draft March 4, 2026 13:04
.map(ConceptDTO::transformDTOenDefinition)
List<ConceptDTO> listConceptDTOsWithLinks = listConceptDTOs.stream()
.map(conceptDto -> {
if (Boolean.TRUE.equals(conceptDto.getHasLink())) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Mettre dans une méthode conceptDto.hasLink() : plus lisible

List<ConceptDTO> listConceptDTOsWithLinks = listConceptDTOs.stream()
.map(conceptDto -> {
if (Boolean.TRUE.equals(conceptDto.getHasLink())) {
List<NearbyConcept> nearbyConceptList = requestProcessor.queryToFindNearbyConcepts()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

mettre dans une méthode à part

@GtanSndil GtanSndil marked this pull request as ready for review March 30, 2026 13:25
.map(ConceptDTO::transformDTOenDefinition)
List<ConceptDTO> listConceptDTOsWithLinks = listConceptDTOs.stream()
.map(conceptDto -> {
if (getHasLink(conceptDto)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if (conceptDto.hasLink()) et éviter de renvoyer un un objet Boolean pour éviter les NullPointerException lors de l'unboxing

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

j'ai push une proposition, est-ce ce que tu attendais ?

@GtanSndil GtanSndil merged commit 58769dc into refactor/refactoring_magma_traditional_in_new_magma Apr 1, 2026
@GtanSndil GtanSndil deleted the refactor/conceptDTO branch April 1, 2026 14:52
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