Skip to content

Support lowercase query string status

What does this MR do and why?

Supports valid lowercase statuses via query strings for job's filtered search.

I.E ?statuses=success is converted to ?statuses=SUCCESS

Screenshots or screen recordings

Screen_Shot_2022-08-23_at_4.35.09_PM

How to set up and validate locally

  1. Have a project with CI and jobs with different statuses for testing.
  2. Visit CI/CD > Jobs
  3. Apply a valid query string such as ?statuses=SUCCESS (ensure filters are applied and tokens in search reflect that)
  4. Apply a valid lower case query string such as ?statuses=failed
  5. Apply an invalid query string such as ?wrong=wrong (ensure no errors with the GraphQL query happen)
  6. Ensure query string is updated when filtering to a new status filter

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #371558 (closed)

Edited by Payton Burdette

Merge request reports

Loading