Repository navigation
UI : Added lineage for Tables and Pipelines. - #770
Conversation
| @@ -0,0 +1,270 @@ | |||
| /* eslint-disable */ | |||
There was a problem hiding this comment.
Change this to disable specific error
| type: string | ||
| ): Promise<AxiosResponse> => { | ||
| return APIClient.get( | ||
| `/lineage/${type}/name/${fqn}?upstreamDepth=3&downstreamDepth=3` |
There was a problem hiding this comment.
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) => |
There was a problem hiding this comment.
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) => |
There was a problem hiding this comment.
Same here. Type from enum
| <DatasetLineage entityLineage={entityLineage} /> | ||
| </div> | ||
| )} | ||
| {activeTab === 4 && ( |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Few changes requested
|
@darth-coder00 sure would make the changes. |
|
|
||
| export enum EntityType { | ||
| DATASET = 'dataset', | ||
| TABLE = 'table', |
There was a problem hiding this comment.
Just for ease of understanding, let's use Table everywhere instead of Dataset.
Can do it in next enhancement.
darth-coder00
left a comment
There was a problem hiding this comment.
@Sachin-chaurasiya, Just one comment to be taken care of in next update
Rest, looking good to me!
Describe your changes :
I worked on the Dataset lineage part because needs to add lineage UI for tables and pipelines.
Type of change :
Frontend Preview (Screenshots) :
Checklist:
Reviewers
@shahsank3t, @darth-coder00