Commit graph

1430 commits

Author SHA1 Message Date
Tomas Kopecek
31dbf67960 readability fixes 2022-11-04 12:37:00 +01:00
Jana Cupova
d0415c57b3 Fixes 2022-11-04 12:37:00 +01:00
Tomas Kopecek
eab63494d0 Fix few typos, reordering according to defintion 2022-11-04 12:37:00 +01:00
Jana Cupova
b9166945f5 Rewrite DB query to Procesors
Fixes: https://pagure.io/koji/issue/3511
Fixes: https://pagure.io/koji/issue/3493
2022-11-04 12:37:00 +01:00
Jana Cupova
3a2894f0f1 Allow buildTagID and destTagID as string and dict in getBuildTargets
Fixes: https://pagure.io/koji/issue/3549
2022-11-02 14:22:37 +01:00
Jana Cupova
1cfe6538db Move database classes and functions from kojihub.py to koji/db.py
Move QueryProcessor, InsertProcessor, UpdateProcessor,
BulkInsertProcessor, _applyQueryOpts, get_event, _dml,
_fetchMulti, _fetchSingle, _singleValue, _multiRow, _singleRow

Update koji-sweep-db script to DB Processors

Fixes: https://pagure.io/koji/issue/3466
2022-10-11 14:29:05 +02:00
Jana Cupova
0478d2f040 Return data when query execute asList with transform
Fixes: https://pagure.io/koji/issue/3512
2022-09-26 09:57:35 +02:00
Tomas Kopecek
d1a9105179 packaging: Block py3 compilation in py2 env
Related: https://pagure.io/koji/issue/3485
2022-09-22 14:10:31 +02:00
Jana Cupova
3fc402d5f2 Use nextval function instead of query 'SELECT nextval'
Fixes: https://pagure.io/koji/issue/3483
2022-09-05 10:42:11 +02:00
Tomas Kopecek
59f7f8642a fix flake8 errors
Related: https://pagure.io/koji/issue/3480
2022-08-29 15:03:05 +02:00
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