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(dataProduct) Show entity count excluding soft deleted entities #8444

Conversation

chriscollins3456
Copy link
Collaborator

The number of assets we were showing on a data product profile page and search result card was just a straight count of the number of urns on its aspect. This was then including soft-deleted entities that don't show up in the Assets tab so the numbers were off.

This utilizes the same resolver that gets those assets from its aspect and performs a search. This auto-filters out soft-deleted entities and is more extensible. Therefore the number at the top of the profile page is coming from the same place that fetches the list of assets in the tab. I'm fetching a count of 0 since we don't need any entity results, just the total count - therefore this is more efficient.

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 the product PR or Issue related to the DataHub UI/UX label Jul 18, 2023
Copy link
Contributor

@joshuaeilers joshuaeilers left a comment

Choose a reason for hiding this comment

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

Noice!

@anshbansal anshbansal merged commit 7bbeedd into datahub-project:master Jul 26, 2023
30 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants