-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
350 additions
and
247 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
pipeline/dbt/models/intermediate/sources/mes_aides/int_mes_aides__adresses.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{{ dbt_utils.union_relations( | ||
relations=[ref('int_mes_aides_garages__adresses'), ref('int_mes_aides_permis_velo__adresses')] | ||
relations=[ref('int_mes_aides__garages__adresses'), ref('int_mes_aides__permis_velo__adresses')] | ||
) }} |
23 changes: 20 additions & 3 deletions
23
pipeline/dbt/models/intermediate/sources/mes_aides/int_mes_aides__services.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
{{ dbt_utils.union_relations( | ||
relations=[ref('int_mes_aides_garages__services'), ref('int_mes_aides_permis_velo__services')] | ||
) }} | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
ref('int_mes_aides__permis_velo__services'), | ||
ref('int_mes_aides__garages__services'), | ||
], | ||
column_override={ | ||
"frais": "TEXT[]", | ||
"justificatifs": "TEXT[]", | ||
"modes_accueil": "TEXT[]", | ||
"modes_orientation_accompagnateur": "TEXT[]", | ||
"modes_orientation_beneficiaire": "TEXT[]", | ||
"pre_requis": "TEXT[]", | ||
"profils": "TEXT[]", | ||
"thematiques": "TEXT[]", | ||
"types": "TEXT[]", | ||
}, | ||
source_column_name=None | ||
) | ||
}} |
17 changes: 14 additions & 3 deletions
17
pipeline/dbt/models/intermediate/sources/mes_aides/int_mes_aides__structures.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
{{ dbt_utils.union_relations( | ||
relations=[ref('int_mes_aides_garages__structures'), ref('int_mes_aides_permis_velo__structures')] | ||
) }} | ||
{{ | ||
dbt_utils.union_relations( | ||
relations=[ | ||
ref('int_mes_aides__permis_velo__structures'), | ||
ref('int_mes_aides__garages__structures'), | ||
], | ||
column_override={ | ||
"labels_nationaux": "TEXT[]", | ||
"labels_autres": "TEXT[]", | ||
"thematiques": "TEXT[]", | ||
}, | ||
source_column_name=None | ||
) | ||
}} |
59 changes: 59 additions & 0 deletions
59
...ne/dbt/models/intermediate/sources/mes_aides/permis_velo/_map_permis_velo_thematiques.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
{{ config(materialized='ephemeral') }} | ||
WITH mapping_thematiques AS ( | ||
SELECT x.* | ||
FROM ( | ||
VALUES | ||
('Financer mon permis', 'transport-et-mobilite', 'mobilite--financer-mon-projet-mobilite'), | ||
('Financer mon permis', 'transport-et-mobilite', 'mobilite--preparer-son-permis-de-conduire-se-reentrainer-a-la-conduite'), | ||
('Financer mes trajets', 'transport-et-mobilite', 'mobilite--financer-mon-projet-mobilite'), | ||
('Financer le carburant', 'transport-et-mobilite', 'mobilite--financer-mon-projet-mobilite'), | ||
('Financer mon BSR', 'transport-et-mobilite', 'mobilite--financer-mon-projet-mobilite'), | ||
('Financer l''achat d''un véhicule', 'transport-et-mobilite', 'mobilite--acheter-un-vehicule-motorise'), | ||
('Déménager', 'logement', 'logement-hebergement--demenagement'), | ||
('Transports en commun', 'transport-et-mobilite', 'mobilite--comprendre-et-utiliser-les-transports-en-commun'), | ||
('Transport à la demande', 'transport-et-mobilite', 'mobilite--etre-accompagne-dans-son-parcours-mobilite'), | ||
('Réparer ma voiture', 'transport-et-mobilite', 'mobilite--entretenir-reparer-son-vehicule'), | ||
('Louer un vélo électrique', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Ma voiture', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Ma voiture', 'transport-et-mobilite', 'mobilite--entretenir-reparer-son-vehicule'), | ||
('Ma voiture', 'transport-et-mobilite', 'mobilite--acheter-un-vehicule-motorise'), | ||
('Mon vélo électrique', 'transport-et-mobilite', 'mobilite--acheter-un-velo'), | ||
('Mon vélo électrique', 'transport-et-mobilite', 'mobilite--entretenir-reparer-son-vehicule'), | ||
('Mon vélo électrique', 'transport-et-mobilite', 'mobilite--apprendre-a-utiliser-un-deux-roues'), | ||
('Mon vélo électrique', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Mon vélo électrique', 'transport-et-mobilite', 'mobilite--acheter-un-vehicule-motorise'), | ||
('Mon scooter', 'transport-et-mobilite', 'mobilite--entretenir-reparer-son-vehicule'), | ||
('Mon scooter', 'transport-et-mobilite', 'mobilite--apprendre-a-utiliser-un-deux-roues'), | ||
('Mon scooter', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Acheter un vélo électrique', 'transport-et-mobilite', 'mobilite--acheter-un-velo'), | ||
('Acheter ou louer un vélo', 'transport-et-mobilite', 'mobilite--acheter-un-velo'), | ||
('Acheter ou louer un vélo', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Acheter ou louer une voiture', 'transport-et-mobilite', 'mobilite--louer-un-vehicule'), | ||
('Acheter ou louer une voiture', 'transport-et-mobilite', 'mobilite--acheter-un-vehicule-motorise'), | ||
('Accéder au permis de conduire', 'transport-et-mobilite', 'mobilite--preparer-son-permis-de-conduire-se-reentrainer-a-la-conduite'), | ||
('Déménager', 'logement', 'logement-hebergement--demenagement'), | ||
('Partir à l''étranger', 's-ouvrir-a-l-international', 'souvrir-a-linternational--sinformer-sur-les-aides-pour-travailler-a-letranger'), | ||
('Handicap & mobilité', 'transport-et-mobilite', 'handicap--favoriser-le-retour-et-le-maintien-dans-lemploi'), | ||
('Trouver une alternance', 'trouver-un-job', 'trouver-un-emploi--suivre-ses-candidatures-et-relancer-les-employeurs'), | ||
('Trouver une alternance', 'trouver-un-job', 'trouver-un-emploi--convaincre-un-recruteur-en-entretien'), | ||
('Trouver une alternance', 'trouver-un-job', 'trouver-un-emploi--faire-des-candidatures-spontanees'), | ||
('Trouver une alternance', 'trouver-un-job', 'trouver-un-emploi--repondre-a-des-offres-demploi'), | ||
('Trouver un contrat d''apprentissage', 'trouver-un-job', 'trouver-un-emploi--suivre-ses-candidatures-et-relancer-les-employeurs'), | ||
('Trouver un contrat d''apprentissage', 'trouver-un-job', 'trouver-un-emploi--convaincre-un-recruteur-en-entretien'), | ||
('Trouver un contrat d''apprentissage', 'trouver-un-job', 'trouver-un-emploi--faire-des-candidatures-spontanees'), | ||
('Trouver un contrat d''apprentissage', 'trouver-un-job', 'trouver-un-emploi--repondre-a-des-offres-demploi'), | ||
('Préparer une candidature', 'trouver-un-job', 'preparer-sa-candidature--valoriser-ses-competences'), | ||
('Rédiger une lettre de motivation ou un CV', 'trouver-un-job', 'preparer-sa-candidature--realiser-un-cv-et-ou-une-lettre-de-motivation'), | ||
('Devenir locataire', 'logement', 'logement-hebergement--etre-accompagne-pour-se-loger'), | ||
('Financer mon loyer', 'logement', 'logement-hebergement--gerer-son-budget'), | ||
('Faire des travaux', 'logement', 'logement-hebergement--besoin-dadapter-mon-logement'), | ||
('Trouver un logement social', 'logement', 'logement-hebergement--etre-accompagne-pour-se-loger'), | ||
('Financer une formation', 'formation-et-orientation', 'se-former--monter-son-dossier-de-formation'), | ||
('Trouver une formation', 'formation-et-orientation', 'se-former--trouver-sa-formation'), | ||
('Rémunération pendant la formation', 'formation-et-orientation', 'se-former--monter-son-dossier-de-formation'), | ||
('Reconversion', 'formation-et-orientation', 'se-former--trouver-sa-formation'), | ||
('Accompagnement personnalisé à la mobilité', 'transport-et-mobilite', 'mobilite--etre-accompagne-dans-son-parcours-mobilite') | ||
) AS x (besoins, thematiques, correspondance_di) | ||
) | ||
|
||
SELECT * FROM mapping_thematiques |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.