-
Notifications
You must be signed in to change notification settings - Fork 5
Support du suffixe pour les acteurs digitaux par les identifiant_externes #1561
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
Conversation
0c276b6
to
b254407
Compare
d9230eb
to
cdd9f83
Compare
not acteur.identifiant_externe.endswith("_d") | ||
and acteur.identifiant_unique.endswith("_d") | ||
and acteur.identifiant_externe in acteur.identifiant_unique |
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.
acteur.identifiant_externe = f"{acteur.identifiant_externe}_d" | ||
acteur.save() |
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.
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.
Risque potentiel avec _d
qui n'est pas fourni par l'EO
Possibilité de le gérer avec l'unicité basée sur acteur_type
mais ne permet pas de garantir l'unicité pour une source (discuté en pair review).
b254407
to
e8540d9
Compare
Co-authored-by: Fabien Le Frapper <contact@fabienlefrapper.me>
Description succincte du problème résolu
Suite #1521
Notion : Importer le fichier v3 Valdelia (EA, PMCB) dans LVAO - avec table de pivot vers nouvel ID
🗺️ contexte: Airflow - Source
💡 quoi: Ajouter une contrainte d'unicité sur le couple source, identifiant_externe pour les acteurs actifs
🎯 pourquoi: Permettre de se reposer sur ce couple pour identifier les acteurs à mettre à jour
🤔 comment:
Exemple résultats / UI / Data
Auto-review
Les trucs à faire avant de demander une review :
.env.template
✅ Reste à faire (PR en cours)
📆 A faire (prochaine PR)