-
Notifications
You must be signed in to change notification settings - Fork 6
Feat/rapport qualite #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: refactor/refactoring_magma_traditional_in_new_magma
Are you sure you want to change the base?
Feat/rapport qualite #417
Conversation
/!\ one test for concept is KO => to evaluate
to fix : duplicate code_list
lack type ORGANIZATION rubric
…to feat/rapport-qualite
FBibonne
left a comment
There was a problem hiding this 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
...est/java/fr/insee/rmes/magma/diffusion/api/testcontainers/queries/OperationsQueriesTest.java
Show resolved
Hide resolved
magma-diffusion-impl/src/main/java/fr/insee/rmes/magma/diffusion/utils/RapportQualiteDTO.java
Show resolved
Hide resolved
magma-diffusion-impl/src/main/java/fr/insee/rmes/magma/diffusion/utils/RapportQualiteDTO.java
Outdated
Show resolved
Hide resolved
| } | ||
|
|
||
| return ResponseEntity.ok() | ||
| .contentType(contentType) |
There was a problem hiding this comment.
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é
There was a problem hiding this comment.
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
magma-diffusion-impl/src/main/java/fr/insee/rmes/magma/diffusion/utils/EndpointsUtils.java
Outdated
Show resolved
Hide resolved
magma-diffusion-impl/src/main/java/fr/insee/rmes/magma/diffusion/utils/EndpointsUtils.java
Outdated
Show resolved
Hide resolved
| @@ -0,0 +1,53 @@ | |||
| package fr.insee.rmes.magma.diffusion.utils; | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Peut être un record
No description provided.