Skip to content

Commit

Permalink
Ajout de la config pour toutes les sources
Browse files Browse the repository at this point in the history
  • Loading branch information
kolok committed Jan 22, 2025
1 parent cc47680 commit 5732b07
Show file tree
Hide file tree
Showing 18 changed files with 90 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dags/sources/dags/source_aliapur.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_citeo.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_corepile.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_cyclevia.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ecodds.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ecologic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ecomaison.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ecopae.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ecosystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ocab.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_ocad3e.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_pharmacies.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
"transformation": "clean_identifiant_unique",
"destination": ["identifiant_unique"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "Téléphone"},
{"remove": "Région"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_pyreo.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_refashion.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_screlec.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_sinoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
"transformation": "clean_identifiant_unique",
"destination": ["identifiant_unique"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_geopoint"},
{"remove": "_i"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_soren.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down
5 changes: 5 additions & 0 deletions dags/sources/dags/source_valdelia.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@
"transformation": "clean_action_codes",
"destination": ["action_codes"],
},
{
"origin": ["action_codes", "souscategorie_codes"],
"transformation": "clean_proposition_services",
"destination": ["proposition_services_codes"],
},
# 5. Supression des colonnes
{"remove": "_i"},
{"remove": "_id"},
Expand Down

0 comments on commit 5732b07

Please sign in to comment.