Project

General

Profile

Actions

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

Added by okurz 6 months ago. Updated 4 days ago.

Status:
Resolved
Priority:
Low
Category:
Feature requests
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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

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


Related issues 1 (0 open1 closed)

Copied from openQA Project - action #134933: Filter openQA todo-jobs on /tests belonging to one "review squad" size:MResolvedkraih2022-11-02

Actions
Actions

Also available in: Atom PDF