Repository navigation
fix(migrations): run the negated list rule rewrite in 2.0.8 - #36321
Conversation
2.0.7 is already frozen, so the migration that rewrites stored negated list rules moves from 2.0.7 to 2.0.8. Only that migration moves: the 2.0.7 migration keeps exactly the steps it had before. No change in behaviour.
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Moving the rule rewrite to 2.0.8 changes stored workflow, contract, and entity-rule semantics; existing rules could evaluate differently after upgrade. Moves the negated list rule rewrite migration from 2.0.7 to 2.0.8 so the frozen 2.0.7 release is restored to its prior steps, with no change in behaviour. 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 |
Describe your changes:
Fixes open-metadata/openmetadata-collate#7854
Follow-up to #36220. 2.0.7 is already frozen, so the data migration that #36220 added to 2.0.7 (rewriting stored negated list rules) moves to 2.0.8. Only that migration moves. The 2.0.7 migration goes back to exactly the steps it had before #36220, plus the MCP consent change merged since (#36172). There is no change in behaviour: the code is the same, only the version it runs under changes.
What changed:
migration/utils/v207/MigrationUtil,mysql/v207/Migration,postgres/v207/Migration: fix(workflows): make tag "Is Not" mean "not tagged" and show negated rules #36220's additions removed. I checked the diff line by line against the pre-fix(workflows): make tag "Is Not" mean "not tagged" and show negated rules #36220 file plus fix(mcp): ask before sso sign-in authorizes a client #36172.migration/utils/v208/MigrationUtil(the moved code),mysql/v208/Migrationandpostgres/v208/Migration(the same threerunOncesteps: data contracts, entity rules, then workflows with redeploy), andbootstrap/sql/migrations/native/2.0.8/{mysql,postgres}(comment-onlyschemaChanges.sql, emptypostDataMigrationSQLScript.sql).v207/MigrationUtilTestmoved tov208/MigrationUtilTest(git mv; added by fix(workflows): make tag "Is Not" mean "not tagged" and show negated rules #36220).NegatedListRuleMigrationITand the decision record now refer to 2.0.8.A database that already ran #36220's 2.0.7 steps (main nightly) runs the 2.0.8 steps once more. They're idempotent: rules already in the new shape are left alone, and no workflow is redeployed unless it changes.
Counterparts, updated the same way: #36263 (2.0 backport), open-metadata/openmetadata-collate#7873 and open-metadata/openmetadata-collate#7874.
Type of change:
Tests:
make java_affected(17 classes, includingv208.MigrationUtilTest,MigrationWiringTest,MigrationCodeFingerprintTestandMigrationTest): 350 run, 0 failures, 2 skipped.NegatedListRuleMigrationITand the migration ITs, both engines) and the end-to-endmigraterun under 2.0.8. Docker was unavailable on my machine when this was opened; I'll post the results here.The 2.0.7 version of this exact code passed those runs in #36220:
NegatedListRuleMigrationIT2/2 on MySQL and Postgres, and the realmigrateon both, including an idempotent re-run.Checklist:
Fixes …above.docs/decisions/2026-10-26-negated-list-conditions-are-stored-as-negated-some.mdto name 2.0.8.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge; no actionable issues were found in the migration move.Summary
Moves the stored negated-list rule rewrite from
2.0.7to2.0.8for MySQL and PostgreSQL.No actionable issues found.
yan-3005explicitly noted that integration tests and the end-to-end2.0.8migration run remain pending because Docker was unavailable. No runtime verification was performed during this review.Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Upgrade selects 2.0.8] --> B[Rewrite data contract rules once] B --> C[Rewrite entity rules once] C --> D[Initialize workflow engine] D --> E[Check stored workflow rules] E --> F{Rule changed?} F -->|Yes| G[Save and redeploy workflow] F -->|No| H[Leave workflow unchanged]Reviews (1) · Last reviewed commit: "fix(migrations): run the negated list ru..." · Reviewed by Greptile