Repository navigation
Fixes 36737: Improve native ontology authoring and publication safeguards - #36738
Conversation
❌ 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 |
|
| Count | Rule |
|---|---|
| 2 | openmetadata-imports/review-sequential-api-calls |
| 1 | openmetadata-imports/no-api-calls-in-iteration |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/governance/ontology/OntologyGraphView/OntologyGraphView.tsx:585:9 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
| 🟡 | src/hooks/governance/ontology/useOntologyChangeSetApply.ts:191:30 |
openmetadata-imports/no-api-calls-in-iteration |
Avoid issuing one API request per item. Fetch at the data owner, use a bulk endpoint, or use useQueries with an intentional concurrency policy. |
| 🟡 | src/hooks/governance/ontology/useOntologyChangeSetApply.ts:357:9 |
openmetadata-imports/review-sequential-api-calls |
Review these sequential API requests. If they are independent, start them together with Promise.all/Promise.allSettled; keep sequencing only when data-dependent |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed
Code Review ✅ Approved 2 closed / 2 findings🔴 High risk · Ontology axiom payload shaping and draft reconciliation affect persisted model statements; incorrect handling could store incomplete or unintended ontology semantics. Protects native ontology drafts across navigation, nested workflows and browser history, and resolves exact typed class labels to their unique IRI. Navigator interception is now documented in an ADR, and typing an exact class label stores the IRI rather than the label text. No open issues found. ✅ 2 closed✅ Quality: Navigator interception rule is decided but recorded nowhere
✅ Edge Case: Typing a class label exactly stores the label text, not the IRI
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:
Fixes #36737
Native Ontology Studio can lose unsaved edits during navigation, accept misleading statement inputs, and show incomplete publication controls in AI mode. This change protects drafts through authoring and navigation, preserves native statement semantics, and makes review configuration and validation status available in both layouts.
Type of change:
High-level design:
The native SQL entities and immutable release APIs remain authoritative. Forms register dirty state with the page's draft provider; confirmed transitions reuse the existing navigation guard. Programmatic interception is enabled only for ontology drafts, preserving WorkflowBuilder's save behavior. Browser history tests cover saving before Back/Forward and starting another edit session.
Shared classic/AI presentation stays in OpenMetadata; Collate owns AI enablement and integrations. This PR needs no Collate counterpart, schema migration or saved-axiom conversion.
The scope and all 57 gap dispositions and statement-semantics decision explain the native requirements. Prototype styling guides the UI. Multiple inheritance, independent approval, immutable releases and active-release query semantics are preserved. A new reasoner, datatype facets, quick-rule editor and extra lifecycle features remain separate product work.
Review fixes (ae3a918)
Tests:
Use cases covered
Unit tests
yarn test Ontology useWorkflowNavigationBlock WorkflowBuilder --runInBand --silent --coverage: 154 suites / 1,601 tests passed.Backend integration tests
Not applicable — no Java, API, schema or migration changes.
plan_local_java_tests.py --check-branchpasses. The backend distribution builds successfully with Java 21.Ingestion integration tests
Not applicable — no ingestion changes.
Playwright (UI) tests
All reported runs use zero retries against the local MySQL/Elasticsearch stack.
3814a129c7f: native authoring, data/live-data, export, import, library, operations, relations, Studio/tree shell, first run, authoring safeguards, review/review tasks; workflow change-request lifecycle, Git sink token masking, no-op node configuration, recognizer/schema locks, condition negation, execution history and OSS restrictions.3814a129c7f.Other checks: changed-file ESLint/import ordering/Prettier, license headers, i18n sync, Playwright types and production UI build pass. Whole-app TypeScript still reports the existing
CustomValidatormismatch atIngestionWorkflowForm.tsx:413. Existing repository-wide token-audit violations remain outside this change.Manual testing performed
The following flows were driven with Playwright and visually inspected in the recordings:
UI screen recording:
Recorded runtime SHA:
3814a129c7f19ee7ac3cc06121e0cd91507fd080. These clips predate the exact-label fix inae3a9181b47a7c1757235d5e01652f347651ced0and need refreshing before upload.Built the UI and Maven distribution locally, packaged image
ontology-single-pr:3814a129c7f, and started it on the isolatedontology-single-prDocker network with MySQL and Elasticsearch.GET /api/v1/system/versionreturns the recorded SHA; database, search, JWT and migrations checks pass. Airflow is absent. The stack remains running.Repository sample data includes
ontology_review_sample_data.ecommerce_db.shopify."dim.shop"; synthetic ontology fixtures are created through the API. The dashboard sample fixture also required omitting one invalid quoted nested-column name; no source fixture was changed.Three original WebM clips at 1920×1080/25fps, approximately 45–48 seconds each. Beginning, changed-state and final frames were inspected for readable controls and unclipped dialogs. GitHub upload is pending; local references below will be replaced with hosted attachments before readiness.
Classic light:
AI light:
AI dark:
Checklist:
Fixes <issue-number>: <short explanation>; linked issue above.ae3a9181b47a7c1757235d5e01652f347651ced0; independent review found no unanswered blocking findings.