You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Submitters submit multiple versions of their datasets. When one wants to retrieve collection versions and dataset versions through the swagger interface. I was not able to get the collection version ids, but it could be that it does not exist. The collection_id I which I assume is the UUID, I get a 403 error. I learned this by getting the dataset version ids. Retrieving the dataset versions for a particular collection, we see that the collection_id used in the swagger command to retrieve the versions is the correct one as it is the same for all the dataset versions.
To Reproduce
To reproduce the error I used to retrieve the collection versions -- I used the swagger interface - this was done with the try it now button.
the collection version id is 6f6d381a-7701-4781-935c-db10d30de293 for the publication by Sikkema, et. al 2023 Nat Med
This returns a 404 error stating the resource is not found
However, when one dives into the dataset version ids we see the following:
We do get a response that we can dive into. We sleuth out that the most efficient way to get all the dataset versions is to search for citations we can see all the collection_ids, collection_version_ids, dataset_ids, is to search for citation doing so and stepping through you see there are 7 citations. I have grabbed the relevant sections here from the returned json results.
Swagger Call
Citation Block
GET /v1/datasets/066943a2-fdac-4b29-b348-40cede398e4e/versions
what we see here is UUID for the collection_id is 6f6d381a-7701-4781-935c-db10d30de293 and the UUID for the dataset_id is 066943a2-fdac-4b29-b348-40cede398e4e as they are unchanged in every entry, except the last where the likely entry is a place holder at least for the dataset_version_id since it is of the form 01234567-89ab-cdef-0123-456789abcdef.
And now we have the following for collection_version_ids and dataset_version_ids
Number
collection_id (UUID)
collection_version_id
1
6f6d381a-7701-4781-935c-db10d30de293
4fa801d9-94f3-47ff-869f-41bb672bd125
2
6f6d381a-7701-4781-935c-db10d30de293
a759c536-7f21-4ffb-a879-8767bbe858c8
3
6f6d381a-7701-4781-935c-db10d30de293
e33a4fb-92bf-40c0-b78b-075b5e51783d
Number
dataset_id (UUID)
dataset_version_id
1
066943a2-fdac-4b29-b348-40cede398e4e
2aa90e63-9a6d-444d-8343-8fc2a9921797
2
066943a2-fdac-4b29-b348-40cede398e4e
c0147bc9-356c-462c-93b9-8d0921887304
3
066943a2-fdac-4b29-b348-40cede398e4e
1e33a4fb-92bf-40c0-b78b-075b5e51783d
Now this may be used to retrieve specific versions of the collections and the datasets
Expected behavior
I would have expected the swagger interface for returning the collection_version_ids to have worked and returned what I retrieved successfully and sleuthed out from the call to the getting the dataset version ids
Environment
Provide a description of your system and the software versions.
This was done within the following environment
Chrome browser
Version 131.0.6778.265 (Official Build) (arm64)
MacBook Pro
Chip: Apple M3 Pro
Sonoma 14.6
The text was updated successfully, but these errors were encountered:
Describe the bug
Submitters submit multiple versions of their datasets. When one wants to retrieve collection versions and dataset versions through the swagger interface. I was not able to get the collection version ids, but it could be that it does not exist. The collection_id I which I assume is the UUID, I get a 403 error. I learned this by getting the dataset version ids. Retrieving the dataset versions for a particular collection, we see that the collection_id used in the swagger command to retrieve the versions is the correct one as it is the same for all the dataset versions.
To Reproduce
To reproduce the error I used to retrieve the collection versions -- I used the swagger interface - this was done with the
try it now
button.the collection version id is
6f6d381a-7701-4781-935c-db10d30de293
for the publication bySikkema, et. al 2023 Nat Med
This returns a
404
error stating theresource is not found
However, when one dives into the
dataset version ids
we see the following:We do get a response that we can dive into. We sleuth out that the most efficient way to get all the dataset versions is to search for citations we can see all the collection_ids, collection_version_ids, dataset_ids, is to search for
citation
doing so and stepping through you see there are 7citations
. I have grabbed the relevant sections here from the returnedjson
results."dataset_id": "066943a2-fdac-4b29-b348-40cede398e4e"
"dataset_version_id": "b351804c-293e-4aeb-9c4c-043db67f4540"
"collection_version_id": "4fa801d9-94f3-47ff-869f-41bb672bd125"
"dataset_id": "066943a2-fdac-4b29-b348-40cede398e4e"
"dataset_version_id": "2aa90e63-9a6d-444d-8343-8fc2a9921797"
"collection_version_id": "a759c536-7f21-4ffb-a879-8767bbe858c8"
"dataset_id": "066943a2-fdac-4b29-b348-40cede398e4e"
"dataset_version_id": "c0147bc9-356c-462c-93b9-8d0921887304"
"collection_version_id": "1e33a4fb-92bf-40c0-b78b-075b5e51783d"
"dataset_id": "066943a2-fdac-4b29-b348-40cede398e4e"
"dataset_version_id": "7a3f08f9-5d07-4ddd-a8fe-5967dd34f35f"
"collection_version_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
"dataset_id": "01234567-89ab-cdef-0123-456789abcdef"
"dataset_version_id": "01234567-89ab-cdef-0123-456789abcdef
what we see here is
UUID
for thecollection_id
is6f6d381a-7701-4781-935c-db10d30de293
and the UUID for thedataset_id
is066943a2-fdac-4b29-b348-40cede398e4e
as they are unchanged in every entry, except the last where the likely entry is a place holder at least for thedataset_version_id
since it is of the form01234567-89ab-cdef-0123-456789abcdef
.And now we have the following for
collection_version_ids
anddataset_version_ids
Now this may be used to retrieve specific versions of the collections and the datasets
Expected behavior
I would have expected the swagger interface for returning the collection_version_ids to have worked and returned what I retrieved successfully and sleuthed out from the call to the getting the dataset version ids
Environment
Provide a description of your system and the software versions.
This was done within the following environment
Chrome
browserVersion 131.0.6778.265 (Official Build) (arm64)
MacBook Pro
Chip: Apple M3 Pro
Sonoma 14.6
The text was updated successfully, but these errors were encountered: