Tomas Kopecek
7970e78092
drop "keys" field
2020-04-07 12:27:56 +02:00
Tomas Kopecek
9ef57c0f82
new policy for dist-repo
...
Fixes: https://pagure.io/koji/issue/1660
2020-04-07 12:27:56 +02:00
Ken Dreyer
beb7efc0e3
hub: document deleteExternalRepo arguments
...
Describe the type of the "info" argument to the delete_external_repo(),
and explain the GenericError when the repository does not exist.
2020-04-06 09:28:04 +02:00
Ken Dreyer
9247422258
hub: document getExternalRepo arguments
...
Describe the types of each argument to the get_external_repo() method.
2020-04-06 09:27:09 +02:00
Mike McLean
ab2445f1fa
fix sanity check in merge_scratch
...
Fixes https://pagure.io/koji/issue/2126
Follow up to #2058
https://pagure.io/koji/pull-request/2058
2020-04-06 09:07:23 +02:00
Tomas Kopecek
e8ba56349e
add refusal reason to log
2020-04-01 12:55:38 +02:00
Tomas Kopecek
f55c9e4d25
move admin force usage to assert_policy
...
Fixes: https://pagure.io/koji/issue/1930
2020-04-01 12:55:38 +02:00
Tomas Kopecek
357096bdf8
add param parsing also to base task
2020-03-30 09:23:07 +02:00
Tomas Kopecek
8529a1baa3
use library functions
...
Fixes: https://pagure.io/koji/issue/1903
2020-03-30 09:15:45 +02:00
Thomas Oulevey
076d54c029
Compare SCM URLs only if build from an SCM
...
This patch allow to merge source rpm not only build for SCMs.
2020-03-30 09:15:45 +02:00
Tomas Kopecek
01d8aaf3bb
use same set operators
2020-03-26 15:00:50 +01:00
Tomas Kopecek
f76f787fc1
move inner join before outer joins
2020-03-26 15:00:50 +01:00
Tomas Kopecek
7ebaf1dd42
Limit final query by prechecking buildroot ids
...
Fixes: https://pagure.io/koji/issue/1562
2020-03-26 15:00:50 +01:00
Tomas Kopecek
eae8df718f
check krb_principal before it is rewritten
2020-03-25 13:51:36 +01:00
Tomas Kopecek
226f9d8fbe
query on krb only if it is requested
2020-03-25 13:51:36 +01:00
Tomas Kopecek
360e0287a9
fix get_user params
2020-03-25 13:51:36 +01:00
Tomas Kopecek
5eafede60b
add-host work even if host already tried to log in
...
Fixes: https://pagure.io/koji/issue/1874
2020-03-25 13:51:36 +01:00
Yuming Zhu
944d105571
hub: editTagExternalRepo is able to set merge_mode
...
fixes : #1857
2020-03-25 13:39:30 +01:00
Mike McLean
0d79e839ba
propagate event to get_tag_extra
...
fixes https://pagure.io/koji/issue/2087
2020-03-25 09:19:18 +01:00
Tomas Kopecek
1638fc6d0f
fix logging package name
2020-03-24 10:57:29 +01:00
Tomas Kopecek
ccb7a15010
log --force usage by admins
...
Log everything related to package listing and build tagging done by
admin users via --force flag.
Fixes: https://pagure.io/koji/issue/1930
2020-03-24 10:57:29 +01:00
Tomas Kopecek
55307406d3
raise error on non-existing tag
...
Fixes: https://pagure.io/koji/issue/1101
2020-03-11 13:53:59 +01:00
Tomas Kopecek
1f391a7edc
raise GenericError on non-existing API call
...
count, filterResults and countAndFilterResults now raises GenericError
if unknown API call is made
Fixes: https://pagure.io/koji/issue/1421
2020-03-05 16:27:32 +01:00
Tomas Kopecek
1919ce80de
raise GenericError instead of TypeError in filterResults
...
Fixes: https://pagure.io/koji/issue/1421
2020-03-05 16:23:02 +01:00
Yu Ming Zhu
853953b625
CG: add and update buildinfo.extra.typeinfo if it doesn't exist
...
fixes : #2008
2020-03-05 15:17:54 +01:00
Yuming Zhu
fa613108a5
build_references: fix the type of event_id used by max
...
fixes : #1961
2020-03-04 16:58:29 +08:00
Yuming Zhu
cf34706f04
use Exception instead of BaseException for bare expection
2020-03-03 21:38:22 +08:00
Yuming Zhu
c5db34a8e1
flake8: apply E501 with max-line-length=99
2020-03-03 21:38:22 +08:00
Yuming Zhu
f1ba6cefd7
flake8: apply all rest E7 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
6ed30954b2
flake8: apply E71x rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
fa69c4904e
flake8: apply E70x rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
6dd77e0fa4
flake8: apply E502 rule
2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4
flake8: apply E3 rules
2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b
flake8: apply E2 rules except E266
2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af
flake8: apply E1 rules
2020-03-03 21:38:21 +08:00
Yu Ming Zhu
49504073b1
refine import style
2020-03-03 21:35:08 +08:00
Yuming Zhu
97cfaa4fcf
flake8: follow E265 rule
2020-03-03 21:35:08 +08:00
Yuming Zhu
642508ccf6
flake8: follow all F rules
2020-03-03 21:35:08 +08:00
Ken Dreyer
c118468628
hub: improve listBTypes() API documentation
...
Reformat this text to match Sphinx's conventions. This makes it easier
for developers to read this documentation.
2020-02-12 10:44:51 +01:00
Tomas Kopecek
8165f17f16
user proper type for buildroot state comparison
...
Fixes: https://pagure.io/koji/issue/1959
2020-02-11 10:48:10 +01:00
Tomas Kopecek
3c6fb59814
improve sql speed in build_references
...
Fixes: https://pagure.io/koji/issue/1961
2020-02-10 16:29:05 +01:00
Brendan Reilly
74e085572e
Deprecating list-tag-history and tagHistory
2020-02-10 15:50:30 +01:00
Ken Dreyer
5210da0d30
hub: improve search() API documentation
...
Reformat this text to match Sphinx's conventions. This makes it easier
for developers to read this documentation.
There are a couple small corrections here as well:
- matchType accepts more values than "glob" or "regex", and it treats
any other value as a plain "=" (strict string match).
- Only globs and regexes are searched insensitively
2020-02-07 10:56:48 -07:00
Tomas Kopecek
e016e6624d
Emit user in PackageListChange messages
...
Fixes: https://pagure.io/koji/issue/1035
2020-02-04 09:22:43 +01:00
Tomas Kopecek
a63c801e3e
check permission id in edit_tag
...
Fixes: https://pagure.io/koji/issue/1429
2020-02-04 09:20:48 +01:00
Tomas Kopecek
5494ea7632
check package list existence before blocking
...
Fixes: https://pagure.io/koji/issue/1177
2020-02-04 09:19:13 +01:00
Tomas Kopecek
72811e5fd1
don't allow setTaskPriority on closed task
...
Fixes: https://pagure.io/koji/issue/1153
2020-02-04 09:18:31 +01:00
Tomas Kopecek
512e43cbce
add strict to getChangelogEntries
...
If srpm doesn't exist and strict is specified, raise GenericError
instead of returning empty list.
Fixes: https://pagure.io/koji/issue/1147
2020-02-04 09:17:04 +01:00
Yu Ming Zhu
810dfe5751
hub: [newRepo] raise error when tag doesn't exist
...
fixes : #1910
2020-01-23 16:29:25 +01:00
Yu Ming Zhu
bce5afdf0c
hub: remove debugFunction API
...
testcase of list-api has some litaral reference. It doesn't matter but changed as well
fixes : #1833
2020-01-23 16:27:38 +01:00