Commit graph

1420 commits

Author SHA1 Message Date
Jana Cupova
263266fe85 Fix query with LIKE string in getAverageBuildDirection
Fixes: https://pagure.io/koji/issue/1128
2022-08-09 12:04:14 +02:00
Tomas Kopecek
80318fc0cf Correct getAverageDuration values for most GC builds
Fixes: https://pagure.io/koji/issue/1128
2022-08-01 09:37:42 +02:00
Tomas Kopecek
dfce01a59b hub: check release/version format in cg_import
Related: https://pagure.io/koji/issue/3418
2022-07-25 11:31:57 +02:00
Jana Cupova
f31d92df71 Consistence pre/postPackageListChange sequence
Fixes: https://pagure.io/koji/issue/1472
2022-07-25 11:26:09 +02:00
Tomas Kopecek
d2b67465fc expect dict for chainmaven builds
Related: https://pagure.io/koji/issue/3443
2022-07-20 14:02:08 +02:00
Tomas Kopecek
03f3d92a00 more verbose default policy denials
Related: https://pagure.io/koji/issue/3397
2022-07-11 09:47:13 +02:00
Jana Cupova
52026bcfcb Remove deprecated remove-channel/removeChannel
Fixes: https://pagure.io/koji/issue/3356
2022-06-30 08:53:43 +02:00
Jana Cupova
8d3bf008ac Use compression_type in listArchiveFiles
Fixes: https://pagure.io/koji/issue/855
2022-06-27 15:00:32 +02:00
Tomas Kopecek
94991e0de7 fix group cloning 2022-06-27 14:58:30 +02:00
Tomas Kopecek
cb1ebe1d30 unit tests 2022-06-27 14:58:30 +02:00
Tomas Kopecek
165694004b server-side clonetag
Related: https://pagure.io/koji/issue/3307
2022-06-27 14:58:30 +02:00
Jana Cupova
beba721d28 Rename log to cg_import.log and add successful import log message.
Fixes: https://pagure.io/koji/issue/3414
2022-06-22 15:44:36 +02:00
Jana Cupova
1c2438f24e postgresql hub: date_part instead of EXTRACT
Fixes: https://pagure.io/koji/issue/3366
2022-06-14 12:14:05 +02:00
Jana Cupova
6f8434e5eb remove force option from groupPackageListRemove hub call
Fixes: https://pagure.io/koji/issue/3151
2022-06-07 16:18:04 +02:00
Jana Cupova
83d4617493 Increase hub unit tests 2022-05-31 09:54:25 +02:00
Jana Cupova
56d4ec8e21 Add admin check when priority has negative value in wrapperRPM
Fixes: https://pagure.io/koji/issue/3320
2022-05-09 14:08:03 +02:00
Jana Cupova
d67c36151b Fix input validation
Fixes: https://pagure.io/koji/issue/3319
2022-05-09 14:05:52 +02:00
Jana Cupova
75d545e740 Add extra param to listTagged*
Fixes: https://pagure.io/koji/issue/3110
2022-05-09 14:04:24 +02:00
Tomas Kopecek
f72f033465 fix flake8 2022-05-04 15:25:36 +02:00
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