kojiapi: return BuildID from status route

This is no longer returned when creating a compose, as it is obtained
asynchronously.

The TaskID is still returned, and is always set to 0. This is not right,
and should either be fixed or dropped. The caller should know the TaskID
(if they have one), so this is redundant and currently unused.
This commit is contained in:
Tom Gundersen 2020-11-09 14:13:44 +00:00 committed by Lars Karlitski
parent c777a18df0
commit 654daf96c1
3 changed files with 52 additions and 9 deletions

View file

@ -34,6 +34,7 @@ type ComposeResponse struct {
// ComposeStatus defines model for ComposeStatus.
type ComposeStatus struct {
ImageStatuses []ImageStatus `json:"image_statuses"`
KojiBuildId *int `json:"koji_build_id,omitempty"`
KojiTaskId int `json:"koji_task_id"`
Status string `json:"status"`
}

View file

@ -147,6 +147,9 @@ components:
koji_task_id:
type: integer
example: 203143
koji_build_id:
type: integer
example: 42
ComposeLogs:
required:
- image_logs