32 Commits

Author SHA1 Message Date
Jimmy Berry
22ec112225 list & adi: share common stagingapi.ignore_format(). 2017-04-28 10:21:50 -05:00
Jimmy Berry
9f84a7c321 supersede: colorize. 2017-04-27 16:33:04 -05:00
Jimmy Berry
448c88a56e supersede: include ignore and decline in output. 2017-04-27 15:35:26 -05:00
Jimmy Berry
a4432aefff list & adi: remove sr# prefix from request IDs to ease copy/paste. 2017-04-26 11:59:40 -05:00
Jimmy Berry
fb25b7a044 osc-staging: implement colorization using colorama for adi and list. 2017-04-26 11:59:38 -05:00
Jimmy Berry
f9c78a6638 adi: create accept comment to be consistent with letter stagings. 2017-03-28 23:02:38 -05:00
Jimmy Berry
7b6ead4047 adi: utilize extract_staging_short() and project_status(). 2017-03-16 22:13:55 -05:00
Jimmy Berry
a6d7716eb0 osclib: wrap ignored request reason with str() to handle None. 2017-03-03 14:57:16 -06:00
9a322d712e adi: Do not update status comment per request but project 2017-02-13 18:11:20 +08:00
Jimmy Berry
997f929ad4 adi: map wanted_requests to str() before passing to splitter. 2017-02-10 10:05:38 -06:00
Jimmy Berry
f42358eaad request_splitter: move @devel_project to action/target.
With the source no longer being checked for devel project and the fact
that delete requests and such will not have source, but make sense to
have a devel project moving to target makes more sense.
2017-02-01 08:09:01 -06:00
Jimmy Berry
69f662685c Add RequestSplitter for common filtering and grouping or requests.
- re-implement list and adi commands using RequestSplitter
- numerous small cleanups and clarity improvements
- notably, adi now prints similar output to select when adding requests
- lxml is needed to provide more fully-featured xpath implementation
2017-01-24 22:21:10 -06:00
Jimmy Berry
b25fda9b47 Provide ignore/unignore request staging commands.
It is not uncommon for a request to be in a pending state which requires
action beyond the scope of the staging workflow, but does not make sense
to deny the request. For lack of a "postponed" or "pending" state on OBS
a sudo-state of "ignore" is provided for the staging workflow. The ignore
state will remove a request from the "list" and "adi" commands so as not
to be accidentally staged. This avoids the need for keeping a context of
what requests should be ignored in one's memory.

It is expected that an ignored request will have comments reflecting what
is to be done or one should be added via the -m option of ignore command.
2017-01-11 18:32:23 -06:00
Jimmy Berry
f75e9bdaf3 adi_command: whitespace cleanup.
Tabs vs spaces is even scarier in python.
2016-12-29 16:27:11 -06:00
Ludwig Nussel
7ec1c1955b Improve adi list output 2016-12-06 12:59:47 +01:00
Ludwig Nussel
4c43fe5c87 Group staging list by devel project 2016-06-07 15:12:02 +02:00
Ludwig Nussel
7970a01c28 Don't die on packages that don't exist in Factory 2016-06-07 15:11:26 +02:00
340aa5323c Small fixes 2016-05-31 14:25:51 +08:00
e8c55026ed Add --split argument to adi command
With --split argument, staging adi command can splits each package to
different adi staging project, the argument can work by 'osc staging adi
--split' or 'osc staging adi --move --split'. Note that, it will be
ignore --by-develproject argument too.
2016-05-31 14:25:51 +08:00
85cafb7316 Update by_dp function in adi command
Update by_dp function in adi command, the old way is incompatible to
newer Leap development model, now we should try to check target package
in Factory as well, otherwise the submission from any other place than
Factory did not have 'devel' entry in _meta.
2016-05-09 15:02:10 +08:00
73da5dd402 Use number instead of id for id->number switch issue 2016-05-03 21:29:32 +08:00
85674b31c5 Show package also in adi command 2016-04-11 13:53:23 +08:00
0daad0fd1c auto-superseding in adi command 2015-11-19 20:23:10 +08:00
3cf6c7c55f do not process the rest request type than submit in adi 2015-09-09 15:26:05 +08:00
fa6f508883 Add --by-develproject argument to adi command
If with --by-develproject, adi command will check devel project of
source package before selecting requests to adi staging.
2015-08-27 20:38:16 +08:00
Stephan Kulow
16c9e16cdb support --move in adi - create a new adi for the given arguments 2015-08-25 07:12:08 +02:00
4603bee62c adi_command: only run create_new_adi() if the user has permission to do so (based on group membership) 2015-08-06 15:54:57 +02:00
Stephan Kulow
bb3416d4ad don't crash on delete requests 2015-07-28 13:01:30 +02:00
Stephan Kulow
6b37247b66 create several adi stagings - one per source project 2015-07-28 11:16:52 +02:00
Stephan Kulow
88392bda58 automatically check 2015-07-19 10:10:30 +02:00
Stephan Kulow
78eec38b4f check adi stagings and allow arguments to adi 2015-07-19 09:32:32 +02:00
Stephan Kulow
5de87f84e4 add adi command to create an ad interim staging prj for all non-ring packages 2015-07-16 15:09:26 +02:00