-
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.
Merge pull request #1105 from MTES-MCT/main
Mise en production 23/01/2025
- Loading branch information
Showing
57 changed files
with
428 additions
and
795 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
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
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,4 @@ | ||
{% macro deduplicate_lovac() %} | ||
QUALIFY | ||
ROW_NUMBER () OVER (PARTITION BY local_id ORDER BY debutvacance DESC) = 1 | ||
{% endmacro %} |
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
2 changes: 2 additions & 0 deletions
2
analytics/dbt/models/intermediate/lovac/int_lovac_ex_2019.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,2 +1,4 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2019') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} | ||
|
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2020') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2021') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2022') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2023') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2024') }} | ||
{{ filter_lovac(ccthp = True, vacancy = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2019') }} | ||
{{ filter_lovac(ccthp = True) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2020') }} | ||
{{ filter_lovac(ccthp = True) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2021') }} | ||
{{ filter_lovac(ccthp = True) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2022') }} | ||
{{ filter_lovac(ccthp = True) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2023') }} | ||
{{ filter_lovac(ccthp = False) }} | ||
{{ deduplicate_lovac() }} |
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,2 +1,3 @@ | ||
SELECT * FROM {{ ref ('stg_lovac_2024') }} | ||
{{ filter_lovac(ccthp = True) }} | ||
{{ deduplicate_lovac() }} |
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
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
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
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2019') }} | ||
), | ||
{{ handle_lovac_different_years () }} | ||
{{ handle_lovac_different_years(new_version=False) }} |
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2020') }} | ||
), | ||
{{ handle_lovac_different_years () }} | ||
{{ handle_lovac_different_years (new_version=False) }} |
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2021') }} | ||
), | ||
{{ handle_lovac_different_years () }} | ||
{{ handle_lovac_different_years (new_version=False) }} |
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2022') }} | ||
), | ||
{{ handle_lovac_different_years () }} | ||
{{ handle_lovac_different_years (new_version=False) }} |
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2023') }} | ||
), | ||
{{ handle_lovac_different_years () }} | ||
{{ handle_lovac_different_years(new_version=True) }} |
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,4 +1,4 @@ | ||
with source as ( | ||
SELECT * FROM {{ source ('duckdb_raw', 'raw_lovac_2024') }} | ||
), | ||
{{ handle_lovac_different_years() }} | ||
{{ handle_lovac_different_years(new_version=True) }} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,5 @@ | ||
REACT_APP_API_URL=http://localhost:3001 | ||
REACT_APP_MATOMO_ENABLED=false | ||
REACT_APP_MATOMO_SITE_ID=1 | ||
REACT_APP_MATOMO_SRC_URL=http://url-matomo | ||
REACT_APP_METABASE_STATS_DASHBOARD=UUID | ||
REACT_APP_FEATURE_OCCUPANCY=ct1,ct2,ct3 | ||
REACT_APP_POSTHOG_ENABLED=false | ||
REACT_APP_POSTHOG_API_KEY=key |
Oops, something went wrong.