Add support to search issuables by ID
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
This MR adds support for searching issuables by their ID
.
Previously, full_search
only matched against text fields such as title and description.
Now, when :id is included in the search columns:
- If the query is purely numeric, it searches by exact ID.
- Otherwise, it performs a partial match against the stringified
ID
(id::text ILIKE).
This improves usability by allowing users to quickly find an issuable directly by ID or by a partial ID match.
References
Screenshots or screen recordings
Before | After |
---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #563883
Edited by 🤖 GitLab Bot 🤖