HumanCellAtlas / dcp2

Shared artifacts concerning the Human Cell Atlas (HCA) Data Coordination Platform (DCP)
4 stars 2 forks source link

TDR's enumerateSnapshot response isn't sorted by default #61

Open hannes-ucsc opened 2 years ago

hannes-ucsc commented 2 years ago

To reproduce, visit https://data.terra.bio/swagger-ui.html#/snapshots/enumerateSnapshots, authorize, specify 200 for offset and limit and hit execute a few times. Observe the id of the first returned item.

Expected: Since the paging parameters are accepted, TDR should apply a deterministic ordering of the results and the first item on the page should remain the same no matter how may times one issues the request until a snapshot is added or removed.

Actual: The id of the first item on the requested page fluctuates back and forth between different values. This could be explained by constant additions and removals of snapshots but it seems highly unlikely to occur every few seconds. Note the UUIDs starting in 64 and b1 at the bottom of each screenshot.

image

image