Commit graph

432 commits

Author SHA1 Message Date
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
Tomas Kopecek
d368322fb6 fix weak deps handling in rpminfo web page
PR #965 (commit ef998c6) changed way, how weak reference support is
detected in rpm. As a result, web page rpminfo is failing due to missing
variable.

Fixes: https://pagure.io/koji/issue/1234
2019-02-18 15:32:59 -05:00
Tomas Kopecek
904a241eff use C.UTF-8 lang as default 2019-02-12 15:01:37 -05:00
Tomas Kopecek
ee673d4b66 Web UI python3 changes
Fixes: https://pagure.io/koji/issue/890
2019-02-12 15:01:37 -05:00
Tomas Kopecek
ccdb8ac34c Use python2/3 instead of python in Makefile/spec
Fixes: https://pagure.io/koji/issue/1018
2019-01-28 06:06:50 -05:00
Tomas Kopecek
17db100db5 few sort speedups
Fixes: https://pagure.io/koji/issue/963
2018-12-04 00:05:26 -05:00
Tomas Kopecek
5aad0b2b8c tooltip for search field
Fixes: https://pagure.io/koji/issue/1122
2018-10-18 13:50:05 +02:00
Tomas Kopecek
167b296311 additional info on builders in channelinfo page
Fixes: https://pagure.io/koji/issue/988
2018-07-11 18:11:18 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
b37236d7ae fix incorrect divisions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
5ad9027320 python-modernize -f libmodernize.fixes.fix_basestring 2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00