Commit graph

309 commits

Author SHA1 Message Date
Jana Cupova
bbd841c0d4 Increase hub unit tests 03-02 2023-03-29 13:49:32 +02:00
Jana Cupova
fe0bf6dc86 Fix pkglist_add when extra_arches is None
Fixes: https://pagure.io/koji/issue/3744
2023-03-23 13:23:42 +01:00
Tomas Kopecek
7ceffe391c unify relative imports 2023-03-01 11:46:24 +01:00
Tomas Kopecek
b0e91e378c Move db/auth to kojihub module
Related: https://pagure.io/koji/issue/3666
2023-03-01 11:46:24 +01:00
Tomas Kopecek
90eb4138e2 fix test 2023-02-14 16:23:37 +01:00
Jana Cupova
d4c5d95968 Move class out of function and create to_hexdigest function 2023-02-06 13:17:33 +01:00
Jana Cupova
a79375789d Rewrite generator to IOStream 2023-02-06 13:17:33 +01:00
Jana Cupova
35b3e51fcc Use strict for rpm without signed copies or checksums + small review fixes 2023-02-06 13:17:33 +01:00
Jana Cupova
21a4cc4d70 Fix review 2023-02-06 13:17:33 +01:00
Jana Cupova
9bf31de75f Add checksum API
Fixes: https://pagure.io/koji/issue/3627
2023-02-06 13:17:33 +01:00
Jana Cupova
f3a25af238 Reset build processor values with specific value only
Fixes: https://pagure.io/koji/issue/3667
2023-01-25 11:17:23 +01:00
Jana Cupova
7515ee93a7 Next rewrite Select/Update queries
Fixes: https://pagure.io/koji/issue/3633
2023-01-09 11:05:17 +01:00
Tomas Kopecek
965153c7e9 basic tests for kojixmlrpc 2022-12-08 13:42:02 +01:00
Tomas Kopecek
e6e618d0bb fix tests 2022-12-08 13:37:32 +01:00
Tomas Kopecek
556dddc9d0 wip 2022-12-08 10:04:31 +01:00
Tomas Kopecek
4916b368a5 wip 2022-12-08 09:58:14 +01:00
Tomas Kopecek
06350fa230 wip 2022-12-08 09:58:12 +01:00
Jana Cupova
fa7319c3b1 Fix fields type and dict of query.execute 2022-12-08 09:22:17 +01:00
Jana Cupova
a8dd469091 Replace _multiRow, _singleRow, _singleValue with QP
Fixes: https://pagure.io/koji/issue/3581
2022-12-08 09:22:17 +01:00
Jana Cupova
78dee69de4 Create DeleteProcessor class and use it
Fixes: https://pagure.io/koji/issue/3580
2022-12-08 09:18:55 +01:00
Tomas Kopecek
4c55498849 kojihash test 2022-12-05 13:32:26 +01:00
Jana Cupova
7897628159 Add active sessions web page
Fixes: https://pagure.io/koji/issue/3396
2022-11-10 10:17:51 +01:00
Tomas Kopecek
31dbf67960 readability fixes 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
Tomas Kopecek
2daa71614e fix tests according to pytests warnings 2022-10-24 10:40:50 +02:00
Jana Cupova
3999667a8c Fix Makefile for RHEL7 2022-10-11 14:29:05 +02: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
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
Jana Cupova
f31d92df71 Consistence pre/postPackageListChange sequence
Fixes: https://pagure.io/koji/issue/1472
2022-07-25 11:26:09 +02:00
Tomas Kopecek
22882bff32 fix tests 2022-07-21 13:57:44 +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
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
83d4617493 Increase hub unit tests 2022-05-31 09:54:25 +02:00
Jana Cupova
1027854ad5 Fix wrapper-rpm unit test 2022-05-10 09:52:55 +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
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
60add4a88a test 2022-05-02 07:09:51 +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
d57c8fa99d add unit tests 2022-04-28 10:43:57 +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
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