Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(graphql): removed duplicated entity in EntityTypeUrnMapper #12406

Merged

Conversation

Masterchen09
Copy link
Contributor

When I tried to create a structured property using the new UI in v0.15.0, I noticed, that it does not work because there is a duplicated entry in the EntityTypeUrnMapper:

Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.IllegalArgumentException: Multiple entries with same key: dataProcessInstance=urn:li:entityType:datahub.dataProcessInstance and dataProcessInstance=urn:li:entityType:datahub.dataProcessInstance [in thread "ForkJoinPool.commonPool-worker-325"]

The duplicated entry was added with #12263.

I have also added some simple tests of EntityTypeUrnMapperTest (and EntityTypeMapperTest) to make sure that duplicated entries will be noticed in the future there. I have not tested the tests locally, we will see whether they work in the CI pipeline.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added product PR or Issue related to the DataHub UI/UX community-contribution PR or Issue raised by member(s) of DataHub Community labels Jan 20, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Jan 20, 2025
@Masterchen09 Masterchen09 force-pushed the fix-entity-type-urn-mapper branch from aea1f21 to 44018cc Compare January 20, 2025 21:26
Copy link

codecov bot commented Jan 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2109abd...91419b0. Read the comment docs.

Copy link
Collaborator

@david-leifker david-leifker left a comment

Choose a reason for hiding this comment

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

This looks good to me, thank you for adding the test as well!

@david-leifker david-leifker merged commit a20f660 into datahub-project:master Jan 20, 2025
165 of 166 checks passed
@Masterchen09 Masterchen09 deleted the fix-entity-type-urn-mapper branch January 20, 2025 23:03
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 needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants