53 Commits

Author SHA1 Message Date
6f073412f0
osclib/list_command.py: Allow overriding reviews filter from the command line.
This patch implements overriding of the filter on reviews set up by the
staging plugin. It is now possible to filter requests that have been
reviewed by more than one group, for example; or to filter requests that
have lack a request by a specific group or bot.
2024-12-04 16:59:52 +01:00
3edc4f008c osclib/list_command.py: Show details also for requests targeted to packages not in rings.
This commit implements the ability to show for packages that do not
belong to any ring the same details that are shown for packages that do
live in rings.  Due to concerns about compatibility and volume of the
output the feature is hidden behind a new --adi-details command
line flag.
2024-11-06 16:06:18 +01:00
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
Stephan Kulow
aaab4af930 Target F401 - Unused imports 2022-02-18 18:29:27 +01:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
dc62b2ed78 Target E711 - compare against None with 'is' not != 2022-02-18 15:56:45 +01:00
Stephan Kulow
f705a24db1 Only have one statement in a line E701
https://www.flake8rules.com/rules/E701.html
2022-02-18 13:42:57 +01:00
Jimmy Berry
3e8a85d9c3 osclib/list_command: 24ae4ba81 broke formatting.
The author was attempting to port for python3, but changed the meaning:

- print ' ', line
+ print(' ' + line)

The first prints "  $line", while the second:
                 " $line".

This changes console output from:

science
 666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

back to:

science
  666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

(ignore lines up and standard double space indent used)
2019-02-08 09:36:16 -06:00
Stephan Kulow
24ae4ba819 Port more code to run under python3
(python2 compat kept)
2018-11-16 08:14:56 +01:00
Jimmy Berry
52eb890d76 osclib/request_splitter: provide stageable option and make default True.
Without this, the relative rarer types of requests seen in projects with
staging and handled by list command will be included in staging proposal.
However, since they are not stageable the select operation will fail. This
change ensures that a filter is always present when stageable is True to
exclude non-stableable requests. The list command sets stageable to false
in order to list out the non-stageable requests of interest.

This was not observed in openSUSE since the main non-stageable request was
change_devel and that was exluded in StrategyNone. That filter could be
replaced with the stageable filter, but having an always on filter seems to
make more sense since generally operating in one of two modes.
2018-11-01 09:21:28 -05:00
Jimmy Berry
92a3a28ac9 Merge pull request #1121 from jberry-suse/set_bugowner
Handle set_bugowner requests to avoid mixing them where they do not belong
2017-09-13 21:17:44 -05:00
Jimmy Berry
77e70feef7 osclib/list: rework change_devel_requests to include set_bugowner.
Since set_bugowner requests are essentially equivalent to Factory
change_devel requests they should be presented in the same manor.
2017-08-31 16:35:30 -05:00
Jimmy Berry
4234706f30 osclib/list: only present submit and delete requests in main list. 2017-08-31 16:35:30 -05:00
Jimmy Berry
34dc6e73e6 osclib/list: strip openSUSE.org: prefix from source projects to reduce verbosity. 2017-08-31 16:22:02 -05:00
Jimmy Berry
4deab19da8 osclib/list: remove SUSE:SLE from hide_source now that devel groupings are used. 2017-08-31 16:21:56 -05:00
Jimmy Berry
213ebdb702 list: hide source project for SLE now that devel falls back to source. 2017-06-15 15:52:42 -05:00
Jimmy Berry
afaf794398 list: do not include parenthesis in delete request color. 2017-06-14 22:07:04 -05:00
Jimmy Berry
20751a997d list: s/is_factory/not_factory/ to correct variable name. 2017-05-11 16:02:19 -05:00
Jimmy Berry
f2dd455d13 list: correct ring-0 spacing by separating the color from value. 2017-05-11 16:01:41 -05:00
Jimmy Berry
9ae63cff62 list: color source_project. 2017-04-28 10:21:52 -05:00
Jimmy Berry
22ec112225 list & adi: share common stagingapi.ignore_format(). 2017-04-28 10:21:50 -05:00
Jimmy Berry
c47b296291 list: rework ignore indent and apply wordwrap. 2017-04-26 21:04:37 -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
8dceae9053 list: move delete request indication to correct whitespace formatting. 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
54f502da37 osc-staging: break out list --supersede PACKAGES... as separate command.
Maintains `list --supersede`, but places the explicit supersede based on
a list of packages in a separate command.
2017-04-19 17:42:14 -05:00
Jimmy Berry
1c646a3c9c list: remove duplicate empty list handling for dispatch_open_requests(). 2017-03-15 15:49:06 -05:00
Jimmy Berry
a6d7716eb0 osclib: wrap ignored request reason with str() to handle None. 2017-03-03 14:57:16 -06:00
Jimmy Berry
08f2218574 request_splitter: list: remove case for delete request without ring.
This case should no longer exist as non-ring requests will have already
be separated out of this loop.
2017-02-08 13:20:36 -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
6a521fc063 Correct indentation level of in requests_ignored check.
In the previous state this worked for any project except factory, now it
works on factory too.
2017-01-12 16:14:33 -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
d6e845231a Ignore add_role request in the list command 2016-08-23 16:58:44 +08:00
Ludwig Nussel
41b189b5f5 For non-Factory statings show origin of requests 2016-07-29 10:28:58 +02:00
335089ac61 Displays as Ring0 package if the subpackage was linked to Ring1
If the package was linked to Ring1 from Ring1, staging list command
should display it as Ring0 package ie. it's only be able to puts in
ring0 staging project. This is work out
https://progress.opensuse.org/issues/8266
2016-06-13 16:54:01 +08:00
Ludwig Nussel
4c43fe5c87 Group staging list by devel project 2016-06-07 15:12:02 +02:00
a3f59150af Do not superseding requests with list command
Do not superseding requests with list command, but if had the permission
of staging, can executing with --supersede argument, or even against
specific requests.
2015-10-01 19:59:40 +08:00
dc5e797df1 list all deletereq request as in-ring 2015-09-09 16:18:20 +08:00
62a1946064 split the view for change_devel requests 2015-09-09 15:11:47 +08:00
Stephan Kulow
77e9276340 no longer accept non-ring packages but show them in list 2015-07-16 12:42:25 +02:00
Alberto Planas
8308eaab14 Small changes for SLE integration. 2015-03-24 14:46:36 +01:00
29b8bcca6b Makes staging pluging Factory agnostic. 2014-08-07 12:58:47 +02:00
Tomáš Chvátal
24bf0341be Refactory list command using the api so we can use it in other commands too. 2014-03-06 11:43:21 +01:00
Stephan Kulow
783cf708c0 fix more things for the list command 2014-03-06 09:54:12 +01:00
Stephan Kulow
18fb2d9e8c fix list_command 2014-03-05 20:26:27 +01:00
Michal Hrusecky
60d5c26854 More comments 2014-03-05 13:03:58 +01:00
Michal Hrusecky
555fc07888 Improve list command
List command now also replace superseded requests with their newer counterparts.
2014-03-05 11:12:36 +01:00
1e0b8e920d Remove dead and commented code 2014-02-28 13:12:12 +01:00
780073f6d8 Fix headers and comment dead code. 2014-02-28 11:45:06 +01:00