Skip to content

Fixes #37389: expect a skipped xsd:date range in the ontology import review spec - #37390

Merged
anuj-kumary merged 3 commits into
mainfrom
anuj-kumary/ontologynativeimportreview.spec.ts-fix
Nov 9, 2026
Merged

anuj-kumary merged 3 commits into
mainfrom
anuj-kumary/ontologynativeimportreview.spec.ts-fix

Conversation

@anuj-kumary

Copy link
Copy Markdown
Member

Describe your changes:

Fixes #37389

OntologyNativeImportReview.spec.ts › fails the preview with the datatype reason fails on every nightly AUT run (both DBs, all retries — e.g. run 42561101499). It waits for an error alert naming XMLSchema#date that 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:date range 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 showed Skipped statements: 1 and an enabled Import 2 selected, with no alert.

The test is renamed to skips and reports a datatype range it cannot hold, and imports the rest and now asserts:

  • the skipped-statements disclosure shows the count, the "Unsupported structure" reason, the rdf-schema#range predicate and the issuedOn IRI;
  • Apply reads Import 2 selected, the import applies, and Invoice lands — so a skipped range doesn't break apply (the ADR's "a preview never counts a property that apply refuses").

Type of change:

  • Bug fix

High-level design:

N/A — test-only change to one spec.

Tests:

Use cases covered

  • Importing a Turtle file whose data property has an xsd:date range previews successfully, reports the skipped range, and imports the concept and property.

Unit tests

Not applicable (test-only change).

Backend integration tests

  • Not applicable (no backend API changes).

Playwright (UI) tests

  • Files updated: openmetadata-ui/src/main/resources/ui/playwright/e2e/Features/OntologyNativeImportReview.spec.ts
  • yarn 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:

before

After — the whole spec file, 26/26 passed:

after

Manual testing performed

  1. mvn -DskipTests -DonlyBackend -pl openmetadata-dist -am package, migrated a fresh MySQL schema, started the server on :8595.
  2. POST /v1/ontologies/{id}/imports/preview with the spec's DATE_RANGE_TURTLE returns skippedStatements: {total: 1, groups: [{reason: UNSUPPORTED_STRUCTURE, predicate: rdfs#range, subjects: [.../issuedOn]}]}.
  3. Ran the spec through Vite proxied to that server (screenshots above).

UI screen recording:

Not applicable — test-only fix, no UI behaviour change.

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • My PR is linked to a GitHub issue via Fixes #<issue-number> above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above.
  • I have added a test that covers the exact scenario we are fixing.

🤖 Generated with Claude Code

…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.
@anuj-kumary
anuj-kumary requested a review from a team as a code owner November 9, 2026 07:42
@anuj-kumary
anuj-kumary requested a review from Rohit0301 November 9, 2026 07:42
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This 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 skip-pr-checks label.

@github-actions github-actions Bot added the UI UI specific issues label Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🔄 Playwright impact map auto-refreshed

This PR touched specs or UI source that changed the source→spec routing map. I regenerated .github/playwright/impact-map.generated.json and pushed the diff to this branch.

- source entries: 1068 → 1069
- 1 added, 0 removed, 0 changed spec-list

New source→spec entries:
  openmetadata-ui/src/main/resources/ui/src/components/governance/ontology/OntologyReleaseExportModal/OntologyNativeImportSkipped.tsx

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 getByTestId strings. Hand-authored routing in impact-map.json always wins on conflict.

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

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

@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 9, 2026
@gitar-bot

gitar-bot Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
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 xsd:date range reported under Skipped statements, rather than an error alert, and verifies that the remaining concept and property still import. No issues found.

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

@anuj-kumary
anuj-kumary enabled auto-merge (squash) November 9, 2026 07:47
@anuj-kumary
anuj-kumary merged commit 87e2f09 into main Nov 9, 2026
64 checks passed
@anuj-kumary
anuj-kumary deleted the anuj-kumary/ontologynativeimportreview.spec.ts-fix branch November 9, 2026 07:50
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 UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playwright: OntologyNativeImportReview still expects the xsd:date preview error removed by #37360

2 participants