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(lineage): show fully qualified task name in lineage UI #6126

Conversation

gabe-lyons
Copy link
Contributor

Allows option to see full name of a task (data flow . task) in lineage viz.

CleanShot 2022-10-05 at 11 08 54@2x

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 Oct 5, 2022
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.

Looks good! I have a suggestion but not blocking from me approving

@@ -22,6 +22,24 @@ const getDataJobPlatformName = (data?: DataJob): string => {
return data?.dataFlow?.platform?.properties?.displayName || data?.dataFlow?.platform?.name || '';
};

const getExpandedNameForDataJob = (entity: DataJob): string => {
const name = entity?.properties?.name;
Copy link
Collaborator

Choose a reason for hiding this comment

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

what do you think about doing const name = new DataJobEntity().displayName(entity); in order to keep getting display names for dataJobs consistent?

@@ -178,6 +196,7 @@ export class DataJobEntity implements Entity<DataJob> {
return {
urn: entity?.urn,
name: entity?.properties?.name || '',
Copy link
Collaborator

Choose a reason for hiding this comment

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

and if we're gonna be consistent about using displayName we could also update this here to be name: this.displayName(entity),

@github-actions
Copy link

github-actions bot commented Oct 5, 2022

Unit Test Results (build & test)

591 tests   587 ✔️  13m 20s ⏱️
146 suites      4 💤
146 files        0

Results for commit 64359e4.

♻️ This comment has been updated with latest results.

@gabe-lyons gabe-lyons merged commit 864e64d into datahub-project:master Oct 5, 2022
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.

2 participants