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 9 months ago. Updated 2 months 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 #1

Updated by okurz 9 months ago

  • Copied from action #134933: Filter openQA todo-jobs on /tests belonging to one "review squad" size:M added
Actions #2

Updated by mkittler 9 months ago

  • Description updated (diff)
Actions #3

Updated by okurz 8 months ago

  • Target version changed from Tools - Next to Ready
Actions #4

Updated by okurz 8 months ago

  • Priority changed from Normal to Low
Actions #5

Updated by okurz 8 months ago

  • Target version changed from Ready to Tools - Next
Actions #6

Updated by okurz 6 months ago

  • Target version changed from Tools - Next to future
Actions #7

Updated by okurz 4 months ago

  • Target version changed from future to Ready

Because mgriessmeier wants to not see the investigation jobs anymore on /tests

Actions #8

Updated by okurz 3 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
Actions #9

Updated by jbaier_cz 3 months ago

  • Description updated (diff)
Actions #10

Updated by robert.richardson 3 months ago

  • Status changed from Workable to In Progress
  • Assignee set to robert.richardson
Actions #14

Updated by robert.richardson 3 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.

Actions #15

Updated by okurz 3 months ago

  • Due date set to 2024-08-23
  • Status changed from Resolved to Feedback

Unfortunately you missed something. Please check the ACs again.

Actions #16

Updated by okurz 3 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 ;)

Actions #17

Updated by livdywan 2 months ago

https://openqa.opensuse.org/tests?group_glob=* -> type investigate, nothing there -> it works :-D

Actions

Also available in: Atom PDF