-
Notifications
You must be signed in to change notification settings - Fork 38
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
Use more standard paging for GET /runs
endpoint
#159
Comments
thanks @kaushik-work -- will check with the TES team to make sure we have consistency in pagination across TES & WES. |
@kellrott -- is this an example of where WES could learn from what the TES standard is doing? Or is this a problem that needs solving for TES as well? |
FWIW Search Has implemented somthing similar to this here {
"pagination": {
"next_page_url": "http://.....",
"previous_page_url": "http://...."
}
} |
TRS uses HTTP headers for pagination links, similar to GitHub's API |
any updates on that? As an alternative it also might be useful to add workflow-execution-service-schemas/openapi/components/schemas/RunListResponse.yaml Lines 3 to 11 in c3b1985
or like it's done in TRS via header: last_page:
description: A URL that can be used to reach the last page based on the current
page record limit.
schema:
type: string since currently there is no way to implement "orthodox" pagiantion with |
That's correct, but why WES is not? workflow-execution-service-schemas/openapi/paths/runs.yaml Lines 23 to 30 in c3b1985
Why it's using page_size and page_token query params instead of TRE format? |
@Mifrill I think the likely answer to that question is that WES was developed independently of TRS. TRS was limited in how they communicated pagination information because they chose to return a As for the For the same reason, I do not think it is possible to require the |
(note related discussion in ga4gh/TASC#29 )
FWIW, we do use pagination programmatically as a client using a library which is aware of headers That said, I don't think there's any reason why the information could not be duplicated into the JSON body under a |
The
GET /runs
endpoint (https://ga4gh.github.io/workflow-execution-service-schemas/docs/#operation/ListRuns) uses an unorthodox pagination method.It would be better to use more standard pagination, such as that suggested here
The text was updated successfully, but these errors were encountered: