Repository navigation
Fixes #39808: Tag, Classification, Data Contract, Policy and Custom Property specs as browser tests and Java ITs (Governance wave 2c) - #39891
Open
anuj-kumary wants to merge 34 commits into
Open
anuj-kumary wants to merge 34 commits into
anuj-kumary wants to merge 34 commits into
Conversation
…sApiContract specs
…browser tests + ITs
…ry/governance-wave2c
…fusal shows; tag spec
…ClassificationVersionPage specs
… and term count ITs
…ests in Playwright
…agPage description flake)
The tabs useMemo read customizedPage?.tabs without depending on it, so a layout that loaded after the entity left the default tabs on screen. File pages showed it every time; ten more pages hid it behind other deps.
Code Review ✅ Approved 🟡 Medium riskAdding customizedPage?.tabs to entity-page tab recomputation changes when layouts update, which could alter visible tabs across several entity pages. Migrates 105 Playwright tests across 24 Tag, Classification, Data Contract, Policy and Custom Property specs to browser tests and Java ITs, tagging the originals as 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 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes #39808
Governance wave 2c (open-metadata/openmetadata-collate#9191): the Tag, Classification, Data Contract, Policy and Custom Property Playwright specs, to the bar of #39857. 105 Playwright tests are now tagged
migratedToacross 24 specs, each with a browser-test replacement and, where the test also proved something about the server, a Java IT. Nothing is deleted: both run side by side for the one-week validation; removal is tracked in #39892, which lists every test with its replacement.Tags / Classification (59)
Pages/Tag.spec.tsPages/TagPageRightPanel.spec.tsPages/Tags.spec.tsFeatures/CertificationDropdown.spec.tsFeatures/ClassificationImportExport.spec.tsPages/ClassificationConditionalRendering.spec.tsFeatures/SystemCertificationTags.spec.tsFeatures/TierDropdown.spec.tsFeatures/ClassificationTagUsage.spec.tsPages/EditClassification.spec.tsFeatures/MutuallyExclusiveColumnTags.spec.tsFeatures/TierWidget.spec.tsVersionPages/ClassificationVersionPage.spec.tsData Contracts (35)
Pages/DataContracts.spec.tsPages/DataContractInheritance.spec.tsPages/DataContractSchemaContract.spec.tsPages/DataContractSLARoundTrip.spec.tsPages/DataContractSLAValidation.spec.tsPolicies (3)
Pages/Policies.spec.tsCustom Properties (8)
Features/TeamUserCustomProperties.spec.tsFeatures/CustomPropertiesPersonaWidget.spec.tsFeatures/ArticleCustomProperties.spec.tsFeatures/SchemaTableCustomPropertyColumns.spec.tsPages/CustomPropertiesApiContract.spec.tsKept in Playwright, each with a
// Stays in Playwright:comment:Features/TagsSuggestion.spec.ts(7): two signed-in users drive real tag tasks through the task workflow engine, whose resolution writes the tags.Pages/Tag.spec.ts"Add and Remove Assets…" (4): the added assets must come back from the real search index on the Assets tab and its entity-type filter.Pages/Tags.spec.ts"Classification Page" (1): a cross-page journey through a real request-tags task.Pages/DataContracts.spec.ts(1, Table): its contract's quality tests run through a real test suite pipeline.Type of change:
High-level design:
tags/tagPage.ts(tag and classification pages, withreplaceEditorTextfor the block editor),data-contracts/contractLifecycle.contract.tsx,entityMatrix.ts(pickTags), andwithToasts()insession.tsx, which mounts the toast host the real app renders outside the router (used byrenderWithToaststoo).useMemothat readcustomizedPage?.tabswithout depending on it. A persona page layout that loaded after the entity left the default tabs on screen, so a persona that hides a tab still showed it. File showed this every time (it failed CI); the others only worked because other dependencies happened to change afterwards. Each page getscustomizedPage?.tabsin its dependency list, one line each.Personatype imports,filterDocstyping, contract enum values, theArticleentity type). The remainingtsc:checkerrors are in files unchanged frommain.Tests:
Which test layer and why
migratedTo.split(...)when both halves matter.New Java IT methods (20)
TagResourceIT:aggregate_tagUsage_countsTheTaggedAssetAndNotTheUnusedTag,list_disabledFalse_leavesOutADisabledTagUntilItIsEnabled,patch_classificationOwner_isInheritedByItsExistingTags,patch_tagOwner_listsTheTagAmongTheOwnersAssets,post_colonSeparatedName_isCreatedReadAndEdited_doubleColonIsRefused,post_tagWithDomain_keepsTheDomain,search_pickerFilterLeavesOutDisabledTagsAndDisabledClassifications,search_tagIndex_findsATagByItsClassificationDisplayNameClassificationResourceIT#list_withTermCount_countsTheSeededSystemTagsColumnResourceIT#test_updateTableColumn_mutuallyExclusiveTags_rejectedAndKeepsTheFirstTableResourceIT#patch_addOneTagRemoveAnother_keepsAppliedByOnTheKeptTagDataContractInheritanceIT(new class, 7 tests): an asset inherits its data product's contract, keeps its own parts, falls back when its contract is deleted, drops it when it leaves the product; only an approved schema contract is inherited; validation stores the result on the assetPolicyResourceIT:test_removingThePolicysLastRuleIsRejected,test_validateConditionAcceptsAValidConditionAndRejectsAnInvalidOneTest results
On the branch at
9da4c070619, which includesmainat156ea637e7a, before the persona fix above.Browser tests: 91/91, three clean runs
Every browser-test file this PR adds or changes (20 files), run three times back to back:
Java ITs: 20/20 on both engines (parallel lane)
DataContractInheritanceIT(7),PolicyResourceIT(2)TagResourceIT(4),ClassificationResourceIT,ColumnResourceIT,TableResourceITTagResourceIT(4 more)Failure found by CI and fixed
DataContractLifecycle.File › a persona layout that leaves out the Contract tab…(always failed): the product bug above. The test runs for all 18 contract entity types through the sharedcontractLifecycle.contract.tsx; only File failed, and the File test file is unchanged by this PR, so the changed-files runs below missed it. After the fix: unit tests of the 11 pages pass (13 suites, 218 tests), anddata-contracts/+customize-page/(35 files, 243 tests) passed three clean runs. One extra run timed out on 12 tests while the machine's load average was 63; it was rerun once the load dropped.Flakes and failures found and fixed before opening
MutuallyExclusiveColumnTags(always failed): the test mounted the page without the toast host, so the server's refusal never showed. It now mounts withwithToasts()and asserts the server's exact message. Not a product bug.TagPage"edited description" (intermittent):userEvent.fillon the block editor sometimes appended to the old text.replaceEditorTextclears with the editor's own select-all, waits for empty, fills, and checks the exact text.ClassificationPagefirst test (intermittent): waited for the first tag-list request with the default 1s during a cold load; nowscaled(60_000).TagResourceIT#patch_tagOwner_listsTheTagAmongTheOwnersAssets(always failed):ownersis a nested field, so a plainowners.idterm never matches. The IT now sends the nested query the UI'sgetTermQuerysends for the owner's My Data tab.UI screen recording:
Not applicable: test-only change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code