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

MINOR: open links in new tab in DataAssetsHeader #18172

Conversation

fuzmish
Copy link
Contributor

@fuzmish fuzmish commented Oct 8, 2024

Describe your changes:

(No issue opened explicitly)

  • What changes did you make?
    • Change the links in the DataAssetsHeader component to open in a new tab.
  • Why did you make them?
    • Some entities have properties with link information to external web resources (e.g., Dashboard.sourceUrl), which may be rendered as <a> links in the DataAssetsHeader component.
    • Most or all of these are resources in a separate location from the OpenMetadata UI, and it is preferred that the links be opened in a new tab. (Currently, they open in the same tab.)
  • How did you test your changes?
    • I have added the unit test for the ExtraInfoLink component.
    • I have tested the behavior in the local development UI server.

References:

Type of change:

  • Improvement

Checklist:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>
  • I have commented on my code, particularly in hard-to-understand areas.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed.
  • I have added tests around the new logic.
  • For connector/ingestion changes: I updated the documentation.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Hi there 👋 Thanks for your contribution!

The OpenMetadata team will review the PR shortly! Once it has been labeled as safe to test, the CI workflows
will start executing and we'll be able to make sure everything is working as expected.

Let us know if you need any help!

href={mlModelDetail.server}
label={t('label.server')}
value={mlModelDetail.server}
/>
)}
{mlModelDetail.dashboard && (
<ExtraInfoLink
newTab
Copy link
Collaborator

Choose a reason for hiding this comment

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

This won't be new tab, it's internal route

Copy link
Member

@Sachin-chaurasiya Sachin-chaurasiya left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @fuzmish, left one comment and rest looks good.

href={mlModelDetail.server}
label={t('label.server')}
value={mlModelDetail.server}
/>
)}
{mlModelDetail.dashboard && (
<ExtraInfoLink
newTab
Copy link
Member

Choose a reason for hiding this comment

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

@fuzmish, I believe this is an internal path, so we don’t need the newTab as true here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for your comment. a4bd542 I've fixed it.

Copy link
Contributor

github-actions bot commented Oct 8, 2024

Jest test Coverage

UI tests summary

Lines Statements Branches Functions
Coverage: 64%
64.18% (37781/58869) 40.95% (15077/36818) 42.95% (4551/10595)

Copy link

sonarqubecloud bot commented Oct 8, 2024

@chirag-madlani chirag-madlani merged commit dc24c00 into open-metadata:main Oct 9, 2024
16 checks passed
harshach pushed a commit that referenced this pull request Oct 19, 2024
* MINOR: open links in new tab in DataAssetsHeader

* fix: make mlModelDetail.dashboard internal link
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Add this label to run secure Github workflows on PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants