42 Commits

Author SHA1 Message Date
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
780073f6d8 Fix headers and comment dead code. 2014-02-28 11:45:06 +01:00
Stephan Kulow
3bf7a84ee7 implement unselect option
removes the request from review and tracking
2014-02-18 13:30:39 +01:00
Stephan Kulow
28789e0c23 fix exception handling 2014-02-18 07:22:55 +01:00
Stephan Kulow
48e05a9765 fix up the staging functionality for select 2014-02-17 16:09:30 +01:00
Stephan Kulow
248a013254 move the useful functions out of the group plugin into a class on its own 2014-02-17 14:07:22 +01:00