55 Commits

Author SHA1 Message Date
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
Stephan Kulow
f86579642b Target E501 - Line too long
https://www.flake8rules.com/rules/E501.html - but 79 characters is a
joke
2022-02-18 18:17:27 +01:00
Stephan Kulow
d8f5d0874e Remove E201 - Whitespace after '('
https://www.flake8rules.com/rules/E201.html
2022-02-18 17:23:19 +01:00
Stephan Kulow
54079e949f Target E202 - Whitespace before ')'
https://www.flake8rules.com/rules/E202.html
2022-02-18 17:18:29 +01:00
Stephan Kulow
dafa42d3df Support to move one staging into another
osc staging select --move adi:26 adi:14

If move is given, all staging projects given after the first will
be seen as source

Fixes #1105
2022-02-15 15:00:14 +01:00
Stephan Kulow
2f5354b09d Fix for unselect command 2019-11-19 08:04:11 +01:00
Stephan Kulow
26772ff058 Optimize request_id_for_package 2019-11-19 08:04:11 +01:00
Stephan Kulow
b6e68f81e9 Work on adi command 2019-11-19 08:04:10 +01:00
Stephan Kulow
4921751ef2 Work on select command 2019-11-19 08:04:10 +01:00
Stephan Kulow
63ccac76d5 Work on accept command - not yet done 2019-11-19 08:04:10 +01:00
Stephan Kulow
9b4b0ed15a Begin porting to python3 (osc branch) 2018-05-14 11:04:39 +02:00
Jimmy Berry
0f869ab886 osclib/request_finder: restrict to submit and delete request types.
This avoid set_bugowner and change_devel requests from causing a select
command to die due to more than one request.
2017-08-31 16:35:30 -05:00
33b717b567 Quit the loop if found the staging project for the request
If found the staging project for the request then it should quit the
loop, continue the loop makes no sense.
2016-10-13 19:27:15 +08:00
faefd0edcb Fix wrong valiable used in the filtering statement 2016-07-25 22:28:48 +08:00
5692ec1cc6 Use newcand param make sure don't select the processed requests 2016-07-19 15:32:52 +08:00
25f55b33ee fixing wrong cast while add to srs 2015-10-14 17:38:09 +08:00
Stephan Kulow
4afc30ffc0 fix request casting
the error wants strings, but the cast is happening to early
2015-10-04 10:38:56 +02:00
Stephan Kulow
c99a15b0b4 check for target project too in request finder
prject=openSUSE:Factory package=yast2 finds also packages going into 42,
which is not what we want
2015-07-31 03:28:01 +02:00
Alberto Planas
181999b8b3 find_request_package ignore declined requests. 2015-05-15 12:08:31 +02:00
Alberto Planas
c9d1e06ca8 Refactor configuration parameters into configuration file. 2015-02-19 11:39:05 +01:00
d17b24a4a4 Detect staged packages in a more robust way.
Instead of checking the review status of the request to detect
if a package is in a staging project, we use the staging API
knowledge about packages.

This fix the problem that happends when a staged request is
declined and reopened.
2014-08-14 17:28:35 +02:00
29b8bcca6b Makes staging pluging Factory agnostic. 2014-08-07 12:58:47 +02:00
ee2289e19d Takes care of the prefix for a different entry points of find 2014-03-28 16:43:55 +01:00
41ed964435 Makes sure that the review project have the correct prefix 2014-03-28 16:43:55 +01:00
Tomáš Chvátal
cd29c097df Fix bug where if there is already project review we considered it staging review 2014-03-28 12:22:47 +01:00
Stephan Kulow
947006135f actually fixing unselect 2014-03-25 11:55:11 +01:00
Tomáš Chvátal
ea8042869f Quote the package for url parsing. This should solve progress issue#1892. 2014-03-24 14:24:43 +01:00
3988530799 Formalize the definition of supersede 2014-03-10 16:28:01 +01:00
52a22a7917 Rename _is_new_review_by_project to _new_review...
_new_review_by_project do not return True / False, but the staging
project that is reviewing the request and that is in new state.
2014-03-10 16:28:01 +01:00
3dea7e3c84 RequestFinder is a new class object. 2014-03-10 16:28:01 +01:00
e0967d1583 Convert _is_int to a function. 2014-03-10 16:28:01 +01:00
4a26a50dc5 Forget a self after refactorization. 2014-03-10 16:28:00 +01:00
695cba4ad1 Pass the request id as string 2014-03-10 11:54:06 +01:00
0020fd4367 action #1824 - request finder bugs (II) 2014-03-10 11:25:10 +01:00
77117bcabc Fix refactorization lost in some merge 2014-03-10 10:42:20 +01:00
Tomáš Chvátal
6eccef26c9 Check if p is int and remove whitespace. 2014-03-07 14:49:33 +01:00
Tomáš Chvátal
f6f83334e4 Fix API rename clash. 2014-03-07 14:07:00 +01:00
Tomáš Chvátal
8460a8accd Merge branch 'master' of github.com:openSUSE/osc-plugin-factory
Conflicts:
	osclib/request_finder.py
	osclib/stagingapi.py
2014-03-07 14:05:54 +01:00
016322913e Fix last refactorization. 2014-03-07 11:42:52 +01:00
eb200fe842 A bit of refactoring 2014-03-07 11:38:25 +01:00
Tomas Chvatal
e0ba87c4fe Use same coding style. Fix print syntax. Expand variable names to more obvious ones. 2014-03-06 18:22:19 +01:00
71170d7aff Check package matches in find_request_package() 2014-03-06 16:59:49 +01:00
8bc2a216d5 Small cosmetic changes. 2014-03-06 16:00:00 +01:00
9ecf003434 Add some doc strings. 2014-03-06 16:00:00 +01:00
Stephan Kulow
d64f9a3f6a don't consider a normal supersede a move 2014-03-06 09:39:49 +01:00
Stephan Kulow
7c18c7da08 remember the other request, so we can correctly output the duplicate
see issue 1795
2014-03-06 09:39:49 +01:00
28861d22ad Detect staging project only when review by_project is in new state 2014-03-05 11:13:59 +01:00
eb4aee3a19 A better approach for action #1784 2014-03-04 18:22:37 +01:00
5cdde68c8b action #1784 Unselect do not need a Project parameter, only the Package 2014-03-04 16:51:32 +01:00
d08861c598 New approach for action #1658 - move does not need a from argument 2014-03-03 17:26:52 +01:00