Repository navigation
Fixes #37389: expect a skipped xsd:date range in the ontology import review spec - #37390
Conversation
…ort preview #37360 changed the native RDF importer to skip and report statements the model cannot hold instead of failing the preview. The import review spec still expected the old error alert, so it failed on every nightly AUT run. Assert the skipped-statements disclosure and that the rest applies.
❌ 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 |
|
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! |
Code Review ✅ Approved🟢 Low risk · This updates a Playwright spec and generated impact map only; it changes test expectations without altering application runtime behavior. Updates the ontology import review Playwright spec to expect the skipped 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 #37389
OntologyNativeImportReview.spec.ts › fails the preview with the datatype reasonfails on every nightly AUT run (both DBs, all retries — e.g. run 42561101499). It waits for an error alert namingXMLSchema#datethat no longer exists.#37360 deliberately changed the native RDF importer to skip and report statements the model can't hold instead of failing the preview: an
xsd:daterange is now listed under "Skipped statements" (UNSUPPORTED_STRUCTURE,rdfs:range) and the rest imports. That PR updated the Java IT (aRangeOutsideTheOwlDatatypeMapIsSkippedAndReported) but not this spec. The AUT page snapshot confirms it: the preview showedSkipped statements: 1and an enabledImport 2 selected, with no alert.The test is renamed to
skips and reports a datatype range it cannot hold, and imports the restand now asserts:rdf-schema#rangepredicate and theissuedOnIRI;Import 2 selected, the import applies, andInvoicelands — so a skipped range doesn't break apply (the ADR's "a preview never counts a property that apply refuses").Type of change:
High-level design:
N/A — test-only change to one spec.
Tests:
Use cases covered
xsd:daterange previews successfully, reports the skipped range, and imports the concept and property.Unit tests
Not applicable (test-only change).
Backend integration tests
Playwright (UI) tests
openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/OntologyNativeImportReview.spec.tsyarn lint:playwright: 0 errors.Run locally against a server built from this branch (
2955410e3bd, which includes #37360) with Vite on :3000.Before — the old test against the current backend reproduces the AUT failure exactly:
After — the whole spec file, 26/26 passed:
Manual testing performed
mvn -DskipTests -DonlyBackend -pl openmetadata-dist -am package, migrated a fresh MySQL schema, started the server on :8595.POST /v1/ontologies/{id}/imports/previewwith the spec'sDATE_RANGE_TURTLEreturnsskippedStatements: {total: 1, groups: [{reason: UNSUPPORTED_STRUCTURE, predicate: rdfs#range, subjects: [.../issuedOn]}]}.UI screen recording:
Not applicable — test-only fix, no UI behaviour change.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code