-
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
Hash-based package routes #1938
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1938 +/- ##
=======================================
Coverage 90.36% 90.36%
=======================================
Files 64 64
Lines 7764 7764
=======================================
Hits 7016 7016
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.
|
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.
I will do manual tests tomorrow
Old URL works /b/fiskus-sandbox-dev/packages/fiskus/2011-11-16/tree/1605546363/ Also, I recall that we talked about short hashes (a la GitHub d5a76a3), but I don't remember what we decide |
not possible until we implement server-side rendering, tho we can redirect to the more "canonical" hash-based route on the front-end. @akarve do we want to redirect to the new routes?
this will require backend support, so i think we should add this feature later (along with tags support) |
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.
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.
Mostly works in testing. See a few notes in Slack.
docs/CHANGELOG.md
Outdated
@@ -13,6 +13,7 @@ | |||
## CLI | |||
|
|||
## Catalog, Lambdas | |||
* [Changed] `top_hash`-based package routes (backwards compatible) ([#1938](https://github.com/quiltdata/quilt/pull/1938)) |
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.
This is reasonable behavior but I'm wondering if forwarding to a dedicated /h/
or whatever hash route is more correct in terms of traceability? Please make a note that /timestamp URLs are not forwarded in any way, but that the user remains at /timestamp.
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.
To be clear I am totally cool with current behavior (honor both types of routes, no redirect). I am just asking if anything becomes cleaner or safer with two routes.
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.
See potential bugs in Slack?
Description
Use top_hash in package routes, completely remove timestamps from the UI (timestamp revisions are still resolved, so it's backwards compatible).
TODO