Skip to content

Commit

Permalink
fix(pipeline) : Fix mes-aides issues with stats & snapshots
Browse files Browse the repository at this point in the history
The stats can't be computed without it, and the snapshot was not
computed for the new permis_velo model.
  • Loading branch information
vperron committed Oct 25, 2024
1 parent 30bb4a1 commit b768303
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions pipeline/dbt/models/_sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ sources:
- name: permis_velo
meta:
kind: structure
- name: aides
meta:
kind: service

- name: annuaire_du_service_public
schema: annuaire_du_service_public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ models:
- accepted_values:
values:
- agences
- aides
- creches
- DD009_RES_PARTENARIALE
- formations
- garages
- lieux
- organisations
- permis_velo
- services
- siaes
- structures
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set source_model = source('mes_aides', 'aides') %}
{% set source_model = source('mes_aides', 'permis_velo') %}

{% set table_exists = adapter.get_relation(database=source_model.database, schema=source_model.schema, identifier=source_model.name) is not none %}

{% snapshot snps_mes_aides__aides %}
{% snapshot snps_mes_aides__permis_velo %}

{{
config(
Expand Down

0 comments on commit b768303

Please sign in to comment.