Repository navigation
Ontology Studio: real property names, Library unsaved-changes guard, and Playwright fixes after #37814 - #37816
Conversation
… 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).
❌ 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 |
…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.
|
Fixed in 1b67da0. The publication-status error state's Reload now calls |
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.
Code Review ✅ Approved 🟡 Medium risk 1 closed / 1 findingsChanging 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
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:
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
mainafter #37814 (https://github.com/open-metadata/OpenMetadata/actions/runs/43617762853).Property labels and names
getPropertyLabelshows 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.Product fix found by the run
Accurate load-failure messages
The task review panels, which do load the submitted version, keep the original message.
SomethingWentWrongPlaceholder) with Reload.label.releaseandlabel.publication-statusare added and translated in every locale.Ontology Playwright fixes
OntologyNativeStudio:289OntologyNativeStudio:834OntologyStudioFlows:767,OntologyReviewTasks:370TextArea's wrapperOntologyAuthoringSafety:246OntologyReview:2248OntologyNativeAuthoring:520(flaky)chooseSelectOptionOntologyNativeDataMode:437(flaky)waitForSearchIndexedbefore searchingOntologyReview:2371(flaky)openReleaseHistoryretries the pick and click togethercustomerNumber,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.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 theontology-publish-releasesbaselines 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:

A name with a space is refused:

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):
Tests
getPropertyLabelkeeps 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 4OntologyExplorerPagefailures fail onmaintoo.scripts/ui-checkstyle-changed.sh, plus organize-imports, lint and prettier on the changed Playwright files) andlint:playwrightpass. The Playwright impact map is regenerated.Type of change:
Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code