[FEATURE] Ajouter la fonctionnalité d'import ONDE aux organisations ajoutées depuis le script de création en masse (PIX-12563). #9449
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🦄 Problème
Les écoles primaires (modélisées comme des organisations de type
SCO-1D
) doivent pouvoir importer leurs élèves via la fonctionnalité d'import ONDE.Cette fonctionnalité n'est pas attribuée par défaut lors de l'import en masse d'organisations.
N'ayant pas la possibilité via une application de faire cette opération facilement, cette attribution post import est coûteuse et peut entraîner des erreurs.
🤖 Proposition
Afin d'éviter de devoir attribuer cette fonctionnalité à chaque école par la suite, on attribue la fonctionnalité d'import ONDE à toutes les organisations de type
SCO-1D
lors de l'import d'organisation en masse.Pour cela, on utilise
OrganizationForAdminRepository
qui s'occupe déjà d'ajouter les fonctionnalités spécifiées parOrganizationForAdmin
.Le modèle
OrganizationForAdmin
attribue déjà l'import ONDE aux organisations de typeSCO-1D
.🌈 Remarques
Il y a sûrement de la rationalisation ou de la clarification à faire dans l'usage des deux modèles et repository
Organization
etOrganizationForAdmin
.💯 Pour tester
Lancer le script d'import en masse avec une organisation
SCO-1D
.Se rendre sur
Pix Admin
.Sélectionner l'organisation importée et faire un import d'élèves via un fichier ONDE.