Skip to content

Conversation

@GtanSndil
Copy link
Contributor

No description provided.

@GtanSndil GtanSndil marked this pull request as ready for review January 12, 2026 14:21
@GtanSndil GtanSndil marked this pull request as draft January 13, 2026 16:00
@GtanSndil GtanSndil marked this pull request as ready for review January 15, 2026 07:57
Copy link
Member

@FBibonne FBibonne left a comment

Choose a reason for hiding this comment

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

  • dans le code actuel, il faut revoir la méthode fr.insee.rmes.magma.diffusion.utils.RapportQualiteDTO#transformDTOenRapportQualite : a minima l'isoler dans un service et écrire un test.
  • Dans TestContainerTest : pour pourquoi le container.stop() est commenté ?
  • monter la version de testcontainers en 1.21.4
  • ConceptDTO : supprimer la méthode getNearbyConceptList et limport de l'annotation @NotNull

}

return ResponseEntity.ok()
.contentType(contentType)
Copy link
Member

Choose a reason for hiding this comment

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

ce n'est pas utile de renseigner le content type, il est généré automatiquement par Spring lors de la sérialisation de l'objet retourné

Copy link
Member

Choose a reason for hiding this comment

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

Il faut ajouter la dépendance

        <dependency>
            <groupId>com.fasterxml.jackson.dataformat</groupId>
            <artifactId>jackson-dataformat-xml</artifactId>
        </dependency>

Si le header accept est correct, le content type est déterminé automatiquement et la sérialisation se fait correctement

@@ -0,0 +1,53 @@
package fr.insee.rmes.magma.diffusion.utils;

Copy link
Member

Choose a reason for hiding this comment

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

Peut être un record

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.

3 participants