Commit graph

575 commits

Author SHA1 Message Date
Ken Dreyer
235018eca6 cli: improve grant-permission --new --help message
The --new option only creates a new permission if the permission does
not already exist. Update the --help message to indicate this.
2020-04-29 10:13:44 +02:00
Tomas Kopecek
04f6ba886e fix tests 2020-04-22 14:54:10 +02:00
Tomas Kopecek
0132313f92 replace logging.warn with warning
call is deprected in python 3.7

Fixes: https://pagure.io/koji/issue/2135
2020-04-22 13:47:15 +02:00
Tomas Kopecek
bba9907fc4 Fix automatic trailing-space removal 2020-04-15 11:19:32 +02:00
Tomas Kopecek
a85f51db3a fix tests 2020-04-14 09:09:49 +02:00
Tomas Kopecek
b8d56fa920 fix ordering for retagged builds 2020-04-14 09:09:49 +02:00
Tomas Kopecek
af14fc4a69 overtag existing builds 2020-04-14 09:09:49 +02:00
Tomas Kopecek
bd9ce26461 clone-tag --no-delete mode
Fixes: https://pagure.io/koji/issue/1384
2020-04-14 09:09:49 +02:00
Tomas Kopecek
7970e78092 drop "keys" field 2020-04-07 12:27:56 +02:00
Tomas Kopecek
09da0aa1e4 fix typo 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
Mike McLean
067d30080e more grammar changes 2020-04-02 10:55:30 +02:00
Tomas Kopecek
21b461ec25 fix test 2020-04-02 10:55:30 +02:00
Tomas Kopecek
4bf09bd398 Better help for build/latest-build
People can be confused by buildtag/desttag/target. Shed some light in
these commands' helps.

Fixes: https://pagure.io/koji/issue/1808
2020-04-02 10:55:30 +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
475bf17f05 fix tests 2020-03-30 15:10:30 +02:00
Tomas Kopecek
291f04301b download_archive / download_rpm methods for CLI
Fixes: https://pagure.io/koji/issue/1880
2020-03-25 14:03:47 +01:00
Tomas Kopecek
beb59148a2 fix tests 2020-03-25 13:51:36 +01:00
Tomas Kopecek
4f8ece5881 fix test 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
0ea008ac8a unittests: for edit-external-repo cmd and editTagExternalRepo API 2020-03-25 13:39:30 +01:00
Tomas Kopecek
d1e055f1b2 limit size of extra field in proton msgs
Fixes: https://pagure.io/koji/issue/2017
2020-03-25 09:07:15 +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
718321298e allow to skip SRPM rebuild for scratch builds
Fixes: https://pagure.io/koji/issue/1719
2020-03-19 15:40:55 +01:00
Tomas Kopecek
bb9c72092b use only gssapi_login in CLI
Fixes: https://pagure.io/koji/issue/1906
2020-03-09 15:13:36 +01:00
Yuming Zhu
c5db34a8e1 flake8: apply E501 with max-line-length=99 2020-03-03 21:38:22 +08:00
Christopher O'Brien
ff1996564c Disable notifications from clone-tag by default
The tagBuildBypass and untagBuildBypass invocations in the clone-tag
CLI were not setting the notify option, leaving it at the default of
True. This means in some cases many hundreds of notification events
would be triggered from a clone-tag call.

Change the default behavior of clone-tag to explicitly disable
notifications

Add a new --notify option to clone-tag to re-enable notifications for
tagging and untagging of builds.

Fixes: #1890
2020-03-03 14:13:48 +01:00
Yu Ming Zhu
ecebcba90f unittest fix: tests/test_cli/test_list_tagged.py 2020-02-12 12:34:03 +01:00
Tomas Kopecek
f9190657d9 Add 'target' policy
Fixes: https://pagure.io/koji/issue/1040
2020-02-11 14:30:25 +01:00
Tomas Kopecek
4edb9b15c2 don't user full listTags in list-groups call
Fixes: https://pagure.io/koji/issue/1954
2020-02-10 15:35:48 +01:00
Tomas Kopecek
e0ad9c5a1e fix test 2020-02-04 10:53:12 +01:00
Tomas Kopecek
4e28eda265 fix usage message for add-pkg
Fixes: https://pagure.io/koji/issue/1212
2020-02-04 10:33:34 +01: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
5494ea7632 check package list existence before blocking
Fixes: https://pagure.io/koji/issue/1177
2020-02-04 09:19:13 +01:00
Tomas Kopecek
11aa2bcead fix help message for list-groups
Fixes: https://pagure.io/koji/issue/1189
2020-02-04 09:15:28 +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
b6837798a6 fix test for PR1918
Related: https://pagure.io/koji/pull-request/1918
2020-01-07 13:45:04 +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
ac42f9b8ba basic zchunk support for dist-repo
Fixes: https://pagure.io/koji/issue/1198
2020-01-02 11:30:55 +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
Yu Ming Zhu
8d4a5c7129 kojid: use binary msg for python3 in *Notification tasks
fixes: #1882
2020-01-02 10:44:20 +01:00
Tomas Kopecek
418376dc81 build can wait for actual repo
New options --wait-for-build and --wait-for-repo for build command are
simplification of using wait-repo + build command succession. They have
same semantices as the original one.

Fixes: https://pagure.io/koji/issue/1619
2019-12-12 15:29:27 +01:00
Tomas Kopecek
98ab70dcff fix permission check in CLI 2019-12-11 11:47:02 +01:00
Tomas Kopecek
502e7ed2ca fix tests 2019-12-11 11:47:02 +01:00
Tomas Kopecek
bf45d6927f unify return values for permission denied
Fixes: https://pagure.io/koji/issue/1776
2019-12-11 11:47:01 +01:00
Yu Ming Zhu
f63d94cbad add tests for group and countOnly for QueryProcessor 2019-12-05 15:41:08 +01:00
Tomas Kopecek
98b83eff69 fix downloads w/o content-length
Fixes: https://pagure.io/koji/issue/982
2019-11-25 14:51:08 +01:00
Tomas Kopecek
9e0452377f fix test 2019-11-25 11:54:18 +01:00
Tomas Kopecek
7c510f7dcd clarify --ts usage
Fixes: https://pagure.io/koji/issue/1774
2019-11-25 11:45:57 +01:00