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

Add buttons for copying canonical package URIs #1990

Merged
merged 1 commit into from
Dec 17, 2020
Merged

Conversation

nl0
Copy link
Member

@nl0 nl0 commented Dec 17, 2020

copy current revision's uri:
Screenshot 2020-12-17 at 12 54 01

copy any revision's uri:
Screenshot 2020-12-17 at 12 54 23

TODO

@nl0 nl0 requested review from fiskus and akarve December 17, 2020 07:59
@nl0
Copy link
Member Author

nl0 commented Dec 17, 2020

@akarve pls wordsmith

@codecov-io
Copy link

codecov-io commented Dec 17, 2020

Codecov Report

Merging #1990 (fc0a9dc) into master (c754838) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1990      +/-   ##
==========================================
- Coverage   46.80%   46.77%   -0.03%     
==========================================
  Files         332      332              
  Lines       16418    16428      +10     
  Branches     2209     2187      -22     
==========================================
  Hits         7684     7684              
- Misses       7837     7846       +9     
- Partials      897      898       +1     
Flag Coverage Δ
api-python 89.35% <ø> (ø)
catalog 7.41% <0.00%> (-0.01%) ⬇️
lambda 92.40% <ø> (ø)

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

Impacted Files Coverage Δ
catalog/app/containers/Bucket/PackageTree.js 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c754838...fc0a9dc. Read the comment docs.

Copy link
Member

@fiskus fiskus left a comment

Choose a reason for hiding this comment

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

Code is fine. But I expected different functionality: copying immutable URI

@@ -84,6 +88,15 @@ function RevisionInfo({ revisionData, revision, bucket, name, path }) {
_: R.identity,
})

const getHttpsUri = (r) =>
`${window.origin}${urls.bucketPackageTree(bucket, name, r.hash, path)}`
Copy link
Member

Choose a reason for hiding this comment

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

Hm... I expected quilt+s3:// url here

Copy link
Member

Choose a reason for hiding this comment

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

Now it's the same URL as if you copy it by right click and select "Copy link location"

Screenshot from 2020-12-17 11-34-40

Copy link
Member

@fiskus fiskus left a comment

Choose a reason for hiding this comment

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

Found the discussion in Slack

@nl0 nl0 merged commit 2614f86 into master Dec 17, 2020
@nl0 nl0 deleted the copy-package-uri-btn branch December 17, 2020 14:55
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.

3 participants