Skip to content

Ontology Studio: real property names, Library unsaved-changes guard, and Playwright fixes after #37814 - #37816

Merged
anuj-kumary merged 8 commits into
mainfrom
anuj-kumary/ontology-property-labels
Nov 14, 2026
Merged

anuj-kumary merged 8 commits into
mainfrom
anuj-kumary/ontology-property-labels

Conversation

@anuj-kumary

@anuj-kumary anuj-kumary commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Describe your changes:

Follow-up to #37814, which merged before these changes landed. Two parts: the property-label fix from end-to-end testing of Ontology Studio, and fixes for every failure in the Postgres Playwright run on main after #37814 (https://github.com/open-metadata/OpenMetadata/actions/runs/43617762853).

Property labels and names

  • getPropertyLabel shows a property's display name, or else its real name. It used to humanize the name (patientId → "patient id"), so two different properties could read identically in the concept drawer, the rule property picker and new rule sentences.
  • The property form rejects a name with whitespace. The field is marked invalid, shows the existing "No spaces" help, keeps Add property disabled, and the name is trimmed before it is sent.

Product fix found by the run

Accurate load-failure messages

  • "The submitted version could not be loaded" was reused for failures unrelated to a submitted version, so an ontology with no releases could show "No releases yet" next to it. Each place now names what it was reading, using the existing "Error while fetching {{entity}}" message:
Where Now says it couldn't fetch
Review & publish: stage and state reads Publication status
Changes list, version compare Changes
Release detail Release
Releases list Releases
Release events Release events
Tasks queue Tasks

The task review panels, which do load the submitted version, keep the original message.

  • One state at a time: when the publication status cannot be read and the view has nothing to list (no releases, or no unpublished changes), the panel no longer shows the empty state and an error banner with Retry together. It shows a single "Error while fetching Publication status" state (the shared SomethingWentWrongPlaceholder) with Reload. label.release and label.publication-status are added and translated in every locale.

Ontology Playwright fixes

Spec Cause Fix
OntologyNativeStudio :289 The graph now sits in the inset card frame from #37814 Assert the graph fills its frame, not the shell edge
OntologyNativeStudio :834 A new ontology opens New concept, whose drawer covers the scope menu Close the drawer first
OntologyStudioFlows :767, OntologyReviewTasks :370 The test id is on the shared TextArea's wrapper Fill the inner textbox, as the other review specs do
OntologyAuthoringSafety :246 Library guard missing (above) Product fix
OntologyReview :2248 The per-kind release summary is classic-only since the round-3 redesign Assert it in classic only
OntologyNativeAuthoring :520 (flaky) The type select closes on the click's scroll chooseSelectOption
OntologyNativeDataMode :437 (flaky) A just-created table was not yet in the search index waitForSearchIndexed before searching
OntologyReview :2371 (flaky) The reader chip and Publish can swap while permissions load openReleaseHistory retries the pick and click together
Several ontology specs Expected humanized property labels Real names (customerNumber, patientId, internalNote, …)

Other Playwright fixes

  • ProfileSsoSettings :196: the roles combobox opens with every role on focus, so the pick could land without the awaited search ever being sent. The test now searches first, then picks.
  • Visual baselines refreshed from the CI render, each diff checked as an intended UI change: Sigma and MicroStrategy connector forms (new fields), topic and spreadsheet custom-properties tabs, glossary page and late activity count, explore long results (dark).
  • Visual fixture fix: the mocked Finance ontology had no publicationStatus, which the real API always returns. The release panel therefore read the publication as stale and showed "The submitted version could not be loaded" under "No releases yet", and the ontology-publish-releases baselines had recorded that error as if it were the real empty state. The fixture now carries { reviewLock: {}, unpublishedChanges: 0 }. The ontology publish baselines will be regenerated from the next CI render.

Screenshots

Property labels show the real names:
Labels

A name with a space is refused:
No spaces

Load-error states (each failure shows one message; where there is room it is the shared full error state with Reload; reproduced by failing that one API call in the browser):

Where Screenshot
Publication status fails, nothing to list: one full error state with Reload Status, Releases
Publication status fails on the Changes tab Status, Changes
Releases list fails Releases list
Changes list fails Changes list
Opened release fails (one error, not two) Release detail
Release events fail Release events
Compare versions fails Compare
Tasks queue fails (no "Select a task") Tasks

Tests

  • Unit tests: getPropertyLabel keeps lookalike names distinct, and the property form blocks a name with a space. The ontology suites (StudioModel utils, concept inspector, graph view, release panel, OntologyExplorer) pass. The 4 OntologyExplorerPage failures fail on main too.
  • UI checkstyle (scripts/ui-checkstyle-changed.sh, plus organize-imports, lint and prettier on the changed Playwright files) and lint:playwright pass. The Playwright impact map is regenerated.
  • Full Postgres Playwright suite on this branch: https://github.com/open-metadata/OpenMetadata/actions/runs/43632229439 (in progress).
  • Checked in Collate (AI mode): property labels, the space validation and the rule property picker.

Type of change:

  • Bug fix

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests around the new logic.

🤖 Generated with Claude Code

… property names

- getPropertyLabel shows displayName, else the property's real name. It
  used to humanize the name (patientId -> "patient id"), so two distinct
  properties could read the same in the drawer, the rule property picker
  and new rule sentences.
- The property form marks a name with whitespace invalid, shows the
  existing no-spaces help, keeps Add property disabled, and trims the
  name it sends.
Ontology:
- NativeStudio: the graph fills its inset card frame (not the shell edge);
  close the New concept drawer before the scope menu it covers.
- StudioFlows, ReviewTasks: fill the comment TextArea's inner textbox.
- AuthoringSafety: restore the unsaved-changes guard on the Library
  button that #37805 dropped with its View-mode switch.
- Review: the per-kind release summary is classic-only since round 3.
- NativeAuthoring: pick the class type with chooseSelectOption.
- NativeDataMode: wait for a new table to be indexed before searching it.
- openReleaseHistory: retry the reader-chip / Publish pick and click
  together, since permissions can swap them.
- Specs expecting humanized property labels now read the real names.

Other:
- ProfileSsoSettings: search the role before picking, so the awaited
  search request is actually sent.
- Refresh visual baselines that drifted with intended UI changes
  (connector forms, entity tabs, glossary, explore, ontology releases).
@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.

@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 14, 2026
…PI always returns

Without it the release panel reads the publication as stale and shows
'The submitted version could not be loaded' under 'No releases yet',
which the ontology releases baselines then recorded as if it were the
real empty state.
…rsion'

'The submitted version could not be loaded' was reused for failures that
have nothing to do with a submitted version, so an ontology with no
releases could show 'No releases yet' next to it. Each place now names
what it was reading with the existing 'Error while fetching {{entity}}':
publication status (state and stage reads), changes (working diff and
compare), release (detail), releases (history), release events and tasks.
The review panels that do load the submitted version keep the message.

Adds label.release and label.publication-status in every locale.
…oad error

When the publication status cannot be read and the view has nothing to
list (no releases, or no unpublished changes), the panel showed the empty
state and an error banner with Retry together. It now shows a single
'Error while fetching Publication status' state with Reload.

Also sorts the polling import for organize-imports and regenerates the
Playwright impact map, which the impact-map drift check reported stale.
- An opened release that cannot be read is reported once (with Retry),
  not again as the publication status; the reviewers card no longer
  repeats an unreadable status.
- Every Review & publish / Releases / Tasks load-error alert puts Retry
  in the Alert's rightContent slot instead of inline after the text.
- The Tasks queue error gains Retry, and the detail pane no longer offers
  'Select a task' when the queue failed to load.
…tion read

- Gitar: the publication-status error state's Reload calls refresh(),
  which re-reads every publication query and clears a sticky failure, so
  one click suffices.
- OntologyRules: wait for the property form to close before moving on;
  its preview now names the property too, so the text check passed early
  and the next click hit the open form's discard prompt.
- OntologyNativeStudio: switching to Edit keeps the Tree surface; pick
  Graph before asserting the canvas.
- OntologyAuthoringSafety: after Discard, View still shows Settings
  read-only, so assert the edit was dropped instead of the form vanishing.
- Visual: ontology graph, tree and Review & publish baselines re-recorded
  now that the fixture carries publicationStatus (the old ones showed the
  broken 'Publish (Unavailable)' state); explore-long-results-dark goes
  back to main's, since its breadcrumb truncation varies between runs.
@anuj-kumary

Copy link
Copy Markdown
Member Author

Fixed in 1b67da0. The publication-status error state's Reload now calls refresh() unconditionally. It invalidates the state query along with the projection, candidate and review reads, and it clears refreshFailed, so a single click recovers whichever read failed. The release panel tests pass (214/214), including the Reload case.

Changes list, release detail, Releases list, Compare, release events, the
Tasks queue, the Studio graph and the definition lists now show the shared
SomethingWentWrongPlaceholder ('Error while fetching X' with Reload)
instead of a thin banner. Compact spots (the footer status line, the
state banner above a loaded list, dialogs and pickers) keep the alert.
@gitar-bot

gitar-bot Bot commented Nov 14, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findings

Changing property validation, unsaved-edit guarding, and publication error handling could block valid authoring or obscure recoverable failures if behavior is wrong.

Reload now refetches only the publication state query, so other reads that stay failed no longer get silently re-requested. No open issues remain.

✅ 1 closed
✅ Edge Case: Reload refetches only the state query while other reads stay failed

📄 openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyReleasePanel/OntologyReleasePanel.tsx:1093-1094 📄 openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyReleasePanel/OntologyReleasePanel.tsx:1114
isStatusUnavailable is true whenever current is not ready. That covers a failed projection read (/ontologies/{id}?fields=publicationStatus,reviewers), a failed candidate or review read, and a sticky refreshFailed from an earlier refresh(). When state.isError is also true, the placeholder's Reload calls only state.refetch(). That does not refetch the projection and does not clear refreshFailed, so the same error placeholder comes back and the user has to click Reload a second time, which then goes through refresh(). refresh() already invalidates ['ontology-state', ontologyId] along with every other publication read, and it resets refreshFailed. Calling it unconditionally fixes this in one click.

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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants