action #155398
closed[beginner] Be able to filter out groupless jobs from API (and UI) queries using /api/v1/jobs and /api/v1/jobs/overview size:M
0%
Description
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 likenot_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.
- Maybe add
- 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)
Updated by okurz over 1 year ago
- Copied from action #134933: Filter openQA todo-jobs on /tests belonging to one "review squad" size:M added
Updated by okurz about 1 year ago
- Target version changed from Tools - Next to Ready
Updated by okurz about 1 year ago
- Target version changed from Ready to Tools - Next
Updated by okurz about 1 year ago
- Target version changed from Tools - Next to future
Updated by okurz 10 months ago
- Subject changed from Be able to filter out groupless jobs from API (and UI) queries to [beginner] Be able to filter out groupless jobs from API (and UI) queries using /api/v1/jobs and /api/v1/jobs/overview size:M
- Description updated (diff)
- Status changed from New to Workable
Updated by robert.richardson 10 months ago
- Status changed from Workable to In Progress
- Assignee set to robert.richardson
Updated by robert.richardson 10 months ago ยท Edited
Updated by okurz 10 months ago
https://github.com/os-autoinst/openQA/pull/5830 merged.
https://github.com/os-autoinst/openQA/pull/5825 open and maybe not even needed. https://github.com/os-autoinst/openQA/pull/5837 still pending update.
Updated by robert.richardson 10 months ago
- Status changed from In Progress to Resolved
The Webui Help Text message addition regarding the exclusion of groupless jobs as well as the API not_groupid parameter implementation PR have been merged.
I've closed the Webui implementation PR for the not_groupid Parameter as it's no longer in scope. Excluding groupless jobs in the webui is already possible via the command in the new help message.
Updated by okurz 10 months ago
- Due date deleted (
2024-08-23) - Status changed from Feedback to Resolved
I am very sorry. You commented in https://github.com/os-autoinst/openqa-mon/issues/76#issuecomment-2283935803 so everything perfect! You could have mentioned that ;)
Updated by livdywan 9 months ago
https://openqa.opensuse.org/tests?group_glob=* -> type investigate, nothing there -> it works :-D