Repository navigation
Feat: add parma link support for entity tabs - #1128
Conversation
darth-coder00
left a comment
There was a problem hiding this comment.
Few comments otherwise LGTM
| return path; | ||
| }; | ||
|
|
||
| export const getDatasetTabPath = (datasetFQN: string, tab = 'schema') => { |
There was a problem hiding this comment.
Why do we need separate method for this
We can simply add optional argument to existing method and create the path based on that
Same thing for other added methods as well
There was a problem hiding this comment.
updated. for topic, dashboard, and pipeline.
- dataset has different things like search column and version so we need a separate method for it.
There was a problem hiding this comment.
I don't get it, we have separate methods for search column, version etc. but for tab it can be handles in same method right?
There was a problem hiding this comment.
we only have a separate method for versioning, but the search column thing is handled in the original method that is getDatasetDetailsPath. that's why I have added a separate method to handle tab thing
| }, | ||
| ]; | ||
|
|
||
| export const getCurrentTab = (tab: string) => { |
There was a problem hiding this comment.
This should be inside component utils file
There was a problem hiding this comment.
move to utils file
| setIsLineageLoading(false); | ||
| }) | ||
| .catch(() => { | ||
| setIsLineageLoading(false); |
There was a problem hiding this comment.
setIsLineageLoading(false) is present in then as well as catch, so it should be moved out in finally block
|
@Sachin-chaurasiya please review as well |
@darth-coder00 sure will do it. |
| displayName: string; | ||
| } & Chart; | ||
|
|
||
| const dashboardDetailsTabs = [ |
There was a problem hiding this comment.
This should be in a constant file.
same for other entities.
There was a problem hiding this comment.
move to utils file
There was a problem hiding this comment.
Is this being used only in utils method and no where else?
There was a problem hiding this comment.
its only use in the respective page component of dataset, topic, dashboard, and pipeline
| }; | ||
|
|
||
| useEffect(() => { | ||
| if (dashboardDetailsTabs[activeTab - 1].path !== tab) { |
There was a problem hiding this comment.
@ShaileshParmar11 for what purpose we have added this condition here?
same question for other entities as well.
There was a problem hiding this comment.
if the active tab is the same as tab we don't want to update the setActiveTab
|
@Sachin-chaurasiya please review your comments and approve if everything is good |
|
@ShaileshParmar11 please also add a deep link for schema and sample table. |
Waiting for requested change
Describe your changes :
Closes #786
Changes:-
Added parma link support for :-
Type of change :
Frontend Preview (Screenshots) :
Dataset details page


Topic details page


Dashboard details page


Pipeline details page


Deep link for schema and sample-data


Checklist:
Reviewers
Frontend: @shahsank3t, @darth-coder00, @Sachin-chaurasiya