Repository navigation
UNIC-2179 Add curated step to bd_previnf and reset the anonymized datasets - #1617
Merged
Merged
Conversation
…ed datasets Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
laurabegin
force-pushed
the
feat/UNIC-2179
branch
from
September 23, 2026 19:08
714f577 to
5709b44
Compare
Member
Author
@philipbouvrette tu m'as fait réalisé que ça avait mal été push. C'est fixed. Là y a des changements. |
Asciax
approved these changes
Sep 23, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to unic-etl#1737, which adds a red/curated step to bd_previnf so the anonymized datasets can upsert on the financial year instead of overwriting the previous one.
The config moves from
yellow/anonymized/tored/curated/, following every other system that has a curated step (etraceline, medecho, pericalm, opera…), and gains a curated step that runs before the anonymized one.Changes
curated_bd_previnf_*datasets, gating the anonymized step.run_type: "initial"on the 6 anonymized datasets — the 3 curated-sourced ones change schema and grain, and the other 3 switchOverWrite→Upsert. Since raw isOverWritePartition, every historical partition is still available, so a reset rebuilds the full year history instead of only moving forward.greater_or_equal_partition_countspre-test on both steps. The test resolves each destination back to its source, so the two cover disjoint tables: the curated one checks the 3 raw tables feeding curated, the anonymized one checks the 3 curated outputs plus the 3 raw tables that bypass curated. Together every bd_previnf source is covered; today none are.xsmalleverywhere — all tables hold fewer than 50 rows.Task graph verified locally:
curated.pre_tests→ 3 curated tasks →anonymized.pre_tests→ 6 anonymized tasks.171 passed, 0 import errors.Merge order
Merge unic-etl#1737 first. The pre-tests resolve destinations through
Common.mappings, and the curated bd_previnf entries are added there in that PR — without it the pre-test matches no mapping and silently tests nothing.Deploy notes
anonymized_bd_previnf→curated_bd_previnf(the id comes from the config directory). The new DAG is created paused and needs unpausing; the old id keeps its run history.run_type: "initial"is persistent config, so it resets on every monthly run until someone sets it back todefault. If the intent is a one-time reset, that needs a follow-up PR after the first successful run.🤖 Generated with Claude Code