Commit graph

827 commits

Author SHA1 Message Date
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
Tomas Kopecek
4c4f2c0496 fix tests 2022-11-10 11:07:03 +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
Ken Dreyer
64a856f62b kojikamid: write buildrequires files as bytes
Fix a TypeError when downloading buildrequires files on Python 3.
base64.b64decode() returns bytes, so we must open the file for writing
in bytes mode, not text mode.

Add a unit test that verifies this behavior.
2022-11-09 16:50:17 -05:00
Tomas Kopecek
58fb7c7ee6 fix tests 2022-11-08 12:25:10 +01:00
Jana Cupova
40de4f3df0 Rewrite Query DB to Processors in auth.py
Fixes: https://pagure.io/koji/issue/3559
2022-11-08 12:11:34 +01:00
Tomas Kopecek
42795f1d10 fix tests 2022-11-07 14:37:44 +01:00
Tomas Kopecek
be554fef99 cli: drop nvr sorting from list-builds
We've never prperly supported this option as it would need rpm compare
algorithm and there is also no other place in koji where we compare
NVRs. More sense makes to order builds by id (age) by default.

Related: https://pagure.io/koji/issue/3416
2022-11-07 14:34:05 +01:00
Tomas Kopecek
08809355fa Error on list-tagged --sigs --paths without mount
Related: https://pagure.io/koji/issue/934
2022-11-07 09:59:06 +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
Jana Cupova
590ede88c7 Increase list-tag-inheritance unit tests
Fixes : https://pagure.io/koji/issue/3545
2022-10-31 13:57:43 +01:00
Jana Cupova
4527c054c6 Add regex --filter and --skip option for download-task
Fixes: https://pagure.io/koji/issue/3551
2022-10-31 13:51:07 +01:00
Tomas Kopecek
22b781ad58 kojid: fix restartHosts on py 3.5+
Related: https://pagure.io/koji/issue/3442
2022-10-31 11:58:37 +01:00
Jana Cupova
583056140e CLI list-hosts fix when list of channels is empty
Fixes: https://pagure.io/koji/issue/3532
2022-10-26 14:17:49 +02:00
Tomas Kopecek
2daa71614e fix tests according to pytests warnings 2022-10-24 10:40:50 +02:00
Jana Cupova
f11628000e CLI edit-channel set default value for None and error msg to stderr.
Fixes: https://pagure.io/koji/issue/3534
2022-10-24 10:02:56 +02:00
Jana Cupova
cd136ad537 Increase unit tests
Fixes: https://pagure.io/koji/issue/3527
2022-10-13 08:57:02 +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
d2c580a3f8 CLI download-task more specific info for not CLOSED tasks.
Fixes: https://pagure.io/koji/issue/3487
2022-10-07 14:31:07 +02:00
Jana Cupova
92590ce573 Increase CLI unit tests
Fixes: https://pagure.io/koji/issue/3527
2022-10-05 13:26:13 +02:00
Jana Cupova
293f7508b4 Download all files, skip downloaded files
Fixes: https://pagure.io/koji/issue/3499
2022-10-03 11:42:04 +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
589e49a663 www: more generic taskinfo parameter handling
Related: https://pagure.io/koji/issue/3454
2022-09-22 12:10:03 +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
cb5515aca4 Order download tasks and download only first srpm
Fixes: https://pagure.io/koji/issue/3461
2022-08-25 13:33:23 +02:00
Jana Cupova
4f5b69f8a7 Increase unit tests 2022-08-23 09:26:13 +02:00
Jana Cupova
c1f7b9db04 Allow rewrite src.rpm files in download-task
Fixes: https://pagure.io/koji/issue/3461
2022-08-19 06:42:44 +02:00
Jana Cupova
f017ec28f6 Fix arch in download-task
Fixes: https://pagure.io/koji/issue/3456
2022-08-18 11:12:17 +02:00
Jana Cupova
310331c3f7 CLI: More details when files conflict in download-task
Fixes: https://pagure.io/koji/issue/3433
2022-08-18 10:10:13 +02:00
Jana Cupova
9287f672ee Parse_arches allows string and list of arches
Fixes: https://pagure.io/koji/issue/3434
2022-08-17 10:42:49 +02:00
Tomas Kopecek
4e6aca0bd0 exception-free watch_builds
Related: https://pagure.io/koji/issue/2981
2022-08-01 15:33:29 +02:00
Otto Urpelainen
f48d6d2b71 Add unit test for buildLabel 2022-08-01 15:33:29 +02:00
Jana Cupova
44f5ebaabb Authtype as enum and getSessionInfo prints authtype name
Fixes: https://pagure.io/koji/issue/3436
2022-07-26 14:36:00 +02:00
Jana Cupova
f31d92df71 Consistence pre/postPackageListChange sequence
Fixes: https://pagure.io/koji/issue/1472
2022-07-25 11:26:09 +02:00
Jana Cupova
c1e669111f www: archivelist and rpmlist raise error when imageID is unknown
Fixes: https://pagure.io/koji/issue/3381
2022-07-25 11:18:09 +02:00
Tomas Kopecek
22882bff32 fix tests 2022-07-21 13:57:44 +02:00
Tomas Kopecek
9e741bfb9e beautify logged commands issued by koji
Related: https://pagure.io/koji/issue/929
2022-07-19 13:23:57 +02:00
Jana Cupova
8be1521a6d Fix download-task all files in build/buildArch method tasks 2022-07-01 09:50:01 +02:00
Jana Cupova
26cdb3a8af CLI: Remove --paths option from list-buildroot
Fixes: https://pagure.io/koji/issue/3106
2022-06-30 08:56:17 +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