26 Commits

Author SHA1 Message Date
Stephan Kulow
0cef959328 Work around OBS issue 8994
Instead of declining the by_project review, unselect the request and
decline the group review. This way we avoid the OBS problem
2020-03-18 22:40:47 +01:00
Stephan Kulow
16fb802361 Fix for unselect with message: need to ignore afterwards
You can't have requests excluded and staged at the same time
2019-11-19 18:17:26 +01:00
Stephan Kulow
2f5354b09d Fix for unselect command 2019-11-19 08:04:11 +01:00
Stephan Kulow
61205d35e3 Some fixes for supersede and unselect
the API changed to /requests
2019-11-19 08:04:11 +01:00
Stephan Kulow
b43e9930ac Port unselect command to new API 2019-11-19 08:04:10 +01:00
Ludwig Nussel
d78e4306d7 unselect: only set origin-manager for whitelist cleanup
anything else needs to be defined in attribute
2019-11-11 10:35:53 +01:00
Jimmy Berry
beb80534f0 unslect: --cleanup handle superseded request that is never replaced. 2017-05-15 17:52:28 -05:00
Jimmy Berry
f70544ec81 unselect: extract filter conditions as config variables. 2017-05-04 15:08:41 -05:00
Jimmy Berry
cf966f5053 unselect: add conditions to obsolete filter used by --cleanup. 2017-05-04 15:08:12 -05:00
Jimmy Berry
83aac77c6a stagingapi: project_status_requests(): provide filter function. 2017-05-04 15:00:04 -05:00
Jimmy Berry
9135f91620 unselect: filter superseded when using --cleanup. 2017-04-19 14:55:42 -05:00
Jimmy Berry
5a2cd2dc9a osc-staging: handle select --move cleanup of empty source project.
- handle build disable in select command just like comment instead of
  stagingapi move_between_project() for consistency and to reduce double
  checking the same information via extra API calls
- build_switch_staging_project() provides target_flag parameter rather
  than trying to figure out flag value since caller has the context to
  know and again reduces API calls
- build_switch_staging_project() checking conditions are essentially
  checking if True is True since non-adi projects will always have ring
  packages or rings disabled entirely. The condition of interest is
  non-empty. Additionally adi projects are removed if empty so not a
  terribly useful distinction to make.
- provide helper update_status_or_deactivate() to handle common logic
  and replace in calling locations
2017-03-28 22:33:35 -05:00
Jimmy Berry
94a4629d2c unselect: support the --cleanup flag to include all obsolete requests. 2017-03-18 18:13:42 -05:00
Jimmy Berry
80e0ce4ea8 unselect: cleanup stagings left empty after request removal. 2017-03-14 23:03:02 -05:00
Jimmy Berry
8ebf07b139 unselect: suggest marking a request ignored if eligible to restage. 2017-02-15 21:46:28 -06:00
73c0050fbd unselect: Do not state we accepted the request, but give a better message 2016-02-10 11:04:39 +01:00
Alberto Planas
c9d1e06ca8 Refactor configuration parameters into configuration file. 2015-02-19 11:39:05 +01:00
29b8bcca6b Makes staging pluging Factory agnostic. 2014-08-07 12:58:47 +02:00
Ancor Gonzalez Sosa
507e50d633 Write only one comment per action
* For every 'select' or 'unselect' a single comment is written in
   every affected project
 * Previous automatic comments are deleted (as a first approach)
 * For more info, see https://progress.opensuse.org/issues/2564
2014-06-04 16:54:21 +02:00
e89a564b45 Avoid comments in unselect operation. 2014-05-20 15:10:23 +02:00
f7058390cd Replace with [at] and fix the select comment. 2014-05-20 15:08:21 +02:00
d3b95370ec Scape markdown headline mark. 2014-05-20 14:56:57 +02:00
701fdfba6a Replace @ with # to avoid spam for now. 2014-05-20 13:49:14 +02:00
6e0322f699 Add comments in every operation. 2014-05-20 12:26:56 +02:00
Stephan Kulow
947006135f actually fixing unselect 2014-03-25 11:55:11 +01:00
Tomáš Chvátal
9564484580 Split unselect from osc-staging.py to separate file and fix add_review to not bother with review if the sr is already dead. Fixes progress issue#1781. 2014-03-24 14:46:50 +01:00