Commit graph

595 commits

Author SHA1 Message Date
Yuming Zhu
6dd77e0fa4 flake8: apply E502 rule 2020-03-03 21:38:22 +08:00
Yuming Zhu
0f727a2ab4 flake8: apply E3 rules 2020-03-03 21:38:22 +08:00
Yuming Zhu
05340b146b flake8: apply E2 rules except E266 2020-03-03 21:38:21 +08:00
Yuming Zhu
ce1f9928af flake8: apply E1 rules 2020-03-03 21:38:21 +08:00
Yuming Zhu
97cfaa4fcf flake8: follow E265 rule 2020-03-03 21:35:08 +08:00
Tomas Kopecek
0a9712b28f move needed functions
Related: https://pagure.io/koji/issue/1484
2020-02-18 13:38:04 +01:00
Tomas Kopecek
96d3cff5f2 remove usage of deprecated cgi.escape function
Fixes: https://pagure.io/koji/issue/1887
2020-02-13 14:44:50 +01:00
Tomas Kopecek
08baa31a8b fix rebase 2020-02-10 15:46:18 +01:00
Tomas Kopecek
f434933370 Display params also for malformed tasks in webui
Previously web ui failed in displaying tasks with unexpected parameters,
display them now in raw variant with warning message.

Fixes: https://pagure.io/koji/issue/1484
2020-02-10 15:45:30 +01:00
Tomas Kopecek
79d96c707d expect, that hub is returning GM time
Fixes: https://pagure.io/koji/issue/1915
2020-02-04 09:14:47 +01:00
Tomas Kopecek
a59eb9b5ca display some taskinfo for deleted buildtags
Fixes: https://pagure.io/koji/issue/1866
2020-02-03 11:34:26 +01:00
Yu Ming Zhu
f602e7e6ef web: fix typo - the param[0] is tag, not target
fixes: #1922
2020-01-23 16:30:31 +01:00
Yu Ming Zhu
5b83c682e4 remove unused imports 2019-12-12 11:00:58 +00:00
Yu Ming Zhu
b8653736dd sort imports in www 2019-12-12 11:00:56 +00:00
Tomas Kopecek
a803f0a0f3 [web] human-friendly file sizes in taskinfo page
Fixes: https://pagure.io/koji/issue/1819
2019-12-12 13:23:26 +01:00
Tomas Kopecek
4ae799c93d browsable api
Fixes: https://pagure.io/koji/issue/1813
2019-12-11 13:26:25 +01:00
Tomas Kopecek
9e1b76e475 fix closing table tag
Fixes: https://pagure.io/koji/issue/1838
2019-12-11 13:25:40 +01:00
Yuming Zhu
7a6ebc851f improve test and clean targets in Makefiles 2019-11-27 15:42:30 +01:00
Tomas Kopecek
97ca6fb106 Show build link(s) on buildContainer task page
Fixes: https://pagure.io/koji/issue/1529
2019-11-25 14:42:11 +01:00
Tomas Kopecek
59d196c51e cluster health info page
Fixes: https://pagure.io/koji/issue/1550
2019-11-14 09:58:10 +01:00
Yuming Zhu
b2b8d5f9cc strict per item in config_files 2019-10-15 09:14:16 +02:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Ken Dreyer
ae3fac1242 web: remove reference to PythonOption
With mod_python we could use Apache's PythonOption directive. That
directive does not exist with mod_wsgi and we have to use SetEnv
instead.

Remove the PythonOption directive and describe how to use SetEnv.
2019-10-14 10:05:08 +02:00
Yu Ming Zhu
2034695e88 add an option to set server realm for all clients 2019-10-10 16:37:56 +02:00
Brendan Reilly
63ffb48f9c Made difference between Builds and Tags sections more clear 2019-10-08 09:45:48 +02:00
Tomas Kopecek
dfbe322222 deprecate sha1/md5_constructor from koji.util
These functions are now fully provided by hashlib. Commit removes their
usage from koji's codebase and leaves deprecation message in lib.

Final removal from lib is scheduled to 1.21.

Fixes: https://pagure.io/koji/issue/1487
2019-08-12 16:07:55 -04:00
Tomas Kopecek
f1d2ebc85c move cg_id to build table 2019-07-16 10:11:55 -04:00
Tomas Kopecek
c38c024ac5 extended getBuild to return reservations 2019-07-16 10:11:55 -04:00
Tomas Kopecek
279e6533f6 rebuildSRPM task
New task rebuildSRPM for srpms uploaded to koji. If policy
'rebuild_srpm' returns True, build task will spawn rebuildSRPM task
first to recreate SRPM with updated buildroot macros, typically 'dist'.
Policy has access to same data as build_from_srpm and build_from_repo_id
policies. (user_id, source, task_id, build_tag, skip_tag, target, tag)

Fixes: https://pagure.io/koji/issue/1396
2019-06-26 09:06:48 +02:00
Tomas Kopecek
15e4d07763 encode to bytes only under py3
Related: https://pagure.io/koji/pull-request/1498
2019-06-24 18:09:10 -04:00
Mengjing Shi
2d88836a4b Pass bytes to md5_constructor
Fixes login TypeError on koji-web
2019-06-24 18:07:23 -04:00
Tomas Kopecek
9326cebd32 pass bytes to sha1 constructor
As preparation to use hashlib's constructors, fix passing correct
datatype to sha1 constructor in web ui.

Fixes: https://pagure.io/koji/issue/1486
2019-06-19 11:08:22 -04:00
Mike McLean
fdc2bdaef9 search form on one line 2019-06-14 15:23:49 -04:00
Mike McLean
08fd56a5aa combine search and searchresults templates 2019-06-14 15:23:49 -04:00
Tomas Kopecek
7a5c9130bc retain form values in search page 2019-06-14 15:23:49 -04:00
Tomas Kopecek
f9758e2572 retain search type 2019-06-14 15:23:49 -04:00
Tomas Kopecek
7842c480cf retain old search pattern in web ui
Fixes: https://pagure.io/koji/issue/1130
2019-06-14 15:23:49 -04:00
Tomas Kopecek
0eec0d75e2 let hub decide, what headers are supported
Currently web ui expects, that is it using same rpm version as hub -
this is wrong assumption, so let hub decide what is available there.

Fixes: https://pagure.io/koji/issue/1261
2019-06-13 13:46:12 -04:00
Tomas Kopecek
3e65782daf remove unneeded import 2019-05-06 10:33:06 -04:00
Mike McLean
3d8c75d7d3 use time.time() for current timestamp 2019-05-06 10:33:06 -04:00
Tomas Kopecek
e5b0a3ac6e display task durations in webui
Fixes: https://pagure.io/koji/issue/1382
2019-05-06 10:33:06 -04:00
Ken Dreyer
7e981c15a9 rm old references to Mozilla
We don't need to reference Fedora 5 or Mozilla any more in our docs.
2019-03-22 13:05:00 -04:00
Miro Hrončok
32977881f6 Support tilde in search
Fixes https://pagure.io/koji/issue/1294

Signed-off-by: Miro Hrončok <miro@hroncok.cz>
2019-03-22 10:18:05 -04:00
Tomas Kopecek
a2892a9b24 remove urlescape from package name
urlescape fails for unicode strings. On the other hand, 'name' attribute
is not used anywhere in infoURLs, so it is safe to just drop it.

Fixes: https://pagure.io/koji/issue/1224
2019-03-12 10:59:20 -04:00
Tomas Kopecek
eeeeb3ab78 skip fixEncoding for py3 2019-03-04 10:13:51 -05:00
Tomas Kopecek
a209f17401 convert xmlrpc.Binary to string before fixEncoding
Fixes: https://pagure.io/koji/issue/1282
2019-03-04 10:13:51 -05:00
Mike McLean
0d05c1c304 use greetings list from lib 2019-02-27 12:39:36 -05:00
Tomas Kopecek
23bd0fe45a replace urrlib.quote with six.moves
Some web templates still uses old library, replace with py3-compatible
one.

Fixes: https://pagure.io/koji/issue/1283
2019-02-26 22:42:25 -05:00
Tomas Kopecek
53f3109fba correctly escape license in web ui
Fixes: https://pagure.io/koji/issue/1285
2019-02-26 22:04:15 -05:00
Tomas Kopecek
8e41dd6d09 remove sys.exc_clear() in web ui
sys.exc_clear() doesn't exist in py3. It also doesn't seem to be really
needed, so it should be safe to drop it.
2019-02-19 17:29:25 -05:00