Repository navigation
Fixes 37053: Run the data product domain containment repair in 2.0.8 - #37096
Conversation
The repair ships with the next 2.0 release, 2.0.8, so it belongs to that version's migration instead of 2.0.9. Databases already at 2.1.0 reprocess 2.0.8 for its SQL only, so 2.1.0 keeps running the repair as well.
Code Review ✅ Approved🔴 High risk · Moving the containment repair into 2.0.8 rewrites stored domain links during upgrades; a misapplied repair could associate data products with incorrect domains. Moves the data product domain containment repair from the 2.0.9 migration to 2.0.8 so it ships with the next 2.0 release, and removes the now-empty Postgres 2.0.9 class. The repair logic itself is unchanged, and 2.1.0 still re-runs it. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
🤖 Backport to |
|
🤖 Not backported to
|
…nd stale data product domain links (2.0) (#37109) * Fixes #37053: Data Product Domain Validation with inherited domains and stale data product domain links (2.0) Backport of #37006 and #37096 to 2.0. - Rules on PATCH, create, PUT and bulk PUT see the domains an entity inherits from its parent, so an asset whose domain comes from its schema and carries a data product of that domain is no longer rejected. - The 2.0.8 migration rewrites a data product's CONTAINS link to the domain it shows. Products moved to another domain before 1.12.12 / 1.13.1 kept their old domain there, which the rule reads, so every edit to their assets was rejected. The repair walks data products in id batches (IdBatches, ported from main) and only rewrites links that disagree. (cherry picked from commit 16b6974) * chore(playwright): auto-refresh impact-map.generated.json * Stub the containment repair in the 2.0.8 entry-point test The test runs the 2.0.8 data migration against a mocked handle, so the repair step now in that migration needs stubbing like the other steps. --------- Co-authored-by: Sriharsha Chintalapani <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Describe your changes:
Fixes #37053
#37006 added the data product domain containment repair to the 2.0.9 migration. The repair ships with the next 2.0 release, 2.0.8, so this moves it to 2.0.8:
DataProductDomainContainmentRepair(and its unit test) move frommigration/utils/v209tomigration/utils/v208.No behavior change in the repair itself.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
DataProductDomainContainmentRepairTest6/0,IngestionPipelineMigrationEntryPointTest2/0 (service unit run: 269 tests, 0 failures).Integration tests
DataProductDomainContainmentMigrationIT(3),NegatedListRuleMigrationIT(2),ConnectionSecretsMigrationIT(21):Tests run: 26, Failures: 0, Errors: 0, Skipped: 0Tests run: 26, Failures: 0, Errors: 0, Skipped: 0Checklist:
Fixes <issue-number>: <short explanation>