Commit graph

1165 commits

Author SHA1 Message Date
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
Tomas Kopecek
906d039e3e raise GenericError on existing build reservation
Fixes: https://pagure.io/koji/issue/1888
2020-01-07 10:32:34 +01:00
Yu Ming Zhu
75f4c24bf2 hub: [distRepo] fix input tag arg for getBuildConfig call
fixes: #1630
2020-01-05 14:46:05 +00:00
Tomas Kopecek
27df9ed497 docstrings for API
Relates: https://pagure.io/koji/issue/1831
2020-01-02 12:25:40 +01:00
Tomas Kopecek
aacb1ba0ce use getBuildConfig 2020-01-02 11:26:20 +01:00
Tomas Kopecek
4d03794657 limit distRepo tasks per tag
Introduces 'distrepo.cancel_others` extra flag for tags. If enabled, new
distRepo task will cancel previous non-finished ones leaving only new
one.

Fixes: https://pagure.io/koji/issue/1630
2020-01-02 11:26:20 +01:00
Tomas Kopecek
327793f01f listTags needn't permissions every time
There is a performance penalty for joining permission table. Especially
koji-gc doesn't need this info, so it can be ignored by an option.
2020-01-02 11:23:36 +01:00
Yu Ming Zhu
350b04eb37 hub: getUser: default krb_princs value is changed to True
fixes: #1822
2019-12-19 14:55:35 +01:00
Yu Ming Zhu
a58148a7ed sort imports in hub 2019-12-12 11:00:57 +00:00
Tomas Kopecek
857fe4c871 extend docstrings for CGInit/RefundBuild
Fixes: https://pagure.io/koji/issue/1867
2019-12-11 09:22:25 +01:00
Tomas Kopecek
20b91e85a0 fix CGRefundBuild to release build properly
CGInitBuild will fail on already existing build (even canceled/failed),
so it can't be used to reuse previously refunded nvr.

CGRefund build doesn't delete reservation. Having reservation token for
build which is no more in BUILDING doesn't make much sense and blocks
and reservation of same NVR.

Fixes: https://pagure.io/koji/issue/1852
2019-12-10 16:58:33 +01:00
Yu Ming Zhu
b92143370e fix countOnly for group sql
fixes: #1844
2019-12-05 15:41:08 +01:00
Yu Ming Zhu
876a0501ac hub: fix BulkInsertProcessor call in CGImport
fixes: #1846
2019-11-29 06:31:04 +00:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
83b92da7e4 drop buildMap API call
It was originally designed for garbage-collector, but it is now using
buildReferences call which supersedes this one.

Fixes: https://pagure.io/koji/issue/1721
2019-11-26 12:26:29 +01:00
Tomas Kopecek
f0aa13bf0e no notifications in case of deleted tag
Fixes: https://pagure.io/koji/issue/1379
2019-11-25 11:13:27 +01:00
Mike McLean
1344062bdd fix typo and extend unit test to cover where it occurred 2019-11-19 12:01:14 -05:00
Mike McLean
727de7d953 support batch operation in BulkInsertProcessor 2019-11-19 12:01:14 -05:00