-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
) throws RmesException { | ||
|
||
if (!withCodes){ |
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 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)){ |
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.
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{ |
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.
Nouvelle méthode non couverte par un test
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.
Complément nécessaire : voir issue #132
suite de #103