Fix pipeline filtering and live updates

What does this MR do and why?

Fix pipeline-list refresh/filter behavior found while adding pipeline-name filtering, and harden GraphQL variable encoding for explicit GET requests.

  • Decode parameters once for GraphQL requests that explicitly opt into GET, preserving literal %, &, +, Unicode, and percent-encoded variable values. Standard eTag queries now use POST.
  • Clear removed URL filters and treat Any as a sentinel only for the trigger author.
  • Keep subscription callbacks from writing a partial pipeline result back to Apollo during a refetch.
  • Bound the All-tab badge query to 1000. The existing 1,000+ display remains unchanged.

These fixes apply independently of the pipeline-name feature flag. Regression coverage uses existing branch, status, and pagination behavior.

Validation: the initial revision passed CI, including Vue 2 and Vue 3 Jest jobs. This comment/test-only update passed ESLint and Prettier. Local Jest could not start because the installed Vue/Jest transformer dependencies are incompatible.

References

Screenshots or screen recordings

Not applicable. This fixes request encoding, URL state, and background refreshes without changing the page layout or badge format.

How to set up and validate locally

  1. Open Build > Pipelines in a project with pipelines on a branch or tag literally named Any.
  2. Filter by that ref and select Any as the trigger author. Check that the ref filter remains active.
  3. Add a status filter, then clear only the status. Check that its URL parameter disappears and the ref remains.
  4. Change filters or pages while pipeline status updates arrive. Check that the requested list loads without cache errors.
  5. In a project with more than 1000 matching pipelines, check that the All badge still displays 1,000+ and its query requests count(limit: 1000).

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist.

Edited by Aleksandr Kotlyar

Merge request reports

Loading
Loading