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

feat: Add parent container hierarchy label to the container #11705

Merged

Conversation

kanavnarula
Copy link
Contributor

@kanavnarula kanavnarula commented Oct 24, 2024

This is to add parent hierarchy on top of the container name.

Before Advance Filter Container View:
image

After Advance Filter Container View:
image

image image

Basic Filter Container View:
image

Create View Page:
image

image image image

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 Oct 24, 2024
@kanavnarula
Copy link
Contributor Author

@jjoyce0510 @chriscollins3456 @shirshanka - Please review the PR when you get chance.

@shirshanka shirshanka added the datahub-community-champion PRs authored by DataHub Community Champions label Nov 19, 2024
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label Nov 20, 2024
@kanavnarula kanavnarula changed the title Add parent container hierarchy label to the container feat: Add parent container hierarchy label to the container Nov 22, 2024
icon = newIcon;
label = newLabel;
// Scenario where the filter entity exists and filterField is container
if (filterField === CONTAINER_FILTER_NAME) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please elevate this condition to the same level as

else if (filterField === PLATFORM_FILTER_NAME)

to keep things consistent (instead of nesting it down here)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated the condition

) : (
entityRegistry.getIcon(EntityType.DataPlatform, size || 12, IconStyleType.ACCENT, ANTD_GRAY[9])
);
label = entityRegistry.getDisplayName(filterEntity.type, filterEntity);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice this change looks great!

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

Few minor stylistic comments that should be very quick to address. Otherwise things LGTM!

Thanks!

@kanavnarula
Copy link
Contributor Author

Few minor stylistic comments that should be very quick to address. Otherwise things LGTM!

Thanks!

Thanks @jjoyce0510 for reviewing the PR. Feedback has been addressed. Please review once again when you get time.

@kanavnarula
Copy link
Contributor Author

@jjoyce0510 - I will fix the linting issues shortly and let you know.

@kanavnarula
Copy link
Contributor Author

@jjoyce0510 - Feedback has been addressed. Please review when you get time today.

@jjoyce0510 jjoyce0510 merged commit 8a1c180 into datahub-project:master Dec 9, 2024
39 of 40 checks passed
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 datahub-community-champion PRs authored by DataHub Community Champions 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.

4 participants