Skip to content

fix(migrations): run the negated list rule rewrite in 2.0.8 - #36321

Merged
yan-3005 merged 1 commit into
mainfrom
fix/7854-negated-list-migration-2.0.8
Oct 27, 2026
Merged

yan-3005 merged 1 commit into
mainfrom
fix/7854-negated-list-migration-2.0.8

Conversation

@yan-3005

@yan-3005 yan-3005 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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:

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:

  • Bug fix

Tests:

  • Java unit step from make java_affected (17 classes, including v208.MigrationUtilTest, MigrationWiringTest, MigrationCodeFingerprintTest and MigrationTest): 350 run, 0 failures, 2 skipped.
  • Not yet run, pending: the integration tests (NegatedListRuleMigrationIT and the migration ITs, both engines) and the end-to-end migrate run 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: NegatedListRuleMigrationIT 2/2 on MySQL and Postgres, and the real migrate on both, including an idempotent re-run.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR is linked to a GitHub issue via Fixes … above.
  • Decision check: updates docs/decisions/2026-10-26-negated-list-conditions-are-stored-as-negated-some.md to name 2.0.8.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence 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.7 to 2.0.8 for MySQL and PostgreSQL.

  • 2.0.8 upgrades rewrite saved negated list rules.

No actionable issues found. yan-3005 explicitly noted that integration tests and the end-to-end 2.0.8 migration 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]
Loading

Reviews (1) · Last reviewed commit: "fix(migrations): run the negated list ru..." · Reviewed by Greptile

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.
@yan-3005
yan-3005 requested a review from a team as a code owner October 27, 2026 08:00
@yan-3005
yan-3005 requested review from IceS2 and a balanced review from Copilot October 27, 2026 08:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@github-actions github-actions Bot added backend safe to test Add this label to run secure Github workflows on PRs labels Oct 27, 2026
@gitar-bot

gitar-bot Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
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.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@yan-3005
yan-3005 added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit d6cce6f Oct 27, 2026
80 of 82 checks passed
@yan-3005
yan-3005 deleted the fix/7854-negated-list-migration-2.0.8 branch October 27, 2026 09:38
@yan-3005 yan-3005 self-assigned this Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants