Skip to content

#4999 - Listing des actions à effectué pour les bilans - Ne pas inclure les bilans créés il y a moins de 2 jours#5202

Open
bbohec wants to merge 1 commit into
mainfrom
4999-etq-prescripteur-je-ne-veux-voir-dans-les-relances-bilans-pour-signature-uniquement-les-bilans-complétés-il-y-a-au-moins-2-jours

Hidden character warning

The head ref may contain hidden characters: "4999-etq-prescripteur-je-ne-veux-voir-dans-les-relances-bilans-pour-signature-uniquement-les-bilans-compl\u00e9t\u00e9s-il-y-a-au-moins-2-jours"
Open

#4999 - Listing des actions à effectué pour les bilans - Ne pas inclure les bilans créés il y a moins de 2 jours#5202
bbohec wants to merge 1 commit into
mainfrom
4999-etq-prescripteur-je-ne-veux-voir-dans-les-relances-bilans-pour-signature-uniquement-les-bilans-complétés-il-y-a-au-moins-2-jours

Conversation

@bbohec

@bbohec bbohec commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Checklist avant RfR

État de la PR

  • Le titre respecte la convention : #ID_ISSUE - Message clair et en français, compréhensible par quelqu'un du métier
  • L'issue est en RfR dans le projet GitHub
  • Auteurs assignés sur la PR et l'issue liée
  • Description du travail commentée sur l'issue (cf. /document-issue)
  • Pipeline CI ✅

Revue du code (self-review)

  • Commits propres (pas de WIP, squash si nécessaire)
  • Relecture complète du diff effectuée
  • Pas de console.log, TODO ou code de debug restant

Points d'attention pour le reviewer

@github-actions

Copy link
Copy Markdown

📌 Deploy a review app for this PR:

➡️ Click here to deploy review app

When clicking the link above:

  1. Click the "Run workflow" button
  2. Enter this PR number: 5202
  3. Click "Run workflow" to start the deployment

@bbohec bbohec self-assigned this Jun 16, 2026
Signed-off-by: Benjamin Bohec <bbohec.pro@gmail.com>
@bbohec bbohec force-pushed the 4999-etq-prescripteur-je-ne-veux-voir-dans-les-relances-bilans-pour-signature-uniquement-les-bilans-complétés-il-y-a-au-moins-2-jours branch from 9e4a740 to e33eec7 Compare June 22, 2026 13:03
@bbohec bbohec changed the title #4999 - WIP #4999 - Listing des actions à effectué pour les bilans - Ne pas inclure les bilans créés il y a moins de 2 jours Jun 22, 2026
@bbohec bbohec marked this pull request as ready for review June 22, 2026 13:13
uow = createInMemoryUow();
timeGateway = new CustomTimeGateway(now);
const uowPerformer = new InMemoryUowPerformer(uow);
useCase = makeGetConventionsWithUnfinalizedAssessment({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
useCase = makeGetConventionsWithUnfinalizedAssessment({
getConventionsWithUnfinalizedAssessment = makeGetConventionsWithUnfinalizedAssessment({

Au vu du refacto, même si c'est long je suis partisant du nommage des useCase

it("passes pagination produced by getPaginationParamsForWeb", async () => {
const currentUser = new ConnectedUserBuilder()
.withId(agencyUserId)
it("throws when user have not the right agency role", async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
it("throws when user have not the right agency role", async () => {
it("throws when user does not have the right agency role", async () => {

isNotifiedByEmail: true,
},
])
it("throws when user have no agency rights", async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
it("throws when user have no agency rights", async () => {
it("throws when user has no agency rights", async () => {

currentUserWithToReviewAgencyRight,
),
errors.agencies.noAgencyRights(currentUserWithToReviewAgencyRight.id),
);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Plusieurs tests supprimés dans ce refacto
à mon gout il faudrait à minima garder les tests sur la pagination, et aussi un test avec 2 agences = droits pour vérifier que les conventions de toutes les agences sont bien récupérées

@@ -79,66 +78,7 @@ describe("GetConventionsForAgencyUser", () => {
uow.conventionRepository.setConventions(conventions);
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pourquoi supprimer ces tests ? Le use case n'a pas été touché

expectToEqual(result.data, []);
});

it("include assessments created juste before two days ago", async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
it("include assessments created juste before two days ago", async () => {
it("include assessments created just before two days ago", async () => {

@@ -403,25 +403,6 @@ describe("authenticatedConventionRoutes", () => {
},
},
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

idem à mes commentaires plus bas, je ne comprends pas le retrait de la pagination et des tests

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.

ETQ prescripteur, je ne veux voir dans les relances bilans pour signature, uniquement les bilans complétés il y a au moins 2 jours.

2 participants