Project

General

Profile

action #151402

Updated by tinita 7 months ago

## Motivation 
 With openqa-investigate becoming more important the comments in jobs are more important and we should cover a search to find jobs by comment. Our API already offers to search for comments but maybe not yet "jobs by comment". Also an integration in UI can make such a feature more visible and convenient. 

 ## Acceptance criteria 
 * **AC1:** Expert webUI users can find openQA jobs by comment search terms terms# 
 * **AC2:** The search should allow searching for only one category of results at once (e.g. using tabs like Google or Github do) for performance reasons 


 ## Suggestions 
 * Look into the existing search field on `/tests`, maybe just extend that to be able to search for tests by content with a keyword "comment:<search_term>" or the equivalent in `/search` 
     * That would be very confusing; the search fields on `/tests` are for table filtering 
     * Introducing syntax like "comment:…" leads to complications (usage of quotes, escaping, …) - likely just using dedicated for fields is better 
 * Maybe add fancy search tabs for the different result types like you would see on Google for images and the like (make comments the first tab that is available?) 
 * See what we can reuse from the test results overview page (which at this point is likley the most advanced search option for jobs we have) 
 * Find out performance impact on the actual searching 
 * Find out the impact on displaying the results to the webUI user, e.g. will it always be way too many jobs 

 ## Further details 
 * We consider "expert webUI users" to be the ones that know the code and dare to adapt the URL manually, like with https://openqa.opensuse.org/tests?match=<search_term>

Back