-
Notifications
You must be signed in to change notification settings - Fork 1
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(admin,api): 3769 - Affectation réelle CLE Métropole #4671
base: feat/affectation-cle-simulation
Are you sure you want to change the base?
feat(admin,api): 3769 - Affectation réelle CLE Métropole #4671
Conversation
2b09dd1
to
19290ef
Compare
cbdf826
to
1fa591d
Compare
19290ef
to
25fc858
Compare
1fa591d
to
38c1836
Compare
}, | ||
onError: (error: any) => { | ||
capture(error); | ||
toastr.error("Une erreur est survenue lors de l'ajout du traitement", translate(JSON.parse(error.message).message), { timeOut: 5000 }); |
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.
Dans apiv2.ts, on affiche un toast pour les erreurs non prévues, tu peux avoir plusieurs toast d'erreur si c'est autre chose qu'une 401, 422 ou ERR_NETWORK :
if (error instanceof FunctionalException) {
toastr.error("Une erreur est survenue lors de l'ajout du traitement", translate(JSON.parse(error.message).message), { timeOut: 5000 });
}
const validationCleResult = await this.validerAffectationCle.execute({ | ||
...validationCleTask.metadata!.parameters!, | ||
dateAffectation: validationCleTask.createdAt, | ||
}); |
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.
Pour éviter de faire grossir ce switch les case pourraient être ressorti dans des méthodes private : doAffectationCleSimulationValider.
Qu'en penses tu ?
analytics.jeunesAffected += 1; | ||
} | ||
|
||
this.cls.set("user", { firstName: `Affectation ${session.nom}` }); |
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.
Le cls est déjà setté dans AdminTaskConsumer
TaskName.AFFECTATION_CLE_SIMULATION_VALIDER, | ||
); | ||
|
||
console.log("status", status, "lastCompletedAt", lastCompletedAt); |
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.
logger.log
}), | ||
); | ||
|
||
console.log(result); |
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.
à supprimer
Description
Todo
Ticket / Issue
https://www.notion.so/jeveuxaider/Affectation-r-elle-CLE-M-tropole-hors-Corse-15872a322d5080e7975ee3324fe98354?pvs=23
Testing instructions
https://snufeataffectationclsskyr8ol-admin.functions.fnc.fr-par.scw.cloud