Skip to content

[2.1] Fixes #37707: Fix ontology canvas Playwright failures in the nightly AUT - #37709

Merged
anuj-kumary merged 1 commit into
2.1from
anuj-kumary/ontology-failure-fix-2.1
Nov 13, 2026
Merged

anuj-kumary merged 1 commit into
2.1from
anuj-kumary/ontology-failure-fix-2.1

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #37707

Cherry-pick of the canvas fixes from #37708 for 2.1. Two ontology specs fail every retry in the 2.1 nightly AUT (run 43339525875):

  • OntologyNativeRelations placement: findEmptyCanvasPoint picked the far-right point, where the 40vw concept drawer opens (ADR:2026-11-12-ontology-studio-drawers-are-40vw-with-a-420px-floor). revealHiddenNode then panned the new node into view, 741px away. Adds an opt-in besideDrawer option that keeps the point out of the drawer's area. Only this test uses it.
  • OntologyStudioFlows flow 3 (AI mode): closes the first concept's inspector before the double-click. With the Collate AI sidebar it left ~400px of canvas and no point 160px from a node.

These pass in OM CI because the Collate layout around the Studio differs (sidebars, nav). The viewport is 1280×720 in both.

Type of change:

  • Bug fix

High-level design:

N/A — small change.

Tests:

Test-only change.

  • yarn lint:playwright: 0 errors. tsc -p playwright/tsconfig.json: no errors in the changed files.
  • Ran locally against the OM UI (Vite) + backend, --retries=0. On main, all 6 passed; the 2 changes here are the same code:
    • OntologyNativeRelations placement
    • OntologyStudioFlows flow 3 (classic, AI)
  • Not run inside the Collate shell. The next nightly AUT run confirms the two geometry fixes.

Checklist:

  • I have read the CONTRIBUTING document.
  • I have commented on my code, particularly in hard-to-understand areas.

The OntologyRules lane 7 and 9 changes in #37708 are left out: they follow #37637, which is not on 2.1, and those lanes pass on 2.1.

🤖 Generated with Claude Code

Cherry-pick of the canvas fixes from #37708 (the OntologyRules changes
target #37637, which 2.1 does not have).

- OntologyNativeRelations placement: pick the double-click point clear of
  the 40vw drawer it opens, which otherwise pans the new node into view.
- OntologyStudioFlows flow 3: close the new concept's inspector so the
  narrowed AI-mode canvas has an empty point to double-click.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 13, 2026 02:58
@anuj-kumary
anuj-kumary requested review from chirag-madlani and removed request for a team November 13, 2026 02:58
@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.

@gitar-bot

gitar-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Changes Playwright canvas targeting and inspector sequencing, so incorrect layout assumptions could make ontology tests interact with unintended canvas areas.

Cherry-picks the 2.1 ontology canvas Playwright fixes from #37708: findEmptyCanvasPoint gains an opt-in besideDrawer option so OntologyNativeRelations places nodes away from the 40vw concept drawer, and OntologyStudioFlows flow 3 closes the first concept's inspector before the double-click. 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

@anuj-kumary anuj-kumary added the safe to test Add this label to run secure Github workflows on PRs label Nov 13, 2026
@anuj-kumary
anuj-kumary merged commit af5f589 into 2.1 Nov 13, 2026
51 of 52 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/ontology-failure-fix-2.1 branch November 13, 2026 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant