Skip to content

Feat: add parma link support for entity tabs - #1128

Merged
darth-coder00 merged 9 commits into
open-metadata:mainfrom
ShaileshParmar11:issue-786
Nov 11, 2021
Merged

darth-coder00 merged 9 commits into
open-metadata:mainfrom
ShaileshParmar11:issue-786

Conversation

@ShaileshParmar11

@ShaileshParmar11 ShaileshParmar11 commented Nov 10, 2021 •

Copy link
Copy Markdown
Contributor

Describe your changes :

Closes #786
Changes:-
Added parma link support for :-

  • Dataset details page
  • Deep link for Schema table
  • Topic details page
  • Dashboard details page
  • Pipeline details page

Type of change :

  • New feature

Frontend Preview (Screenshots) :

  • Dataset details page
    image
    image

  • Topic details page
    image
    image

  • Dashboard details page
    image
    image

  • Pipeline details page
    image
    image

  • Deep link for schema and sample-data
    image
    image

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

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

@ShaileshParmar11
ShaileshParmar11 marked this pull request as ready for review November 11, 2021 07:41

@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 comments otherwise LGTM

return path;
};

export const getDatasetTabPath = (datasetFQN: string, tab = 'schema') => {

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.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated. for topic, dashboard, and pipeline.

  • dataset has different things like search column and version so we need a separate method for it.

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.

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?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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

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.

Okay

},
];

export const getCurrentTab = (tab: string) => {

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.

This should be inside component utils file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

move to utils file

setIsLineageLoading(false);
})
.catch(() => {
setIsLineageLoading(false);

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.

setIsLineageLoading(false) is present in then as well as catch, so it should be moved out in finally block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

updated

@darth-coder00

Copy link
Copy Markdown
Contributor

@Sachin-chaurasiya please review as well

@Sachin-chaurasiya

Copy link
Copy Markdown
Contributor

@Sachin-chaurasiya please review as well

@darth-coder00 sure will do it.

displayName: string;
} & Chart;

const dashboardDetailsTabs = [

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.

This should be in a constant file.
same for other entities.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

move to utils file

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.

Is this being used only in utils method and no where else?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

its only use in the respective page component of dataset, topic, dashboard, and pipeline

};

useEffect(() => {
if (dashboardDetailsTabs[activeTab - 1].path !== tab) {

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.

@ShaileshParmar11 for what purpose we have added this condition here?
same question for other entities as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

if the active tab is the same as tab we don't want to update the setActiveTab

darth-coder00
darth-coder00 previously approved these changes Nov 11, 2021

@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.

LGTM

@darth-coder00

Copy link
Copy Markdown
Contributor

@Sachin-chaurasiya please review your comments and approve if everything is good

@Sachin-chaurasiya

Copy link
Copy Markdown
Contributor

@ShaileshParmar11 please also add a deep link for schema and sample table.

@darth-coder00
darth-coder00 dismissed stale reviews from Sachin-chaurasiya and themself November 11, 2021 13:45

Waiting for requested change

@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.

LGTM!

@darth-coder00
darth-coder00 merged commit 365b62d into open-metadata:main Nov 11, 2021
@ShaileshParmar11
ShaileshParmar11 deleted the issue-786 branch November 11, 2021 16:47
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.

add permalink to entity->schema/details, sample data, lineage

3 participants