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

🐛 Render dependency versions as links #1540

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Nov 14, 2023

Resolves: #1340

On the Dependencies page, detail drawer, applications table: render the version text as a link to the maven central repository. The link uses the dependency's sha as the key in the maven central search.

Add component ExternalLink to standardize rendering links outside of the app opening in a new tab.

Note: The resolution to #1338 will require a change to the application table's query filter and response object. This will be done in PR #1536. See konveyor/tackle2-hub#557 for the response object change.

Screenshot:
image

@sjd78 sjd78 force-pushed the mvn_link_dependencies branch 2 times, most recently from 9d9245e to 17f1430 Compare November 14, 2023 18:10
Copy link

codecov bot commented Nov 14, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d142fdd) 40.46% compared to head (4672df5) 40.51%.
Report is 3 commits behind head on main.

❗ Current head 4672df5 differs from pull request most recent head 5f75eb1. Consider uploading reports for the commit 5f75eb1 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1540      +/-   ##
==========================================
+ Coverage   40.46%   40.51%   +0.05%     
==========================================
  Files         145      145              
  Lines        4636     4640       +4     
  Branches     1088     1089       +1     
==========================================
+ Hits         1876     1880       +4     
  Misses       2746     2746              
  Partials       14       14              
Flag Coverage Δ
client 40.51% <100.00%> (+0.05%) ⬆️
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

provider,
name,
version,
rule: sha, // TODO: rename to 'sha' with https://github.com/konveyor/tackle2-hub/issues/557
Copy link
Member

Choose a reason for hiding this comment

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

LGTM - wondering if we should hold off for the hub PR to merge?

Copy link
Member Author

Choose a reason for hiding this comment

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

Option 1 - hold off and update this PR at the same time

Option 2 - merge this PR and fix the payload with #1536

I'm leaning towards option 2, but it is not a strong preference.

Copy link
Member

Choose a reason for hiding this comment

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

Merging and circling back sounds ok to me.

Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

@sjd78
Copy link
Member Author

sjd78 commented Nov 15, 2023

Merging blocked, waiting on:

Both have been merged. No additional blockers for merging.

Resolves: konveyor#1340

On the Dependencies page, detail drawer, applications table: render
the version text as a link to the maven central repository.  The link
uses the dependency's sha as the key in the maven central search.

Add component `ExternalLink` to standardize rendering links outside
of the app opening in a new tab.

Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
Signed-off-by: Scott J Dickerson <sdickers@redhat.com>
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.

Missing link to Maven Central for Java dependencies
2 participants