Commit graph

8014 commits

Author SHA1 Message Date
Tomas Kopecek
45c290dd74 PR#4387: repo requests web ui
Merges #4387
https://pagure.io/koji/pull-request/4387

Fixes: #4289
https://pagure.io/koji/issue/4289
repo requests web ui
2025-06-12 13:24:20 +02:00
Mike McLean
c6e368200e html fixes 2025-06-12 13:24:12 +02:00
Mike McLean
c04784cb14 fix malformed html element 2025-06-12 13:24:12 +02:00
Mike McLean
e8b02860fb fix missing tr element 2025-06-12 13:24:12 +02:00
Mike McLean
cd36bb2826 test_pages updates
This fixes issues with test_pages that I found while checking
coverage. The environ dict was recycled across each call in the loop,
but those calls can modify it, leaking data from one pass to another.
Also, the mocking for _getServer was not placing the session in the
environ, which was causing the tests to miss some cases.
2025-06-12 13:24:12 +02:00
Mike McLean
c7a5622934 update test_pages to cover new code 2025-06-12 13:24:12 +02:00
Mike McLean
c8ae2835fa fix json handling in template 2025-06-12 13:24:12 +02:00
Mike McLean
cc4d88e99e install svg file 2025-06-12 13:24:12 +02:00
Mike McLean
52cc8b9d41 flake8 2025-06-12 13:24:12 +02:00
Mike McLean
9163e476cb fix None display in query form 2025-06-12 13:24:12 +02:00
Mike McLean
1d929d0d71 update call data for unit test 2025-06-12 13:24:12 +02:00
Mike McLean
140aeacda0 port new templates to jinja 2025-06-12 13:24:12 +02:00
Mike McLean
a2f9fbfd06 typo 2025-06-12 13:24:12 +02:00
Mike McLean
357587a57c repo requests web ui
* new page for request details
* new page for querying requests
* add links in taginfo and taskinfo pages
* show more data in repoinfo page
2025-06-12 13:24:12 +02:00
Tomas Kopecek
573bd41654 PR#4383: handle cross-volume draft symlinks
Merges #4383
https://pagure.io/koji/pull-request/4383

Fixes: #4386
https://pagure.io/koji/issue/4386
Promoting a draft build can leave broken symlink at original draft location
2025-06-12 13:23:08 +02:00
Mike McLean
456263b109 clean up test dir 2025-06-12 13:22:59 +02:00
Mike McLean
88efb9dbef typo 2025-06-12 13:22:59 +02:00
Mike McLean
12f9d239df unrelated docs typo 2025-06-12 13:22:59 +02:00
Mike McLean
8b98a949f7 update volume docs 2025-06-12 13:22:59 +02:00
Mike McLean
ad071502c1 update tests for add_volume 2025-06-12 13:22:59 +02:00
Mike McLean
51c130e290 more unit tests 2025-06-12 13:22:59 +02:00
Mike McLean
cd31945637 don't require new_binfo 2025-06-12 13:22:59 +02:00
Mike McLean
40d7a30f1b require volume toplink to exist 2025-06-12 13:22:59 +02:00
Mike McLean
3a7656015f check/create volume toplink in add_volume 2025-06-12 13:22:59 +02:00
Mike McLean
a7bc882aa5 initial fix 2025-06-12 13:22:59 +02:00
Mike McLean
cf95af0992 test showing an issue with cross volume promotion links 2025-06-12 13:22:59 +02:00
Tomas Kopecek
fca44b55b2 PR#4355: listUsers excepts userType as int, list and Nonetype
Merges #4355
https://pagure.io/koji/pull-request/4355

Fixes: #4325
https://pagure.io/koji/issue/4325
listUsers doesn't behave according to docs
2025-06-02 11:21:41 +02:00
Jana Librova
037d9e468e listUsers excepts userType as int, list and Nonetype
Fixes: https://pagure.io/koji/issue/4325
2025-06-02 11:21:21 +02:00
Tomas Kopecek
b2eb8d94ee PR#4403: schemas: wsl file suffix
Merges #4403
https://pagure.io/koji/pull-request/4403

Fixes #4404
https://pagure.io/koji/issue/4404
2025-06-02 10:17:45 +02:00
Simon de Vlieger
d16c16a668
schemas: wsl file suffix
The "new" WSL images need a WSL suffix. Currently this is managed on a
per-instance basis but it's a bit of work to sync across them.

Instead add it be default.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
2025-05-30 21:09:54 +02:00
Tomas Kopecek
40e6286bd6 PR#4391: Less log noise for empty or invalid requests
Merges #4391
https://pagure.io/koji/pull-request/4391

Fixes #4394
https://pagure.io/koji/issue/4394
2025-05-20 14:31:04 +02:00
Mike McLean
733294c87d Less log noise for empty or invalid requests 2025-05-20 14:30:58 +02:00
Tomas Kopecek
c44a33ceb6 PR#4370: adjust upload offset and overwrite logic
Merges #4370
https://pagure.io/koji/pull-request/4370

Fixes: #4371
https://pagure.io/koji/issue/4371
Surprising upload failure on koji.fp.o
2025-05-20 14:30:09 +02:00
Mike McLean
b71e690b94 drop unused import in test 2025-05-20 14:30:01 +02:00
Mike McLean
85c1a1b2c9 adjust upload offset and overwrite logic 2025-05-20 14:30:01 +02:00
Tomas Kopecek
4f00e8e245 PR#4219: Add archive types for erofs and squashfs
Merges #4219
https://pagure.io/koji/pull-request/4219

Fixes: #4218
https://pagure.io/koji/issue/4218
koji doesn't know to archive erofs images produced by Kiwi
2025-05-20 14:28:39 +02:00
Davide Cavalca
eed5c7377e Add archive types for erofs and squashfs
Fixes: #4218
2025-05-20 14:28:32 +02:00
Tomas Kopecek
3f58c4c6b8 PR#4380: Restart kojivmd in same way as kojid
Merges #4380
https://pagure.io/koji/pull-request/4380

Fixes #4381
https://pagure.io/koji/issue/4381
2025-05-20 14:14:21 +02:00
Tomas Kopecek
24bfa3e335 Restart kojivmd in same way as kojid
Related: https://pagure.io/koji/issue/4381
2025-05-20 14:14:13 +02:00
Tomas Kopecek
83b4fb5aeb PR#4388: kojikamid fixes
Merges #4388
https://pagure.io/koji/pull-request/4388

Fixes #4398
https://pagure.io/koji/issue/4398
2025-05-20 10:34:12 +02:00
Tomas Kopecek
c863895c3e kojikamid fixes
defusedxml needn't be available in older cygwin envs
typo in md5constructor usage

Related: https://pagure.io/koji/issue/4398
2025-05-20 10:33:04 +02:00
Tomas Kopecek
e17671c51c PR#4316: ensure repos dir
Merges #4316
https://pagure.io/koji/pull-request/4316

Fixes: #4315
https://pagure.io/koji/issue/4315
In clean installation topdir/repos is not created
2025-05-19 09:48:28 +02:00
Mike McLean
274395a7c5 fix unit test 2025-05-19 09:48:20 +02:00
Mike McLean
7e71f18212 ensure repos dir
Fixes https://pagure.io/koji/issue/4315
2025-05-19 09:48:20 +02:00
Tomas Kopecek
2a7585bc99 PR#4389: set user of kojikamid service to Administrator
Merges #4389
https://pagure.io/koji/pull-request/4389

Fixes: #4390
https://pagure.io/koji/issue/4390
kojikamid service created by cygrunsrv isn't owned by Administrator
2025-05-19 09:40:27 +02:00
Yuming Zhu
cdf14ac781 set user of kojikamid service to Administrator 2025-05-15 16:21:53 +00:00
Tomas Kopecek
c057c290d0 PR#4346: port kojiweb to jinja2
Merges #4346
https://pagure.io/koji/pull-request/4346

Fixes: #4361
https://pagure.io/koji/issue/4361
kojiweb jinja2 port
2025-05-07 14:07:12 +02:00
Mike McLean
132a734347 flake8 2025-05-07 14:07:04 +02:00
Mike McLean
8bc1c1b466 fix bandit B704 2025-05-07 14:07:04 +02:00
Mike McLean
2270a85687 drop custom coverage config 2025-05-07 14:07:04 +02:00