Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Return pending build requests from getSnapBuilds #1154

Conversation

cjwatson
Copy link
Contributor

@cjwatson cjwatson commented Oct 2, 2018

This allows the UI to show the user that there's a pending build
request, rather than appearing unresponsive in the interval between a
set of builds being requested and the request being processed.

The database gains a new build_request_annotation table, allowing us
to keep track of build reasons even when the process of creating new
builds goes through a build request.

I'd like to return failed build requests as well, but there are some
significant complications involved in making that work efficiently in
conjunction with pagination, mainly on the Launchpad side. I don't
think that needs to block the rest of this work.

Part of #556.

QA

Since there's no way to create build requests from BSI yet, QA can consist of making sure that dispatching new builds still works and that the UI updates properly.

This allows the UI to show the user that there's a pending build
request, rather than appearing unresponsive in the interval between a
set of builds being requested and the request being processed.

The database gains a new `build_request_annotation` table, allowing us
to keep track of build reasons even when the process of creating new
builds goes through a build request.

I'd like to return failed build requests as well, but there are some
significant complications involved in making that work efficiently in
conjunction with pagination, mainly on the Launchpad side.  I don't
think that needs to block the rest of this work.

Part of canonical-web-and-design#556.
Copy link
Contributor

@bartaz bartaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, requesting builds works as before.

@cjwatson cjwatson merged commit 30f5fd0 into canonical-web-and-design:master Oct 3, 2018
@cjwatson cjwatson deleted the build-request-backend-search branch October 3, 2018 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants