Skip to content

fix(playwright): keep glossary status-filter specs excluded from the approval workflow (backport 2.0 #37032) - #37250

Merged
anuj-kumary merged 2 commits into
2.0from
backport-2.0/glossary-status-filter-workflow-exclusion
Nov 6, 2026
Merged

anuj-kumary merged 2 commits into
2.0from
backport-2.0/glossary-status-filter-workflow-exclusion

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Backport of the glossary part of #37032 to 2.0. The AUT 1.12.14 ➡ 2.0 (run 42177869360, kind/PostgreSQL full lane) fails 3 tests on every retry:

  • GlossaryStatusFilterLargeDataset › should display only Draft terms when filtered
  • GlossaryStatusFilterNestedTerms › search for child term name + apply non-matching status filter shows no results
  • GlossaryExpandAllWithStatusFilter › Expand All shows all children regardless of status filter

Cause: the 2.0 backport of #36855 (cdff1b82935) makes a GlossaryTermApprovalWorkflow run judge the change its own event made. A run for a term's create event that lands after the spec PATCHed the term's entityStatus takes the create path and approves the term over the seeded status. On 2.0 these specs never excluded their glossary from the workflow at all.

Fix: port excludeGlossaryFromApprovalWorkflow / includeGlossaryInApprovalWorkflow from main (utils/glossary.ts, compare-and-set patch on the workflow's per-entity trigger filter — same filter shape on 2.0) and keep each spec's glossary excluded from beforeAll until afterAll. GlossaryExpandAllWithStatusFilter was deleted on main, so it gets the same treatment here only.

Not ported from #37032: the DomainFiltering, DomainDropdownIsolation and LargeGlossaryPerformance hunks — #36483 and #36905 are not on 2.0, and those specs pass in this run.

Type of change:

  • Bug fix (test-only)

Tests:

  • Prettier clean on the changed files. The helper is a verbatim copy of main's (comment reworded for 2.0, where direct status PATCHes are not rejected).
  • Not run locally against a 2.0 server; validation is the next 2.0 AUT run.

🤖 Generated with Claude Code

…approval workflow (2.0)

The 2.0 AUT fails GlossaryStatusFilterLargeDataset, GlossaryStatusFilterNestedTerms
and GlossaryExpandAllWithStatusFilter: a GlossaryTermApprovalWorkflow run for a
term's create event lands after the spec patched the term's status and approves
it over the seeded Draft/Deprecated/etc. status (#36855 backport made each run
judge the change its own event made).

Port the trigger-filter exclusion helper from main and keep each spec's glossary
excluded from beforeAll until afterAll, as #37032 did on main.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 6, 2026 09:49
@anuj-kumary
anuj-kumary requested review from shrabantipaul-collate and removed request for a team November 6, 2026 09:49
@github-actions

github-actions Bot commented Nov 6, 2026

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 the UI UI specific issues label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@anuj-kumary anuj-kumary added safe to test Add this label to run secure Github workflows on PRs skip-pr-checks Bypass PR metadata validation check labels Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 572 → 572
- 0 added, 0 removed, 1 changed spec-list

Entries whose spec list changed:
  openmetadata-ui/src/main/resources/ui/src/generated/entity/data/topic.ts

What is this file? It is the auto-generated half of Playwright's PR planner. It routes "if source X changes, run specs Y" by walking spec imports and cross-referencing getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

What if I want to regenerate locally instead? Run this before pushing your next change to skip the bot commit:

python3 .github/scripts/generate_playwright_impact_map.py
git add .github/playwright/impact-map.generated.json
git commit --amend --no-edit  # or a separate commit

@pmbrull
pmbrull requested review from a team, akash-jain-10, harshach and tutte as code owners November 6, 2026 09:49
@gitar-bot

gitar-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved

🟡 Medium risk · The Playwright helpers modify approval-workflow filters during tests; failed cleanup could leave a glossary excluded from approval processing.

Backports the glossary status-filter spec fix to 2.0 by excluding each affected glossary from the GlossaryTermApprovalWorkflow in beforeAll and restoring it in afterAll, so the workflow no longer overwrites seeded entityStatus values. Test-only change; 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 merged commit f97d0e1 into 2.0 Nov 6, 2026
58 of 62 checks passed
@anuj-kumary
anuj-kumary deleted the backport-2.0/glossary-status-filter-workflow-exclusion branch November 6, 2026 11:08

This branch was previously deployed

1 inactive deployment
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 skip-pr-checks Bypass PR metadata validation check UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants