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

refactor(ui): Refactor the Glossary Related Entities, Tag Profiles to use search filters instead of query API. #6352

Conversation

jjoyce0510
Copy link
Collaborator

Summary

In this PR we remove dependency on the search query string for looking up entities related to a given glossary term or tag. This makes the result set much more reliable, as previously special characters in the URN of a glossary or tag URN could cause failures to match at the indexing layer (do to how we tokenize the urn). This fixes those issues.

Status

Ready to Review. Working on some final cypress tests to cover this.

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 Nov 2, 2022
@github-actions
Copy link

github-actions bot commented Nov 3, 2022

Unit Test Results (build & test)

613 tests  +11   609 ✔️ +11   11m 53s ⏱️ -9s
151 suites +  2       4 💤 ±  0 
151 files   +  2       0 ±  0 

Results for commit 7e760ea. ± Comparison against base commit 0ca3383.

♻️ This comment has been updated with latest results.

@jjoyce0510 jjoyce0510 force-pushed the jj--fix-related-entities-tab-filters branch from 4d8fa0a to 2e94fe8 Compare November 3, 2022 01:43
Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

Just a couple of comments! otherwise looks good - thanks for dealing with this

// responds.
export const removeFixedFiltersFromFacets = (fixedFilters: FilterSet, facets: FacetMetadata[]) => {
const fixedFields = fixedFilters.filters.map((filter) => filter.field);
return facets.filter((facet) => !(fixedFields.indexOf(facet.field) > -1));
Copy link
Collaborator

Choose a reason for hiding this comment

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

definitely a nit and not expecting you to change this - but could use .includes here as I think that's more readable (facets.filter(facet => !fixedFields.includes(facet.field))

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thank you!

smoke-test/tests/cypress/cypress.json Outdated Show resolved Hide resolved
Copy link
Collaborator

@chriscollins3456 chriscollins3456 left a comment

Choose a reason for hiding this comment

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

wonderful

@jjoyce0510 jjoyce0510 merged commit 0b9a30b into datahub-project:master Nov 3, 2022
anshbansal pushed a commit to acryldata/datahub that referenced this pull request Nov 4, 2022
anthonyhungnguyen pushed a commit to anthonyhungnguyen/zlp-datahub that referenced this pull request Nov 8, 2022
cccs-tom pushed a commit to CybercentreCanada/datahub that referenced this pull request Nov 18, 2022
cccs-tom pushed a commit to CybercentreCanada/datahub that referenced this pull request Nov 18, 2022
gabe-lyons pushed a commit to gabe-lyons/datahub that referenced this pull request Jun 13, 2023
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.

None yet

3 participants