Skip to content

Conversation

mohatizaoui
Copy link
Contributor

Description

Description des modifications

Type de changement

Indiquer le ou les types de changements

  • Build
  • PKI
  • Ansiblerie
  • Nouveau Code
  • Correction
  • Refactorisation de code
  • Autre

Documentation

Indiquer la documentation mise à jour

  • Quels sont les nouvelles documentations ?
  • Quels sont les modifications existantes ?
  • Quels sont les documentations ou sections de documentations supprimés ?

Tests

Indiquer comment le code à été testé (manuel, environnement, TU, etc)

  • manuel
  • environnement
  • TU

Migration

Indiquer si les modifications apportées impliquent une migration sur l'existant et comment la faire

Checklist

Sélectionner les éléments de la checklist

  • Mon code suit le style de code de ce projet.
  • J'ai commenté mon code, en particulier dans les classes et les méthodes difficile à comprendre.
  • J'ai fait les changements correspondant dans la documentation RAML.
  • J'ai fait les changements correspondant dans la documentation Métier.
  • J'ai fait les changements correspondant dans la documentation Technique.
  • J'ai rajouté les tests unitaires vérifiant mes fonctionnalités.
  • J'ai rajouté les tests de non régression vérifiant mes fonctionnalités.
  • Les tests unitaires nouveaux et existants passent avec succès localement.
  • Toutes les dépendances ont été mergées en priorité

Contributeur

Indiquer qui a développé cette fonctionnalité

  • VAS (Vitam Accessible en Service)
  • CEA (Commissariat à l'énergie atomique et aux énergies alternatives)

@mohatizaoui mohatizaoui modified the milestones: IT 146, IT 147 Jan 7, 2025
@mohatizaoui mohatizaoui force-pushed the story_13791_clean_code branch from 422e98c to 0d97465 Compare January 7, 2025 10:24
@mohatizaoui mohatizaoui force-pushed the story_13791_clean_code branch from 0d97465 to a1476f9 Compare January 7, 2025 14:40
Comment on lines 94 to +96
LOGGER.debug("get all customer criteria={}", criteria);
SanityChecker.sanitizeCriteria(criteria);
return securityProfileExternalService.getAll(criteria);
return securityProfileExternalService.getAll();
Copy link
Contributor

Choose a reason for hiding this comment

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

A quoi sert la variable criteria si elle n'est plus appelée par getAll() ?

Copy link
Contributor

Choose a reason for hiding this comment

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

D'accord avec Hassane, il faut supprimer la variable criteria.

Comment on lines 102 to +104
SanityChecker.sanitizeCriteria(criteria);
LOGGER.debug("get all customer criteria={}", criteria);
return agencyExternalService.getAll(criteria);
return agencyExternalService.getAll();
Copy link
Contributor

Choose a reason for hiding this comment

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

Enlever criteria si pas utilisé.

Comment on lines 94 to +96
LOGGER.debug("get all customer criteria={}", criteria);
SanityChecker.sanitizeCriteria(criteria);
return securityProfileExternalService.getAll(criteria);
return securityProfileExternalService.getAll();
Copy link
Contributor

Choose a reason for hiding this comment

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

D'accord avec Hassane, il faut supprimer la variable criteria.


@Autowired
private UnitExtternalService unitExternalService;
private UnitExternalService unitExternalService;
Copy link
Contributor

Choose a reason for hiding this comment

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

C'est utilisé où ?

throws IOException, InvalidParseOperationException {
InputStream inputStream =
AccessionRegisterInternalServiceTest.class.getClassLoader().getResourceAsStream(filename);
fr.gouv.vitamui.referential.internal.server.service
Copy link
Contributor

Choose a reason for hiding this comment

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

Classe à bouger.

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