-
Notifications
You must be signed in to change notification settings - Fork 90
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
Immutable URIs WIP #1935
Immutable URIs WIP #1935
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1935 +/- ##
=======================================
Coverage 90.40% 90.40%
=======================================
Files 64 64
Lines 7792 7792
=======================================
Hits 7044 7044
Misses 748 748
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
5868ba8
to
254e933
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First shallow reading is done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It cost me some brain cycles to realize where can I copy the package's URI. Even I saw it this morning. But I understand this was "quick implementation vs perfect UX" balanced. Maybe we can steal GitHub UI and show copy button near hash.
Also, I was expecting, that click on the "resolve" button will redirect to the resolved URL.
Possible problem: as a user I don't know how to close/hide "Resolved from URI" notification. As a developer, I can see, that some users can bookmark URL with query string or send it to a colleague and will be stuck with this notification.
We can redirect to the canonical URL automatically, or (and) add a close button to notification
Issues beyond the task's scope (or not, I don't know): errors are not helpful.
https:///b/fiskus-sandbox-dev/packages/fiskus/2020-11-1?resolvedFrom=quilt%2Bs3%3A%2F%2Ffiskus-sandbox-dev%23package%3Dfiskus%2F2020-11-1
Error: wrong revision, actually: wrong package
http://localhost:3000/b/fiskus-sandbox-dev/packages/fiskus/?resolvedFrom=quilt%2Bs3%3A%2F%2Ffiskus-sandbox-dev%23package%3Dfiskus%2F
Error: nothing here, do you need to log in, and exceptions in console. Actually, no such package, I'm logged in
gh ux doesnt fit here exactly, bc a button near a hash is expected to be related to that hash, not to the "canonical URI"
i think i'll implement this and ditch the package box
i'll add a close btn
well, we may want to add some check to see if the package actually exists (there's at least one revision of that package), but it seems out of scope, you're right
it's a 404, bc the url doesnt match any route, which seems more or less correct |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider null exception
Description
Add
/uri/*
route to resolve Quilt package URIs as per specTODO