-
Notifications
You must be signed in to change notification settings - Fork 0
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
Modification du pg_restore afin de prendre en compte que les tables nécessaires au dbt run #389
base: main
Are you sure you want to change the base?
Conversation
Makefile
Outdated
--table="fluxIAE_AnnexeFinanciere" --table="fluxIAE_ContratMission" \ | ||
--table="fluxIAE_EtatMensuelIndiv" --table="fluxIAE_Missions" \ | ||
--table="fluxIAE_MissionsEtatMensuelIndiv" --table="fluxIAE_RefCategorieSort" \ | ||
--table="fluxIAE_RefMontantIae" --table="fluxIAE_RefMotifSort" \ | ||
--table="fluxIAE_RefNiveauFormation" --table="fluxIAE_RefFormeContrat" \ | ||
--table="fluxIAE_Salarie" --table="fluxIAE_Structure" \ | ||
--table="fluxIAE_MarchesPublics" --table="candidats_v0" \ | ||
--table="candidatures" --table="cap_campagnes" \ | ||
--table="cap_candidatures" --table="cap_critères_iae" \ | ||
--table="cap_structures" --table="codes_rome" \ | ||
--table="collaborations" --table="communes" \ | ||
--table="critères_iae" --table="departements" \ | ||
--table="fiches_de_poste" --table="fiches_de_poste_par_candidature" \ | ||
--table="institutions" --table="organisations_v0" \ | ||
--table="pass_agréments" --table="structures" \ | ||
--table="utilisateurs_v0" --table="demandes_de_prolongation" \ | ||
--table="prolongations" --table="structures_v0" \ | ||
--table="c1_ref_type_contrat" --table="c1_ref_type_prescripteur" \ | ||
--table="c1_ref_motif_de_refus" --table="c1_analytics_v0" \ | ||
--table="insee_communes" --table="c1_private_dashboard_visits_v0" \ | ||
--table="suivi_visiteurs_tb_prives" --table="suivi_visiteurs_tb_prives_v1" \ | ||
--table="suivi_utilisateurs_tb_prives" --table="suivi_visiteurs_tb_publics_v1" \ | ||
--table="sorties_v2" --table="sa_zones_infradepartementales" \ |
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 vois 2 améliorations possibles :
--table
autorise les pattern donc--table="fluxIAE_*"
et--table="c1_ref_*
devraient être utilisables- Sans doute plus simple et maintenable d'utiliser
--filter
et un fichier plat que d'avoir la liste dans le Makefile, en plus ça permet de le partager entrepg_dump
etpg_restore
ce qui évite de tout récupérer via le réseau et sur notre disque alors qu'on ne va en utilise qu'une partie
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.
@rsebille j'ai reussi a prendre en compte le 1, le 2 je sais pas trop faire héhé
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.
J'avais pas vérifié mais l'option --filter
n'est disponible que depuis PG 17 et clever ne proposant toujours que PG 15 elle n'est donc pas utilisable pour le moment :).
c397373
to
1a9ac61
Compare
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 tamponne pour ne pas bloquer mais faut corriger la typo depricated avant de fusionner ;).
scripts/depricated/properties.yml
Outdated
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.
s/depricated/deprecated/g ;)
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.
la honte
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.
et merci !
Makefile
Outdated
--table="fluxIAE_AnnexeFinanciere" --table="fluxIAE_ContratMission" \ | ||
--table="fluxIAE_EtatMensuelIndiv" --table="fluxIAE_Missions" \ | ||
--table="fluxIAE_MissionsEtatMensuelIndiv" --table="fluxIAE_RefCategorieSort" \ | ||
--table="fluxIAE_RefMontantIae" --table="fluxIAE_RefMotifSort" \ | ||
--table="fluxIAE_RefNiveauFormation" --table="fluxIAE_RefFormeContrat" \ | ||
--table="fluxIAE_Salarie" --table="fluxIAE_Structure" \ | ||
--table="fluxIAE_MarchesPublics" --table="candidats_v0" \ | ||
--table="candidatures" --table="cap_campagnes" \ | ||
--table="cap_candidatures" --table="cap_critères_iae" \ | ||
--table="cap_structures" --table="codes_rome" \ | ||
--table="collaborations" --table="communes" \ | ||
--table="critères_iae" --table="departements" \ | ||
--table="fiches_de_poste" --table="fiches_de_poste_par_candidature" \ | ||
--table="institutions" --table="organisations_v0" \ | ||
--table="pass_agréments" --table="structures" \ | ||
--table="utilisateurs_v0" --table="demandes_de_prolongation" \ | ||
--table="prolongations" --table="structures_v0" \ | ||
--table="c1_ref_type_contrat" --table="c1_ref_type_prescripteur" \ | ||
--table="c1_ref_motif_de_refus" --table="c1_analytics_v0" \ | ||
--table="insee_communes" --table="c1_private_dashboard_visits_v0" \ | ||
--table="suivi_visiteurs_tb_prives" --table="suivi_visiteurs_tb_prives_v1" \ | ||
--table="suivi_utilisateurs_tb_prives" --table="suivi_visiteurs_tb_publics_v1" \ | ||
--table="sorties_v2" --table="sa_zones_infradepartementales" \ |
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.
J'avais pas vérifié mais l'option --filter
n'est disponible que depuis PG 17 et clever ne proposant toujours que PG 15 elle n'est donc pas utilisable pour le moment :).
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.
coooool
Makefile
Outdated
--table="c1_*" \ | ||
--table="candidats_v0" \ | ||
--table="candidatures" \ | ||
--table="cap_campagnes" \ |
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.
why not cap_*
, suivi_*
et *_v0
tant qu'à faire
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.
+1 pour cap_*
et suivi_*
si ça ne prend effectivement que les tables nécessaires.
Mais plutôt -0 pour *_v0
car c'est un suffixe, qu'il est trop générique, et qu'idéalement il faudrait avoir un préfixe emplois car si jamais on faisait une table en _v1
alors elle ne serais pas prise actuellement.
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.
suivi_*
c'est mort y en a trop
Je regarderai pour cap_*
bdace54
to
12a9ac9
Compare
12a9ac9
to
8a9c8f9
Compare
**Carte Notion : **
Pourquoi ?
Modification du pg_restore afin de prendre en compte que les tables nécessaires au dbt run + retrait de scripts plus utilisés (xp brsa ft)
Checks