open-build-service
open-build-service copied to clipboard
Make search box aware of SR numbers
Is your feature request related to a problem? Please describe. I have only the BsRequest number and want to readily call it up on the web frontend without having to type the full URL / and by using the top right search box. Bugzilla.opensuse.org for example supports this mode already, for example.
Describe the solution you'd like
Make the form URL handler — normally /search?name=1&package=1&project=1&search_text=XXX
— treat a search_text of /^[0-9]+$
/ specially; if and only if an BsRequest by this number exists, issue a HTTP redirect to /request/show/XXX, else perform the normal search for a package name.
Describe alternatives you've considered The search box could gain an onclick javascript handler, though that impacts people that have JS filters, e.g. uMatrix.
This is already a thing, you just need to prefix the number with a #
symbol, is that enough for you?