-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Handle cases where build list in a buildBlock is incomplete #327
Comments
Not forgotten. Note to self, I will need some kind of flag to indicate second request has been made but I would rather not further pollute global state. |
Is this issue still relevant, or can we close it? |
Depends if you think it's a bad experience (I do) to ask for buildlist with "limit=10" and if you get two blocks (two merge requests) in your result, with one block potentially containing incomplete list of builds. Is there a (planned) route to get a mergerequest list? This would make this less messy to handle, but can still be done on the front. |
do you need just the list of mergerequests or do you need the builds and artifacts, but grouped by mergerequests? |
Given the way we use it now, the easiest to implement on front is probably build list grouped by merge request (plus the idea of a "build list" is central, after all). If possible, an extra field in server response with 'n_builds' for the MR would be helpful, so the front can tell user if the MR block has more builds than requested.
|
Assumes are sorted by build.created_at. If
limit=1
is passed as a query param and the first build has a merge request that is associated with 20 builds, API will still only return that first build.Best solution is probably just to make a second API call with merge request ID as a parameter for the last (oldest) unique MR ID in the initial build list response.
The text was updated successfully, but these errors were encountered: