Skip to content

BS Requests

Björn Geuken edited this page Dec 5, 2017 · 12 revisions

BSRequest

An instance of BSRequest represents one request in OBS.

BsRequestAction

A request can have multiple actions (BsRequestAction). An action defines what will happen, when the request gets accepted. Every action is described in it's own sub-class. For example, if a request has a BsRequestAction of the type (string) submit, it will perform the code in BsRequestActionSubmit.

NOTE: The class BsRequestActionAcceptInfo is not an action itself. If a request was accepted, a new record of type BsRequestActionAcceptInfo is being created and it holds information about the accepted request.

Mappings:

Type Representative Class Action
submit BsRequestActionSubmit changes source code or creates a new package
delete BsRequestActionDelete deletes a project/package
change_devel BsRequestActionChangeDevel changes the origin devel project of a project
add_role BsRequestActionAddRole adds a role (e.g. the submitter wants to be a project/package maintainer)
set_bugowner BsRequestActionSetBugowner sets the bugowner for a package
maintenance_incident BsRequestActionMaintenanceIncident usually comes from devel projects from the maintainer of a package in order to update a package in the distribution update channels.
maintenance_release BsRequestActionMaintenanceRelease a maintenance release request is created from a Maintenance Incident Project and is supposed to be released in the codestream and a set of products
group BsRequestActionGroup - no longer being used -

BsRequestCounter

This model holds always only one record in which it stores the number for the next request which will be created. When a new request gets created, the counter column gets increased by +1. This is required for HA setups which have multiple databases running where requests can have different ID's. To ensure that we always act on the right request, we use a unique number.

BsRequestPermissionCheck

The BsRequestPermissionCheck model is being used for permission checks before a submit request can get accepted or a request state can be changed.

Clone this wiki locally