16 Commits

Author SHA1 Message Date
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