Skip to content

#5048 - Notifier les validateurs lorsqu'une entreprise sur leur convention est bannie#5217

Open
tpicaud wants to merge 3 commits into
mainfrom
5048-etq-prescripteur-je-veux-être-informé-quune-entreprise-a-été-bannie-lorsque-jai-une-convention-signée-mais-dont-limmersion-nest-pas-terminée

Hidden character warning

The head ref may contain hidden characters: "5048-etq-prescripteur-je-veux-\u00eatre-inform\u00e9-quune-entreprise-a-\u00e9t\u00e9-bannie-lorsque-jai-une-convention-sign\u00e9e-mais-dont-limmersion-nest-pas-termin\u00e9e"
Open

#5048 - Notifier les validateurs lorsqu'une entreprise sur leur convention est bannie#5217
tpicaud wants to merge 3 commits into
mainfrom
5048-etq-prescripteur-je-veux-être-informé-quune-entreprise-a-été-bannie-lorsque-jai-une-convention-signée-mais-dont-limmersion-nest-pas-terminée

Conversation

@tpicaud

@tpicaud tpicaud commented Jun 17, 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

@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: 5217
  3. Click "Run workflow" to start the deployment

@tpicaud tpicaud force-pushed the 5048-etq-prescripteur-je-veux-être-informé-quune-entreprise-a-été-bannie-lorsque-jai-une-convention-signée-mais-dont-limmersion-nest-pas-terminée branch from f71b4d9 to 0f07285 Compare June 18, 2026 12:11
@tpicaud tpicaud force-pushed the 5048-etq-prescripteur-je-veux-être-informé-quune-entreprise-a-été-bannie-lorsque-jai-une-convention-signée-mais-dont-limmersion-nest-pas-terminée branch from 0f07285 to cce0056 Compare June 24, 2026 12:24
@tpicaud tpicaud force-pushed the 5048-etq-prescripteur-je-veux-être-informé-quune-entreprise-a-été-bannie-lorsque-jai-une-convention-signée-mais-dont-limmersion-nest-pas-terminée branch from cce0056 to 4a2dc88 Compare June 24, 2026 12:52
@tpicaud tpicaud marked this pull request as ready for review June 24, 2026 14:00
},
followedIds: { establishmentSiret: siret },
}),
await notifyValidatorsAndPreValidators(

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
await notifyValidatorsAndPreValidators(
await notifyValidatorsAndCounsellors(

On utilise counsellor normalement pour les prévalidateurs (je crois).

}),
);

const conventionsBeforeValidation =

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.

Je comprends pas ce conventionsBeforeValidation : on est d'accord que la notif doit partir pour une convention validée mais dont la date de fin n'est pas encore passée ?

});

it("sends emails to convention beneficiaries in affected statuses only", async () => {
const concelledConvention: ConventionDto = {

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
const concelledConvention: ConventionDto = {
const cancelledConvention: ConventionDto = {

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 veux être informé qu'une entreprise a été bannie lorsque j'ai une convention signée mais dont l'immersion n'est pas terminée

3 participants