Commit graph

1401 commits

Author SHA1 Message Date
Mike McLean
c5ca8f39b9 log content-length when we get an error reading request
Fixes https://pagure.io/koji/issue/3288
2022-05-04 15:19:38 +02:00
Jana Cupova
f42c1aa863 Add as_string option to showOpts for raw string or dict output
Fixes: https://pagure.io/koji/issue/3312
2022-05-03 12:47:47 +02:00
Tomas Kopecek
04da1d2db3 additional fixes 2022-05-02 06:55:46 +02:00
Jana Cupova
9bfefe782e Hub, plugins and tools inputs validation
Fixes: https://pagure.io/koji/issue/3319
2022-05-02 06:55:44 +02:00
Mike McLean
fcce0b9649 add strict option to getRPMHeaders
related: https://pagure.io/koji/issue/3178
2022-04-28 10:43:57 +02:00
Jana Cupova
d861ad866c Add log file for match_rpm warnings in cg_import
Fixes: https://pagure.io/koji/issue/2865
2022-04-26 13:22:33 +02:00
Jana Cupova
a0b8ec8bfd Use builtins.type when option is called type in readTaggedRPMS
Fixes: https://pagure.io/koji/issue/3283
2022-03-24 13:05:30 +01:00
Tomas Kopecek
3131a64178 doc: fix readTaggedRPMs rpmsigs option description
Related: https://pagure.io/koji/issue/3231
2022-03-23 14:02:29 +01:00
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