Skip to content

Conversation

zhixuanjia
Copy link
Contributor

@zhixuanjia zhixuanjia commented Oct 1, 2025

Issue Summary
Currently in the request body of createGenericEntities API , the entity name is passed in as camel case like FooBar but the entity type stored in DB is lowercase such as urn:li:foobar:123. This results in empty list in the response.

Fix
Perform case-insensitive matching on the result map key.

@github-actions github-actions bot added devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels Oct 1, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Oct 1, 2025
Copy link

codecov bot commented Oct 1, 2025

Bundle Report

Bundle size has no change ✅

Copy link

codecov bot commented Oct 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@datahub-cyborg datahub-cyborg bot added merge-pending-ci A PR that has passed review and should be merged once CI is green. and removed needs-review Label for PRs that need review from a maintainer. labels Oct 1, 2025
for (String entityName : entityTypes) {

// Case-insensitive matching.
List<IngestResult> entityResults = resultsByEntityType.getOrDefault(entityName, List.of());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhixuanjia we can always check for lower case here ?
cc: @david-leifker

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment merge-pending-ci A PR that has passed review and should be merged once CI is green.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants