Repository navigation
fix(playwright): keep glossary status-filter specs excluded from the approval workflow (backport 2.0 #37032) - #37250
Conversation
…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.
❌ 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 |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
🔄 Playwright impact map auto-refreshedThis PR touched specs or UI source that changed the source→spec routing map. I regenerated 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 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 |
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. 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:
Backport of the glossary part of #37032 to
2.0. The AUT1.12.14 ➡ 2.0(run 42177869360, kind/PostgreSQL full lane) fails 3 tests on every retry:GlossaryStatusFilterLargeDataset› should display only Draft terms when filteredGlossaryStatusFilterNestedTerms› search for child term name + apply non-matching status filter shows no resultsGlossaryExpandAllWithStatusFilter› Expand All shows all children regardless of status filterCause: the 2.0 backport of #36855 (
cdff1b82935) makes aGlossaryTermApprovalWorkflowrun judge the change its own event made. A run for a term's create event that lands after the spec PATCHed the term'sentityStatustakes 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/includeGlossaryInApprovalWorkflowfrom 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 frombeforeAlluntilafterAll.GlossaryExpandAllWithStatusFilterwas deleted on main, so it gets the same treatment here only.Not ported from #37032: the
DomainFiltering,DomainDropdownIsolationandLargeGlossaryPerformancehunks — #36483 and #36905 are not on 2.0, and those specs pass in this run.Type of change:
Tests:
🤖 Generated with Claude Code