Project

General

Profile

action #155398

Updated by jbaier_cz 15 days ago

## Motivation 
 In #134933 and related tickets openQA gained new features to filter by `group_glob` including `not_group_glob` to filter out certain job groups. However it is either not possible or not clear how to filter out groupless jobs, e.g. see https://github.com/os-autoinst/openqa-mon/issues/76 and https://github.com/os-autoinst/openqa-mon/issues/135 . Also mgriessmeier wants to not see the investigation jobs anymore on /tests 


 ## Acceptance criteria 
 * **AC1:** It is possible to filter out groupless jobs on request using the openQA API 
 * **AC2:** A specific suggestion is provided on https://github.com/os-autoinst/openqa-mon/issues/135 how to filter out groupless jobs using the openQA API 

 ## Suggestions 
 * Take a look how group_glob is used in https://github.com/search?q=repo%3Aos-autoinst%2FopenQA%20group_glob&type=code to understand that it's not too hard to extend that :) 
 * Extend the openQA API query functionality to filter out groupless jobs applicable for UI queries on /tests and /tests/overview as well 
     * Maybe add `not_groupid` which would behave like `not_group_glob` except that it takes a group ID and 0 is interpreted as "no group". 
     * Maybe tweak the existing `groupid` parameter to also interpret 0 as "no group" for the sake of consistency. 
 * Consider extending documentation in github.com/os-autoinst/openQA/tree/master/docs/ 
 * Provide a specific on https://github.com/os-autoinst/openqa-mon/issues/135 how to filter out groupless jobs using the openQA API 

 ## Out of scope 
 * No need to read any code of openqa-mon, just make sure that /api/v1/jobs can filter out groupless jobs. 
 * Take a quick look on https://github.com/os-autoinst/openqa-mon to see the video what openqa-mon is to understand it's really no magic ;) 
 * Check what query openqa-mon is using exactly (https://github.com/os-autoinst/gopenqa/blob/5f738612588915cb8964da7c6683981ce95c8559/gopenqa.go#L318)

Back