-
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
docs for URI and CODE #4204
base: master
Are you sure you want to change the base?
docs for URI and CODE #4204
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #4204 +/- ##
=======================================
Coverage 37.68% 37.68%
=======================================
Files 768 768
Lines 35321 35321
Branches 5214 5214
=======================================
Hits 13312 13312
Misses 20775 20775
Partials 1234 1234
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@fiskus @sir-sigurd Any thoughts? I'm sure @nl0 will want to weigh in, but I'd appreciate your feedback before then. |
Would it help to make the catalog part of the query string instead of the
fragment?
quilt+s3://bkt?catalog=dns.name#package=pre/suf
…On Mon, Oct 28, 2024 at 10:23 Maksim Chervonnyi ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In docs/Catalog/URI.md
<#4204 (comment)>:
> +- `quilt+`: The scheme of the URI. This is always `quilt+`.
+- `s3://`: The protocol of the URI. This is currently `s3://`.
+- `<bucket>`: The name of the bucket containing the package or object, e.g.
+ `quilt-example`.
+- `#package=<package>`: A fragment for the name of the package containing the
+ object, e.g. `akarve/cord19`.
+
+In addition, it may contain the following optional components:
+
+- `<package>@<top_hash>`: The hash for this specific package, e.g.
+ `e21682f00929661879633a5128aaa27cc7bc1e2973d49d4c868a90f9fad9f34b`.
+- `<package>:tag`: The tag for this specific package. Currently, only the
+ `latest` tag is supported. You may not specify both a top_hash and a tag.
+- `&path=<path>`: Fragment for the path to the object within the package, if
+ any, e.g.ß `CORD19.ipynb`.
+- `&catalog=<catalog>`: Fragment for the DNS name of catalog where this package
Although, I am not against adding the catalog parameter, I'm describing
my doubts.
It looks like, package, top_hash and path describe WHERE data is located.
And the data is expected to be there no matter what, until S3 is online,
and the user pays for it. On the other hand, catalog describes HOW to get
that data. And lifespan of the catalog is different from S3.
And it opens a question, should this type of information belong to URI.
- Basic HTTP auth, for example, is not a part of URI, it transmitted
with HTTP Header
- But user/password for FTP is part of URI ***@***.***)
- And, user/password for SSH too ***@***.***)
So, considering this, I think, it's legit. But, maybe we can create
separate scheme : for example, ***@***.***
→
***@***.***
It seems like overengineering, though. And barely readable
—
Reply to this email directly, view it on GitHub
<#4204 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAE2T6ZBOSOATCZTPA3WI3Z5ZQIFAVCNFSM6AAAAABQUHSKA6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGOJZG4ZTEOJRGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I don't have a rational explanation, but that looks more elegant for me. I don't know (or don't remember), what was the rationale behind using |
AFAIR that was done because unlike fragment you need to encode querystring |
docs/Catalog/URI.md
Outdated
- `quilt+`: The scheme of the URI. This is always `quilt+`. | ||
- `s3://`: The protocol of the URI. This is currently `s3://`. |
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.
well, AFAIK URI scheme is quilt+s3
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.
At the moment, but we already have local and sharepoint repositories...
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.
But yeah, I should use the term scheme
correctly. Does this work?
`quilt+<protocol>`: The scheme of the URI. This always begins with `quilt+`.
Currently the only supported protocol is `s3`.
Co-authored-by: Alexei Mochalov <nl_0@quiltdata.io> Co-authored-by: Sergey Fedoseev <fedoseev.sergey@quiltdata.io>
Document the "CODE" tab for Bucket and Packages views.
Propose new '&catalog` fragment.