Commit graph

178 commits

Author SHA1 Message Date
Tomas Kopecek
e6effec7e1 backward compatibility changes 2017-03-28 11:46:47 +02:00
Tomas Kopecek
323987e376 Allow uploading files to non-default volumes 2017-03-28 11:46:47 +02:00
Tomas Kopecek
93034f64f3 idioms 2017-03-17 11:35:53 -04:00
Tomas Kopecek
22bedc900d whitespace formatting 2017-03-17 11:35:53 -04:00
Tomas Kopecek
70224c42c1 remove obsoleted StandardError 2017-03-17 11:35:53 -04:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
6052d5d63c Add indirectionimage to pull-down menu in webui 2017-02-14 11:06:34 -05:00
Tomas Kopecek
96012ee56f make non-plugin tasks default 2017-02-14 15:03:18 +01:00
Tomas Kopecek
ac070c9ddf web.conf options for specifying which methods will appear in filter 2017-02-14 14:46:53 +01:00
Xibo Ning
7e6b4be823 remove useless return value 2017-01-17 15:08:26 -05:00
Xibo Ning
2d5c661a19 have listPackages() method to support queryOpts option and convert the packages page to use paginateMethod() 2017-01-17 15:08:26 -05:00
Xibo Ning
fe8c5964ca fix method names to listPackagesSimple and countAndFilterResults.
1. replace listPackages call by listPackagesSimple.
    2. replace filterResults by countAndFilterResults.
2017-01-17 15:08:26 -05:00
Matyas Selmeci
13605e7daf Fix kojiweb error using getfile to download non-text files
URLs like
http://koji-hub-testing.chtc.wisc.edu/koji/getfile?taskID=228280&name=osg-build-1.7.1-1.osg33.el6.noarch.rpm
fail with a 500 Internal Server Error when `name` refers to an RPM or
other binary file. (Those URLs do still work for log files). The error
given is "TypeError: append() takes exactly one argument (2 given)"
2017-01-12 16:15:54 -05:00
Xibo Ning
fbc8314d13 fix the link to full results 2016-12-13 21:45:41 -05:00
Xibo Ning
abcf99bf4b add docstring and replace func name by a good one.
1. follow PEP-257 add docstring.
2. change func naem "task_result_to_html_or_string" to "task_result_to_html".
3. add postfix instance attribute for TaskResultLine.
4. add empty_str_placeholder instance attribute for TaskResultFragment.
5. recover class NoSuchException.
6. honoring line limit for dictionaries.
2016-12-13 21:45:41 -05:00
Xibo Ning
584c5bb20f Fix as mikem review result.
replace reduce func by sum func
     max lines is honored for dictionary results
     follow PEP8 style
     do not require HTMLParser
     from url args remove maxAbbrResultLines/maxAbbrResultLen
2016-12-13 21:45:41 -05:00
Xibo Ning
5aa4fc1b3b fix issue 222: Don't hide results in kojiweb
The same with patch1 except add two paramerters hence we can ajust
abbr result lines and length from taskinfo page
2016-12-13 21:45:41 -05:00
Mike McLean
b4be256abd no coverage for unreached code 2016-10-25 17:16:12 -04:00
Tomas Kopecek
82ea17e808 don't show optional deps if they are not supported by rpm 2016-10-13 00:29:39 -04:00
Tomas Kopecek
1e103eb94d show optional deps in web ui 2016-10-13 00:29:39 -04:00
Tomas Kopecek
36f5be2b3f unused returns (handled by env) 2016-10-04 16:12:52 +02:00
Tomas Kopecek
921258749a removed unused imports 2016-10-04 15:48:54 +02:00
Mike McLean
a78476af59 filter builds by arbitary type in web ui 2016-09-28 18:20:09 -04:00
Mike McLean
e5ac6cf286 typo 2016-09-28 18:20:09 -04:00
Mike McLean
0cef35e50a fixes 2016-09-28 18:20:09 -04:00
Mike McLean
f98c102722 fix up archiveinfo page 2016-09-28 18:20:09 -04:00
Mike McLean
58460b2397 fix web display of generic archives 2016-09-28 18:20:09 -04:00
Mike McLean
c74a64afd3 enable task filtering for livemedia tasks 2016-05-16 14:02:07 -04:00
Ralph Bean
8bdf5a3752 Space-delimited. 2016-05-16 13:44:09 -04:00
Ralph Bean
bed7da59b2 Split the HiddenUsers string pulled from our config. 2016-05-16 13:43:39 -04:00
Ralph Bean
0f411d9821 Make HiddenUser into HiddenUsers.
At @mikeb's suggestion in the code review, this makes HiddenUsers plural.

This makes the whole changeset a little more invasive than it was before, so please review carefully.
2016-05-16 13:43:39 -04:00
Ralph Bean
708b6a411c Allow hiding a user from the frontpage task list.
This adds new query arguments to the taskList hub xmlrpc endpoint, and then
makes use of those arguments in koji-web.  A new optional configuration value
is added for koji-web: `HiddenUser`, which can be used to specify which user
account should be hidden.  This could be useful for deployments that have a
continuous-integration account, the spam from which makes the frontpage
difficult to read.

Unit test cases are also added for some functions of the hub taskList endpoint.

Signed-off-by: Ralph Bean <rbean@redhat.com>
2016-05-16 13:43:39 -04:00
Mike McLean
b0cdd312ec add krb_rdns option. see https://fedorahosted.org/koji/ticket/328 2016-05-11 16:58:41 -04:00
Dennis Gilmore
490dc1e958 allow filtering runroot tasks
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-17 14:06:19 -06:00
Mike McLean
d3da1bb50b adjust default seach result order for large tables
Based on a user request. For some searches, ordering by id descending
(approximately "most recent") makes more sense.
2015-12-14 11:09:41 -05:00
Till Maas
ffcf1a30eb Remove dead client CA code
The client CA is only needed to for authentication on the server side,
not for authentication on the client side. Therefore remove it from all
client login code.
2015-12-10 18:51:10 -05:00
Mike McLean
3e663b8556 Better web display for metadata_only imports 2015-11-17 10:46:31 -05:00
Mike McLean
8eb55ee35f use build.start_time in webui is set 2015-11-04 17:02:25 -05:00
Mike McLean
e50b5e04d7 move buildroot label display code into util function 2015-10-21 12:04:05 -04:00
Mike McLean
d8865cdd51 fix buildroot display on archiveinfo page 2015-10-21 12:04:05 -04:00
Mike McLean
f6b37caa90 fix buildroot title display on rpminfo page 2015-09-29 15:53:46 -04:00
Mike McLean
b63e8e1eae attempt to fix web display 2015-09-29 15:53:46 -04:00
Mike McLean
875b24306e don't omit debuginfos on buildinfo page 2015-08-06 14:31:07 -04:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
5c4144c033 display the top-level task start time as the build start time
We can't record the build start time in the database correctly for maven and windows builds, so show the task start time instead.
2014-10-28 23:54:20 -04:00
Mike Bonnet
e626fca4d9 support running a sequence of Maven builds in dependency order
The new "koji chainmaven" command allows Maven builds to be run in depdencency order,
without needing to wait for repo regens.  A config file specifies the parameters and
dependencies for each build in the sequence.  Each build is launched as soon as all
dependent builds are complete, and is able to reference the output of all of its
dependencies.  If the build source URL and parameters match the latest build of the
same package in the destination tag, the build will not be re-run.
2014-06-13 11:23:37 -04:00
Mike McLean
dca0c8aa06 strip search terms in web ui 2014-05-08 12:29:57 -04:00
Jay Greguske
dce981825a add image tasks to method filter 2014-01-10 15:40:11 -05:00