Commit graph

1393 commits

Author SHA1 Message Date
Ken Dreyer
ddb46d744b hub: improve inheritance priority collision error message
When users set multiple parents to the same priority in
setInheritanceData(), we raise an error because this is an invalid
configuration.

Improve the error message to make it easier for humans to understand the
problem and explain which tag ID ints are parents or children.
2022-03-21 14:39:05 +01:00
Mike McLean
f89794ce07 also raise 400 errors when we can't read the client upload stream 2022-03-21 14:34:30 +01:00
Mike McLean
37b108bf24 fix indent 2022-03-21 14:34:30 +01:00
Mike McLean
3ece0d8e05 return 400 codes when client fails to send a full request
Fixes: https://pagure.io/koji/issue/3268
2022-03-21 14:34:30 +01:00
Jana Cupova
dc58186d1f Remove taskReport API call
Fixes: https://pagure.io/koji/issue/3032
2022-03-21 14:28:29 +01:00
Tomas Kopecek
01c0f91d62 update docstring 2022-02-07 10:10:23 +01:00
Tomas Kopecek
66a94f045e api: checksum_type filter for listArchives
Related: https://pagure.io/koji/issue/3227
2022-02-07 10:10:23 +01:00
Tomas Kopecek
6aaa6b3248 rename option 2022-02-07 10:07:26 +01:00
Tomas Kopecek
e7db7d8b53 db: logging option for cursor
In some cases we expect query to fail (LOCK NOWAIT) but it still
clutters the logs. Option for not logging cursor-level errors.

Fixes: https://pagure.io/koji/issue/2837
2022-02-07 10:01:21 +01:00
Tomas Kopecek
a02550c248 hub: whitelist arch-agnostic logs for image tasks
Related: https://pagure.io/koji/issue/3229
2022-02-07 09:45:01 +01:00
Tomas Kopecek
edad8d4461 hub: fix Task.lock for correctly closed tasks
Fixes: https://pagure.io/koji/issue/3220
2022-02-02 17:07:02 +01:00
Jana Cupova
1252129136 Add description for permissions
Fixes: https://pagure.io/koji/issue/335
2022-01-31 10:21:58 +01:00
Igor Raits
052afc5a14 Provide meaningful message when importing image files fails
References: https://pagure.io/koji/issue/3221
Signed-off-by: Igor Raits <igor.raits@gmail.com>
2022-01-31 10:17:37 +01:00
Ken Dreyer
241840bbda hub: default with_blocked=True in listPackages
Commit 355c713044 introduced a regression
in the listPackages RPC, where it no longer returns blocked packages by
default.

To restore backwards compatibility, set the with_blocked argument to
True by default.
2022-01-07 12:37:02 +01:00
Mike McLean
7615b8aa85 actually execute the insert 2021-12-21 14:46:15 +01:00
Mike McLean
dee3405eb7 add explicit error case 2021-12-21 14:46:15 +01:00
Mike McLean
2bc2cce3c8 fix table name 2021-12-21 14:46:15 +01:00
Mike McLean
529eada38d require table arg in name_or_id_clause() to simplify code 2021-12-21 14:46:15 +01:00
Mike McLean
920f9b01be use name_or_id_clause in get_channel 2021-12-21 14:46:15 +01:00
Mike McLean
bcf423362b use name_or_id_clause in get_external_repos 2021-12-21 14:46:15 +01:00
Mike McLean
c87eba6bcd use name_or_id_clause in get_build_targets 2021-12-21 14:46:15 +01:00
Mike McLean
f87d1c3479 use name_or_id_clause in get_host 2021-12-21 14:46:15 +01:00
Mike McLean
5ee9c7396a use name_or_id_clause in get_tag 2021-12-21 14:46:15 +01:00
Mike McLean
98d3abd01a add name_or_id_clause function 2021-12-21 14:46:15 +01:00
Tomas Kopecek
dd1843207b Don't fail on missing buildroot tag
Fixes: https://pagure.io/koji/issue/3185
2021-12-21 12:32:01 +01:00
Jana Cupova
355c713044 Taginfo page shows packages with/without blocked
Fixes: https://pagure.io/koji/issue/1350
2021-12-20 09:08:47 +01:00
Jana Cupova
18b136d386 Remove rename-channel CLI and use editChannel in renameChannel
Fixes: https://pagure.io/koji/issue/3035
2021-12-15 15:28:19 +01:00
Jana Cupova
c7fd26aeda Deprecated remove-channel CLI and removeChannel API
Fixes: https://pagure.io/koji/issue/1206
2021-12-15 15:26:11 +01:00
Jana Cupova
d80f956dc1 RLIMIT_OFILE alias for RLIMIT_NOFILE
Fixes: https://pagure.io/koji/issue/3101
2021-12-13 17:25:43 +01:00
Jana Cupova
f4616d4ee2 Deprecated hub option DisableGSSAPIProxyDNFallback
Fixes: https://pagure.io/koji/issue/3100
2021-12-13 17:20:22 +01:00
Jana Cupova
178cb8a398 Deprecated force option in groupPackageListRemove call
Fixes: https://pagure.io/koji/issue/3131
2021-12-13 16:38:18 +01:00
Jana Cupova
74ac826a87 Add limits on name values
Fixes: https://pagure.io/koji/issue/2117
2021-12-09 07:11:57 +01:00
Ken Dreyer
2418d91473 hub: document getBuildLogs method
Update the getBuildLogs RPC docstring to describe the "build"
parameters and the return type. Highlight that this call is only
relevant for completed builds, not incomplete builds.
2021-12-07 14:55:09 -05:00
Ken Dreyer
73781b6a9c hub: fix spelling in comments for archive handling
Fix some spelling errors in the comments for the code that handles
archives.
2021-12-02 12:30:59 -05:00
Ken Dreyer
2d648945f2 hub: document untagBuild method
Update the untagBuild RPC docstring to describe all parameters.
2021-11-15 09:56:31 +01:00
Jana Cupova
4f2506cc81 Update error message in make task when channel not exist
Fixes: https://pagure.io/koji/issue/3125
2021-11-15 09:06:21 +01:00
Mike McLean
ab9b021c07 naming/docstring adjustments 2021-11-07 09:45:20 +00:00
Mike McLean
3947c46af9 move logic into get_next_build() 2021-11-07 09:45:19 +00:00
Tomas Kopecek
59315852a2 getNextRelease race condition retry
Fixes: https://pagure.io/koji/issue/3079
2021-11-07 09:45:19 +00:00
Jana Cupova
ea695543f2 Add strict option to listTagged, listTaggedRPMS, listTaggedArchives
Fixes: https://pagure.io/koji/issue/1477
2021-11-04 12:16:43 +00:00
Jana Cupova
1a1f71bdbb Deprecated force option in groupReqListRemove call
Fixes: https://pagure.io/koji/issue/1164
2021-11-04 12:15:23 +00:00
Jana Cupova
246bad05d6 Logging warning messages about deletedBuild or deletedRPMSig
Fixes: https://pagure.io/koji/issue/3018
2021-11-04 12:08:58 +00:00
Tomas Kopecek
038a2f1850 rename ProxyAuthType -> AllowProxyAuthType 2021-11-04 12:07:05 +00:00
Tomas Kopecek
24e5c0cb45 further fixes (will be squashed before merge) 2021-11-04 12:07:05 +00:00
Yuming Zhu
d367420c75 [hub] getBuildType: ensure id exists in buildinfo dict
if there is no id, call `get_build` to fetch the build data (n-v-r inside will be used or the data is invalid)

fixes: #3091
2021-11-04 11:55:45 +00:00
Ken Dreyer
8d9633cff7 hub: document packageListRemove method
Update the packageListRemove RPC docstring to describe all parameters
and the return value.

Remove the statement about prefering the block and unblock functions.
In many cases it's simpler and faster to put fewer packages into a tag
than to block many extraneous packages in a tag.
2021-10-25 13:13:35 -04:00
Ken Dreyer
9ad3637cae hub: document listPackages method
Update the listPackages RPC docstring to describe all parameters and the
return value.
2021-10-21 12:59:20 +02:00
Tomas Kopecek
ba2e1e520b basic security checks with bandit
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Jana Cupova
d3ef00fff4 Dist-repo with write-signed-rpm option
Fixes: https://pagure.io/koji/issue/2806
2021-10-18 13:00:11 +02:00
Jana Cupova
46411b25a3 queryRPMSigs accepts RPM ID, NVRA and dict
Fixes: https://pagure.io/koji/issue/3061
2021-10-13 14:48:51 +02:00