-
Notifications
You must be signed in to change notification settings - Fork 14
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
The description for GET /curation/collections needs more detail #2083
Comments
what do you mean by subset? Are you intending to contrast that with what is returned for a single collection with GET
I should've kept reading before commenting! Ha. Is this a reference to the fact that the metadata for the associated datasets is different? "incomplete" for the former and "complete" for the latter? |
Yes. There is a preview of the dataset metadata which is part of the collection metadata. |
Quick assessment:
|
@brianraymor I've updated the description (and the Swagger API doc). |
@brianraymor can you confirm that you still wish for only a curator's public Collections to be returned in the case where they provide authentication but do not specify a
cc @Bento007 |
Requested that @jahilton confirm agreement. |
I proposed something different above. Emphasis added: Fetch all Collections metadata. Authorization required for private collections.
Public collections do not require authorization because they're accessible to everyone. |
Agree w/ ☝️ |
@brianraymor I accidentally caused the focus to be on "all public collections" vs "just the curator's public collections" because I worded my question poorly. My mistake! I meant for the focus to be on the following: when a curator does not specify a
OR
? I know that you have said the first option, i.e. that we should, be default, return all public collections when the I just want explicit confirmation of what you want for this requirement 🙏 👍 |
Also, separate clarification @brianraymor - above you've listed the following two attributes to be returned in the full dataset metadata response:
Do you actually want/need these columns to be |
Also, the
|
One more issue: for the Collection-level attribute Otherwise, a curator could see Alternatively, instead of |
RE questions from comment
I wonder why Leslie(?) lowercased them since there was no requirement to do so. These fields are referenced in the schema as I'm also struck out X_normalization in the table above because we plan to deprecate this field in Q3. |
RE questions from comment
I prefer your |
I don't have a good handle on our use case for looking at access_type (and I anticipate having all access to everything, so especially not helpful). But from the options in that comment, I would think if you're trying to communicate that I didn't provide credentials then explicitly state |
I agree that @danieljhegeman - Is this the proposed experience?
I seems to me that |
I think the write/right 😉 way to do this would be to have an |
In that case, yes. It's not a panacea but it seems better than seeing "READ" under the exact same circumstances. What do you think, especially combined with the suggestion I made directly above for adding
Yes |
Did you mean |
Thank you, yes, my mistake. |
Would the only options be either "READ" or "WRITE"? If so, would it be easier to:
|
sure, that seems functionally equivalent and, as you say, easier for curators. @Bento007 thoughts? One minor alteration: it would return an error if the |
Even better. |
As long as Jason is ok with it. Can you get his approval? Specifically, the deprecation of |
Better yet @danieljhegeman , you can get his approval. |
Haha @jahilton I lacked the ability to tag you in issues until the last couple of days, when Ambrose added you to the repo! 😅 😅 |
Added the |
https://app.swaggerhub.com/apis/danieljhegeman/Curation/1#/default/get_curation_collections
Fetch all Collections metadata. Authorization required for private collections.
It neither fetches all collections nor all collections metadata. Perhaps something more like:
visibility
parameter is unspecified or set to"PUBLIC"
, a list of all public collections is returned. The Authorization header is not required. If a collection in the list has been deleted, then it is annotated withtombstone
set toTrue
.visibility
parameter is set to"PRIVATE"
, a list of all private collections that the user is authorized to access is returned. The Authorization header is required. If a collection in the list is a private revision of a public collection, then it is annotated withrevision_of
.GET /curation/collections/{collection_uuid}
must be used.(danieljhegeman note: despite lengthy discussion below, these rules still stand as stated)
The text was updated successfully, but these errors were encountered: