Repository navigation
Fixes #35293: Serve glossary CSV documentation for glossary-term import - #35301
Merged
Merged
Conversation
The bulk import page asks /v1/csv/documentation/{entityType} for the type it
imports into. For a glossary term that is glossaryTerm, which has no
documentation file, so every request returned a 500 and was logged twice at
ERROR. Glossary-term import already goes through GlossaryCsv, so glossaryTerm
now gets the glossary's documentation. A type with no documentation returns a
404, and the FATAL log before the rethrow is gone.
Contributor
✅ PR checks passedThe linked issue has a description and all required Shipping project fields set. Thanks! |
13 tasks done
Code Review ✅ Approved🟡 Medium risk · Mapping glossary-term documentation requests to glossary content could show mismatched CSV guidance if formats diverge; missing documentation now returns 404. Glossary-term CSV import now reuses the glossary documentation, and unknown entity types return a 404 instead of a 500 with duplicate error logging. No issues found. VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledOptionsDisplay: compact → Counting what did not apply, without listing it. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
manerow
approved these changes
Oct 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes:
Fixes #35293
The bulk import page asks
GET /v1/csv/documentation/{entityType}for the column documentation of the type it imports into. For a glossary term that type isglossaryTerm, which has no documentation file, so every request failed with a 500 and was logged twice at ERROR:EntityCsvloggedFATAL - ...before throwing, and the exception mapper logged the same exception again.GlossaryCsv, whose documentation is the glossary's, soglossaryTermnow gets the glossary documentation.EntityNotFoundException, so it returns a 404 instead of a 500.LOG.errorbefore each rethrow is gone, so a failure is logged once, by whoever handles it.The other items in #35293 are already fixed on main or only affect 2.0. The 2.0 changes are in #35302.
Type of change:
High-level design:
N/A — small change.
Tests:
Use cases covered
Unit tests
EntityCsvTest. The newtest_getCsvDocumentationServesGlossaryDocumentationForGlossaryTermschecksglossaryTermgets the same documentation asglossary, through the real classpath lookup.test_getCsvDocumentationLoadsKnownResourcesAndHandlesMissingEntityTypenow expects a 404EntityNotFoundException.EntityCsvTest: 66 tests, 0 failures.EntityCsv.java(100%), measured with jacoco overEntityCsvTest.Backend integration tests
openmetadata-integration-tests/for new/changed API endpoints.CsvDocumentationResourceIT.glossaryTermreturns 200 with the same body asglossary, and an unknown type returns 404.Ingestion integration tests
Playwright (UI) tests
Manual testing performed
None beyond the tests above. The unit test runs the real classpath lookup, and the IT covers the HTTP status codes.
UI screen recording:
Not applicable — backend-only fix.
Checklist:
Fixes <issue-number>: <short explanation>Fixes #<issue-number>above.🤖 Generated with Claude Code