Commit graph

580 commits

Author SHA1 Message Date
Mike McLean
4e407c7f1b fixes 2025-05-07 14:07:03 +02:00
Mike McLean
0321b7128b Unit tests, fixes, and cleanup 2025-05-07 14:07:03 +02:00
Mike McLean
402f319283 rename template files to .html.j2 2025-05-07 14:07:03 +02:00
Mike McLean
dee1127ce8 Initial jinja2 porting work 2025-05-07 14:07:03 +02:00
Tomas Kopecek
f4328d5969 Fix tasks url creation
Related: https://pagure.io/koji/issue/4302
2025-03-21 15:04:03 +01:00
Mike McLean
28b9ef7c64 avoid duplicate environ.get call 2025-02-25 11:10:45 -05:00
Mike McLean
af18c59623 work around parse_qs behavior in python < 3.11 2025-02-24 12:17:24 -05:00
Tomas Kopecek
ef61ba620f www: fix for non-existent target_info
Related: https://pagure.io/koji/issue/4078
2024-10-31 10:50:40 -04:00
Mike McLean
4eecaddb47 drop cgi import
Fixes https://pagure.io/koji/issue/3966
2024-10-29 22:08:58 -04:00
Mike McLean
51f236dabd no hyperlink in title 2024-10-25 11:24:14 -04:00
Mike McLean
6629adff0e use url quoting for rpm url arg 2024-09-30 10:46:29 -04:00
Mike McLean
1fa0664452 fix tasks description 2024-09-30 10:46:29 -04:00
Mike McLean
c948a85ad4 avoid escaping theme includes 2024-09-30 10:46:29 -04:00
Mike McLean
05155bf9cf fix unit tests 2024-09-30 10:46:29 -04:00
Mike McLean
b392fadf60 rework escaping in web ui 2024-09-30 10:46:26 -04:00
FeRD (Frank Dana)
a3bf074d0d De-tabify .chtml files 2024-09-18 09:17:35 +02:00
FeRD (Frank Dana)
3f0a596846 Reformat to 4-space indents throughout
watchlogs.js was a mess of mixed indentation, with some sections
using 8-column tabs with 4-column indents, and others using spaces
for indentation throughout. As a result, the formatting was
erratic, particularly when viewed with anything other than an 8-column
tab width.
2024-09-18 09:17:35 +02:00
Jana Cupova
3725053b33 taskinfo CLI and webUI info message why output is not in the list
Fixes: https://pagure.io/koji/issue/4074
2024-07-24 09:29:04 +02:00
Jana Cupova
9b27e267da Drop part of code related to host without update_ts
Fixes: https://pagure.io/koji/issue/4085
2024-05-06 11:23:26 +02:00
Mike McLean
2af702b71c fix formatting of rpm in title 2024-03-19 10:53:24 +01:00
Tomas Kopecek
40db49a830 Show only active channels at clusterhealth
Related: https://pagure.io/koji/issue/4010
2024-02-21 15:33:43 +01:00
Yu Ming Zhu
f41b8c70a7 Bandit [B411]: use defusedxml to prevent remote XML attacks
- putting xmlrpc stuff into koji.xmlrpcplus
- adding koji.xmlrpcplus.xmlrpc_server to refer
- replacing refs of original xmlrpc.client.dumps to enhanced
  koji.xmlrpcplus.dumps

fixes: #3964
2024-02-02 09:08:18 +01:00
Mike McLean
f255881082 web: add some handy links for module builds 2024-02-02 09:03:47 +01:00
Mike McLean
ce32f58b9a show promotion info in ui 2024-01-05 10:01:01 +00:00
Mike McLean
134360df2e mark draft rpms in web ui lists 2024-01-05 10:00:44 +00:00
Mike McLean
71898e43f4 show basic draft info in web ui 2024-01-05 10:00:43 +00:00
alisboav
b178d6b36c Display two decimal points for the task load in hosts page 2023-10-30 09:09:52 +01:00
Tomas Kopecek
0c58cd954d Retrieve task_id for older OSBS builds
Related: https://pagure.io/koji/issue/3906
2023-10-23 14:24:16 +02:00
Tomas Kopecek
3644da0741 Sort channels on hosts page
Related: https://pagure.io/koji/issue/3907
2023-10-23 13:56:42 +02:00
Mike McLean
325ecffc17 use host.update_ts in kojiweb/hostinfo 2023-10-03 15:23:02 +02:00
Tomas Kopecek
e421f0bcb7 doc: More XMLRPC-related docs
Related: https://pagure.io/koji/issue/1109
2023-09-20 12:04:54 +02:00
Mike McLean
4e5841bbf5 include new template 2023-07-04 08:54:32 +02:00
Mike McLean
77aeee7e6b better handling of deleted tags in kojiweb
1. notifications might reference deleted tags
2. tasks might reference deleted tags
3. handle deleted tags in taskinfo page
2023-07-04 08:54:32 +02:00
Tomas Kopecek
f6c72b8ac8 Fix duplicate build link on CG taskinfo page
Related: https://pagure.io/koji/issue/3856
2023-06-27 12:37:54 +02:00
Mike McLean
9321ffebec avoid using getLastHostUpdate 2023-05-16 13:14:16 +02:00
Jana Cupova
de192e10f1 Add repoID in listBuildroots and create repoinfo command
Add repoID param in listBuildroots and show result in repoInfo
Create new command repoinfo which provides equivalent info as repoInfo
Add number of buildroots related to repo in repoinfo page

Fixes: https://pagure.io/koji/issue/2549
2023-04-03 15:20:18 +02:00
Tomas Kopecek
6e1ae7231e replace deprecated distutils
distutils will get removed in python 3.12. It is usage is now replaced
by sysconfig. For py2 version code stays in specfile.

https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated

Related: https://pagure.io/koji/issue/3514
2023-01-16 12:36:04 +01:00
Tomas Kopecek
f327844d4a www: fix target link in taskinfo page
Related: https://pagure.io/koji/issue/3643
2023-01-09 11:08:52 +01:00
Jana Cupova
1c21f9589e Change canceled icon color from red to orange
Fixes: https://pagure.io/koji/issue/3606
2022-12-08 13:42:42 +01:00
Jana Cupova
7b53236925 Use inspect.getfullargspec instead of getargspec on hub and web
Fxes: https://pagure.io/koji/issue/3591
2022-11-20 09:32:23 +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
Jana Cupova
3dfa3854d8 Fix arch filter in list of hosts webUI
Fixes: https://pagure.io/koji/issue/3491
2022-09-23 12:01:05 +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
611c073419 Fix dist-repo repo.json url
Fixes: https://pagure.io/koji/issue/3468
2022-09-12 15:45:34 +02:00
Tomas Kopecek
9d289bc336 convert data to string in escapeHTML first
Related: https://pagure.io/koji/issue/3449
2022-08-17 11:16:13 +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
6d766bd412 www: Set SameSite and Set-Cookie2
Fixes: https://pagure.io/koji/issue/3389
2022-07-25 11:21:45 +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
Jana Cupova
3371b8f029 Order channels at hosts page
Fixes: https://pagure.io/koji/issue/3367
2022-06-20 09:31:53 +02:00
Jana Cupova
0faf0d8409 Add blocked option to packages page
Fixes: https://pagure.io/koji/issue/3330
2022-05-04 15:17:03 +02:00