Commit graph

1046 commits

Author SHA1 Message Date
Mike McLean
32239f2c68 address issues with list-users
Fixes: https://pagure.io/koji/issue/4050
2024-04-24 14:47:57 +02:00
Jana Cupova
63a6f43d8a Fix remove-tag-inheritance with priority
Fix remote-tag-inheritance with priority

Fixes: https://pagure.io/koji/issue/3985
2024-03-26 15:11:24 +01:00
Tomas Kopecek
2c9f69524a fix flake8 2024-03-26 12:27:31 +01:00
Tomas Kopecek
2c2e9209d1 fix typo 2024-03-20 14:11:43 +01:00
Tomas Kopecek
2468cb989d modify for 1.34.1 2024-03-20 13:48:59 +01:00
Mike McLean
030a54b8d4 use hub version check for compat code 2024-03-20 13:48:58 +01:00
Tomas Kopecek
fe3474c0e8 better compatibility errors 2024-03-20 13:48:58 +01:00
Tomas Kopecek
f3306a371b backward compatibility 2024-03-20 13:48:58 +01:00
Tomas Kopecek
43b173bb17 --limit from scheduler-logs/info
Related: https://pagure.io/koji/issue/4042
2024-03-20 13:48:58 +01:00
Jana Cupova
c62e3467b5 Add CLI with users with given permission
Fixes: https://pagure.io/koji/issue/3950
2024-03-11 13:12:20 +01:00
Mike McLean
cfd6d3064f show hub version in koji hello 2024-02-29 15:40:03 +01:00
Tomas Kopecek
7a9b0561eb Don't try to resolve server version for old hubs
Related: https://pagure.io/koji/issue/3890
2024-02-29 15:40:03 +01:00
Jana Cupova
d31750bf70 CLI list-users with filters from listUsers
Fixes: https://pagure.io/koji/issue/4001
2024-02-15 08:25:19 +01:00
Yu Ming Zhu
f41b8c70a7 Bandit [B411]: use defusedxml to prevent remote XML attacks
- putting xmlrpc stuff into koji.xmlrpcplus
- adding koji.xmlrpcplus.xmlrpc_server to refer
- replacing refs of original xmlrpc.client.dumps to enhanced
  koji.xmlrpcplus.dumps

fixes: #3964
2024-02-02 09:08:18 +01:00
Hector Martinez
d467810c7c Read config file on image build indirection 2024-01-11 15:55:57 +01:00
Mike McLean
ce32f58b9a show promotion info in ui 2024-01-05 10:01:01 +00:00
Mike McLean
af36318ead refactor get_rpm 2024-01-05 10:00:50 +00:00
Yu Ming Zhu
b4623d52ca extra changes by draft suffix change 2024-01-05 10:00:45 +00:00
Yu Ming Zhu
753f691148 cli: clean changes in handle_import 2024-01-05 10:00:39 +00:00
Yu Ming Zhu
f29e5e143e parse target_release from draft release instead of extra.draft.target_release 2024-01-05 10:00:38 +00:00
Yu Ming Zhu
74ba6c947f cli rpminfo: handle no srpm case 2024-01-05 10:00:36 +00:00
Yuming Zhu
6fe42b6212 cil wrapper-rpm: input check and more reasonable opt --create-draft 2024-01-05 10:00:35 +00:00
Yuming Zhu
70518c01a1 remove unused yesno helper 2024-01-05 10:00:33 +00:00
Yu Ming Zhu
77a06c98b3 draft filter opt: use bool/None instead of bit flag 2024-01-05 10:00:33 +00:00
Yu Ming Zhu
8a34f7efa0 promote-build command 2024-01-05 10:00:32 +00:00
Yuming Zhu
87409499a3 draft builds 2024-01-05 10:00:29 +00:00
Yu Ming Zhu
7b1f2a6137 cli: [list-permissions] backward compatibility for getUserPermsInheritance call
fixes: #3959
2023-12-08 23:52:39 +00:00
Tomas Kopecek
0c58cd954d Retrieve task_id for older OSBS builds
Related: https://pagure.io/koji/issue/3906
2023-10-23 14:24:16 +02:00
Tomas Kopecek
268d07caf4 PR#3884: short option for watch-logs --follow
Merges #3884
https://pagure.io/koji/pull-request/3884

Related: #3909
https://pagure.io/koji/issue/3909
2023-10-23 14:21:01 +02:00
Tomas Kopecek
15bdb0cdf9 Revert "short option for watch-logs --follow"
This reverts commit 0b7a97dc19.

It was not pushed via correct PR merge. Same commit will follow with
correct workflow.
2023-10-23 14:09:39 +02:00
Tomas Kopecek
0b7a97dc19 short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-10-23 14:04:54 +02:00
Tomas Kopecek
055fae4176 flake8 fixes 2023-10-03 15:23:02 +02:00
Tomas Kopecek
9b62b2cbea fix scheduler-info 2023-10-03 15:23:02 +02:00
Mike McLean
b9a7516943 basic scheduler log cli 2023-10-03 15:23:02 +02:00
Mike McLean
1f54dbdf8f watch-tasks: show host for assigned tasks 2023-10-03 15:23:02 +02:00
Tomas Kopecek
6a23a12fd0 wip 2023-10-03 15:23:01 +02:00
Ken Dreyer
cb244fb382 cli: fix wait-repo message when missing builds
The wait-repo command performs a sanity-check when the user specifies an
NVR with "--build". If there are no builds of the package in the tag at
all, wait-repo will print a warning.

The text of that warning was not accurate. The package itself may be in
the tag (listPackages), but there are no builds of that package
(getLatestBuilds). Correct the warning text to clarify the exact problem
to the user.
2023-09-28 12:12:23 -04:00
Tomas Kopecek
9f1f5b674d short option for watch-logs --follow
Related: https://pagure.io/koji/issue/3909
2023-09-22 09:26:31 +02:00
Nicolas Chauvet
93a5ca5abe cli: handle hub w/o getKojiVersion in cancel tasks
Cancel tasks are used from newer fedora koji client on some hubs that
are lacking any getKojiVersion method, so assumes older_hub = True

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
2023-09-04 21:53:17 +02:00
Tomas Kopecek
f5f8e6c6a2 refactor get_user_perms 2023-09-04 09:16:21 +02:00
Tomas Kopecek
255ec21d00 Inherit group permissions
Related: https://pagure.io/koji/issue/3849
2023-09-04 09:16:21 +02:00
Tomas Kopecek
c0bc73fdc0 disable use_bootstrap_image if not requested
Related: https://pagure.io/koji/issue/3872
2023-08-28 12:56:49 +02:00
Tomas Kopecek
9d03e43a6a use auth.get_user_groups 2023-08-02 12:46:40 +02:00
Tomas Kopecek
60722acf09 Extend getUser to get user groups
Related: https://pagure.io/koji/issue/3854
2023-08-02 12:46:40 +02:00
Tomas Kopecek
4df0089ee6 fix CLI option target 2023-07-18 11:31:07 +02:00
Tomas Kopecek
ad0566d7cc distrepo will not skip rpm stat by default
There is also CLI option which can override this behaviour if needed.

Related: https://pagure.io/koji/issue/3829
2023-07-18 11:31:07 +02:00
Tomas Kopecek
030e37e1fb fix tests/flake8 2023-07-04 09:09:57 +02:00
Mike McLean
5fb2dfa8ca avoid using fstrings in client code 2023-07-04 08:55:12 +02:00
Mike McLean
61675aec2f be pickier about keyword args and add a note about them in usage 2023-07-04 08:55:12 +02:00
Mike McLean
d1ff157086 cli: streamline python/json options in call command 2023-07-04 08:55:12 +02:00