Skip to content

UI : Added lineage for Tables and Pipelines. - #770

Merged
darth-coder00 merged 3 commits into
mainfrom
lineage
Oct 15, 2021
Merged

darth-coder00 merged 3 commits into
mainfrom
lineage

Conversation

@Sachin-chaurasiya

@Sachin-chaurasiya Sachin-chaurasiya commented Oct 14, 2021 •

Copy link
Copy Markdown
Contributor

Describe your changes :

I worked on the Dataset lineage part because needs to add lineage UI for tables and pipelines.

Type of change :

  • New feature

Frontend Preview (Screenshots) :

Checklist:

  • I have read the CONTRIBUTING document.
  • I have performed a self-review of my own.
  • I have tagged my reviewers below.
  • I have commented on my code, particularly in hard-to-understand areas.
  • My changes generate no new warnings.
  • I have added tests that prove my fix is effective or that my feature works.
  • All new and existing tests passed.

Reviewers

@shahsank3t, @darth-coder00

@Sachin-chaurasiya Sachin-chaurasiya self-assigned this Oct 14, 2021
@@ -0,0 +1,270 @@
/* eslint-disable */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Change this to disable specific error

type: string
): Promise<AxiosResponse> => {
return APIClient.get(
`/lineage/${type}/name/${fqn}?upstreamDepth=3&downstreamDepth=3`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Query-string should be coming from args, like we do for other APIs
We can set this query-string as the default value for ease of use

useEffect(() => {
fetchPipelineDetail(pipelineFQN);
setActiveTab(1);
getLineageByFQN(pipelineFQN, 'pipeline').then((res: AxiosResponse) =>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Type should be coming from an enum of entities.
If enum not present already, we can create one

}
});
setActiveTab(1);
getLineageByFQN(tableFQN, 'table').then((res: AxiosResponse) =>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same here. Type from enum

<DatasetLineage entityLineage={entityLineage} />
</div>
)}
{activeTab === 4 && (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is a good time to change these individual conditions to a switch case for activeTab.
If this change is required for all entity-details page, we can do this create a separate PR for it

@darth-coder00
darth-coder00 marked this pull request as ready for review October 15, 2021 07:13

@darth-coder00 darth-coder00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Few changes requested

@Sachin-chaurasiya

Copy link
Copy Markdown
Contributor Author

@darth-coder00 sure would make the changes.


export enum EntityType {
DATASET = 'dataset',
TABLE = 'table',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just for ease of understanding, let's use Table everywhere instead of Dataset.
Can do it in next enhancement.

@darth-coder00 darth-coder00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@Sachin-chaurasiya, Just one comment to be taken care of in next update
Rest, looking good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants