Commit c5d0404a authored by Guilherme Gallo's avatar Guilherme Gallo Committed by John Villalovos
Browse files

fix: Consider `scope` an ArrayAttribute in PipelineJobManager



List query params like 'scope' were not being handled correctly for
pipeline/jobs endpoint.
This change ensures multiple values are appended with '[]', resulting in
the correct URL structure.

Signed-off-by: default avatarGuilherme Gallo <guilherme.gallo@collabora.com>

---

Background:
If one queries for pipeline jobs with `scope=["failed", "success"]`

One gets:
GET /api/v4/projects/176/pipelines/1113028/jobs?scope=success&scope=failed

But it is supposed to get:
GET /api/v4/projects/176/pipelines/1113028/jobs?scope[]=success&scope[]=failed

The current version only considers the last element of the list argument.

Signed-off-by: default avatarGuilherme Gallo <guilherme.gallo@collabora.com>
parent c23e6bd5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment