Skip to content

Owner Search

Dany Marcoux edited this page Aug 24, 2022 · 38 revisions

Owner Search

The Owner Search is returning owners of a given project/package. Owners are users/groups with the maintainer or bugowner roles in the given project/package. There are 5 OwnerSearch classes with OwnerSearch::Base being the parent of the 4 other children classes. They have different behaviors depending on the hash key-value pairs passed to their initializer. The key-value pairs with possible effects are attribute, devel, filter, limit and project. Other key-value pairs are ignored. See below how each class works.

OwnerSearch::Assignee

TODO - General description

attribute

devel

A value of '0' or 'false' will not consider devel packages when searching for owners.

filter

limit

A value of -1 will return only the owner of the deepest package in terms of project levels (like home:Admin/ctris vs home:Admin/subproject1/ctris).

A value of 0 will return all owners.

A value of 1 or higher will return at most this amount of owners for a given project/package. There might not be even that many owners.

project

Search for owners only in this project.

OwnerSearch::Container

TODO - General description

attribute

devel

It does not have any effect.

filter

limit

project

It does not have any effect.

OwnerSearch::Missing

TODO - General description

attribute

devel

It does not have any effect.

filter

limit

project

Search for owners only in this project.

OwnerSearch::Owned

TODO - General description

attribute

devel

It does not have any effect.

filter

limit

project

Search for owners only in this project.

Clone this wiki locally