Project

General

Profile

action #151402

Updated by dheidler 8 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 feature more visible and convenient. 

 ## Acceptance criteria 
 * **AC1:** webUI users can find openQA jobs by comment search 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 


 terms 

 ## Suggestions 
 * Look into the existing search field on `/tests`, /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) /search

Back