Add exact pipeline name filtering to the UI
What does this MR do and why?
Add Pipeline name to the project pipelines page to find runs by their exact, case-sensitive workflow:name. The filter combines with existing filters and survives shared URLs. Suggestions and partial matching are outside this iteration.
This is the frontend extracted from !261346 (merged). It depends on that backend MR and !262412 (merged). Merge both prerequisites before this MR, and deploy the backend argument everywhere before enabling the project flag.
The branch includes the backend prerequisite so CI can validate the UI against its feature flag, GraphQL schema, and generated API reference. The flag remains disabled by default. Backend review and deployment remain separate and must precede the frontend rollout.
Implementation and review changes
The default-off project flag controls the token, URL restoration, and GraphQL documents. Disabled or missing browser flags omit the new argument and variable from list, count, and background requests. The controller exposes the flag for the current project; its HTML coverage uses the existing request-spec shared example and a separate different-project case.
The token comment explains the gitlab-ui space-splitting workaround. Input validation rejects arrays, objects, and blank names while preserving exact text, including valid U+FEFF names. The filtered empty-state message deliberately covers existing filters too when the flag is enabled; a status-only DOM case pins that behavior.
Following the database review, the All badge does not issue a count when a name is combined with another filter. A pending count stays hidden, visibility refresh respects the same rule, and removing the extra filter resumes counting. Name-only counts remain bounded at 1000. SQL optimizations and database review are tracked in !262458 (merged).
The user guide documents exact matching, latest-per-branch/tag behavior, and the hidden combined-filter count. It also includes the wording change from the documentation review.
The branch was rebased onto master and squashed into a single commit. The flag definition landed on master through !262458 (merged) and dropped out of this diff. The branch still carries the GraphQL name argument, its request specs, and the generated API reference from !261346 (merged) (kept in sync with its head) so CI can validate the UI before that merge request lands. The rebase also keeps master's URL pagination restore and fixes it to preserve the name filter on browser-history navigation, with a spec pinning the behavior. The frontend feature itself introduces no schema or SQL changes beyond the carried prerequisite.
Validation: Pipeline 2954523981 passed ESLint, GraphQL verification, documentation links, frontend fixtures, all 14 Jest jobs (including integration on Vue 2 and Vue 3), Storybook, and RSpec. Each Jest integration job passed 515 tests. The refreshed CE RSpec run reported 4,387 unit examples (26 pending) and 243 integration examples (2 pending), with no failures, including the pipeline GraphQL request specs.
The earlier predictive-selection and Lookahead#name fixes are folded into the squashed commit; see Pipeline 2954728490 for the run that validated them. After the rebase, the pipelines app, filtered search, and utils Jest suites (164 tests) pass locally; a new pipeline is validating the squashed commit.
Local RSpec is blocked by the stopped PostgreSQL service; the results above are from CI. The optional pajamas_adoption job timed out fetching master before its diff scan.
References
- Backend prerequisite: !261346 (merged).
- Shared frontend prerequisite: !262412 (merged).
- #376097 (closed), following its plain-text iteration.
- Rollout: #633306.
Screenshots or screen recordings
Existing screenshots of the extracted UI from the original MR. They show the unchanged name-only flow.
| Before: flag disabled | After: exact name matches |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Use this branch (it carries the GraphQL argument from !261346 (merged) until that merge request lands); the feature flag definition is already on
master. Use a project with pipelines namedNightly buildandNightly build extendedthroughworkflow:name. - Enable the project flag in the Rails console:
Feature.enable(:pipeline_name_filter, Project.find_by_full_path('your-group/your-project')). - Open Build > Pipelines, select Pipeline name, and enter
Nightly build. Check exact matches, different case, partial names, and pagination. - Add a status, author, ref, or source filter. Check the matching rows and the hidden All badge. Remove that extra filter and check that the name-only badge returns.
- Reopen a shared URL and clear the name. Try multi-word names, quotes, Unicode,
%,&,+, and literal%2F. The full exact value should survive GET and POST requests. - Switch away from the browser tab and return while combined filters are active. Check that the list refreshes without requesting the skipped count.
- Disable the project flag and reload. Check that the name token disappears and existing filters work. No name argument should appear in list, count, or background requests.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist.

