iver-wharf / wharf-api

Wharf backend written in Go
MIT License
1 stars 0 forks source link

Changed build status query to accept arrays #150

Closed applejag closed 2 years ago

applejag commented 2 years ago

Summary

Motivation

This is to allow wharf-cmd-watchdog to query for non-finished builds, as any finished builds are in either status Completed or Failed, which the API didn't support querying for before this PR.

We use the multi collection format, meaning to specify multiple values you specify the query parameter multiple times, such as:

GET /api/build?status=Scheduling&status=Running

Because of this, the parameter only gains functionality and doesn't break backwards.