Skip to content
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

feat : add withCodes queryparameter for GET /listeCode/{id} #123

Merged
merged 8 commits into from
Jan 26, 2024

Conversation

HugoBouttes
Copy link
Contributor

suite de #103

) throws RmesException {

if (!withCodes){
Copy link
Member

Choose a reason for hiding this comment

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

il vaut mieux créer une méthode de controller supplémentaire qui mappe les requêtes avec un paramètre withCodes plutôt que de rallonger cette méthode existante

codesList.remove("prefLabelLg1");
codesList.remove("prefLabelLg2");

if(codesList.has(STATUT_VALIDATION)){
Copy link
Member

Choose a reason for hiding this comment

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

Séquence de code dupliquée :

  • dans codeLIstImpl lignes 202, 50, 227, 237, 272, 285
  • dans SutrctureImpl lignes 114, 218, 260, 414

Mieux vaut factoriser dans une méthode

@@ -258,6 +258,24 @@ public Integer getMaxpage(String notation) throws RmesException {
}
return total;
}

public String getCodesListWithoutCodes(String notation) throws RmesException{
Copy link
Member

Choose a reason for hiding this comment

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

Nouvelle méthode non couverte par un test

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.

Complément nécessaire : voir issue #132

@FBibonne FBibonne merged commit 87ca1f8 into main Jan 26, 2024
@FBibonne FBibonne deleted the 103-fix-withCodes branch January 26, 2024 12:09
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