-
Notifications
You must be signed in to change notification settings - Fork 20
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
[TRA 15687] Ajout d'éco-organismes, filtrage des éco-organismes en front #3916
Conversation
handleBsdd: handleBsdd ?? undefined, | ||
handleBsda: handleBsda ?? undefined, | ||
handleBsdasri: handleBsdasri ?? undefined, | ||
handleBsvhu: handleBsvhu ?? undefined |
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.
Je comprends pas ce morceau, handleXXX
ne peut pas être undefined
en base, donc pourquoi ?? undefined
?
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.
L'input de la query peut être true/false ou null, mais si on passe null, ça revient à demander les éco-organismes où la valeure est nulle (ce qui n'est normalement jamais le cas), donc on remplace null par undefined, ce qui revient à ne pas filtrer par ce paramètre
@@ -11,11 +11,220 @@ type CreationObject<M extends keyof PrismaClient> = { | |||
}; | |||
const objects = [ |
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.
C'est utilisé où ça du coup?
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 object-creator/main, qui est appelé en tant que script
…sing ecoorganismes, add params to the ecoOrganisme query, use the params in the various EcoOrganism components
|
Contexte
Il fallait:
J'ai donc ajouté les éco-organismes manquants au script d'ajout d'objet, à faire tourner dans une one-off (
npx nx run object-creator:run
). J'ai aussi ajouté un flag handleBsdd aux éco-organismes, et ajouté la possibilité de filtrer la query EcoOrganismes par ces flags, et ajouté ces filtres dans les composant de choix d'éco-organisme en front.J'ai modif à la main les éco-organismes pas à jour mais déjà présents en DB (à faire en sandbox et prod une fois validé en recette)
Points de vigilance pour les intégrateurs
Démo
ecoorganism.filters.mov
Ticket Favro
Revoir la liste des éco-organismes sur les bordereaux (BSDD, BSDA, DASRI et VHU)
Checklist