Commit graph

322 commits

Author SHA1 Message Date
Tomas Kopecek
c8d4224fb3 Nicer runroot taskinfo page
fixes: https://pagure.io/koji/issue/163
2016-10-04 11:27:49 -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
Dennis Gilmore
e35d2b4cef allow kojiweb login to be disabled
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-05-25 09:56:37 -05:00
Dennis Gilmore
2a694a260a fix up the list of tasks that you can watch logs on
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2016-05-21 12:19:01 -05:00
Mike McLean
c74a64afd3 enable task filtering for livemedia tasks 2016-05-16 14:02:07 -04:00
Mike McLean
04a4dd1268 clean up web display 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
32160aa47e show source in buildinfo display, if available 2016-05-11 17:00:21 -04:00
Mike McLean
b0cdd312ec add krb_rdns option. see https://fedorahosted.org/koji/ticket/328 2016-05-11 16:58:41 -04:00
Pavol Babincak
b964487d57 Configure httpd's access control automatically with IfVersion
See documentation for upgrading to 2.4:
https://httpd.apache.org/docs/2.4/upgrading.html#access
2016-02-05 09:07:24 -05: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
ecb5c5a397 remove stray # from literal footers in web ui 2015-12-01 13:02:31 -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
a6b1981074 show extra data in web ui 2015-11-01 18:13:29 -05:00
Mike McLean
e71ee4bad3 show extra data on buildinfo page 2015-11-01 18:13:29 -05:00
Mike McLean
da3a5b5c09 use util.brLabel when appropriate 2015-10-21 12:04:05 -04: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
Dennis Gilmore
4d296f11be Check task method before trying to determine "scratch" status.
reabsed patch from https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004685.html

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-23 21:43:01 -05:00
Mike McLean
f426fdb05d show tag options in web ui 2015-06-24 09:46:16 -04:00
Ralph Bean
8ec72226d4 Make the templated footer configurable.
We ran into a problem[1] where old footers would cause syntax errors when
interpreted as templates.  This makes that behavior configurable and defaults
to the old literal interpretation.

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-May/004751.html
2015-06-06 16:34: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
Ralph Bean
837c070127 (koji-web) Treat extra-footer as a template.
The code previously would look for a file called extra-footer.html that a koji
admin could override to put some nice extra footer on their koji-web page.
If that file existed, koji-web would read it in verbatim and write it to the
bottom of each served page.

This change enhances that behavior and treats the extra-footer.html file as a
Cheetah template.  This way, a koji admin could specify some conditional logic
in the extra-footer file to display this or that thing depending on the dynamic
contents of the page being served.

Note that this is backwards compatible.  Static html extra-footer files
already out there in the wild will be interpreted as Cheetah templates and
should be included seamlessly.
2015-05-07 13:14:48 -05:00
Ralph Bean
c738175d4a (koji-web) Markup scratch builds.
With this we can markup scratch builds, deemphasize them, etc.
2015-05-07 13:14:48 -05:00
Ralph Bean
e5466860ed (koji-web) Add user-specific css classes.
This will allow us in Fedora to style system account names differently.  For
instance, we can markup the name 'koschei' (our continuous integration bot).
2015-05-07 13:14:48 -05:00
Mike McLean
6ba041839b package hub.conf.d and web.conf.d 2015-03-31 17:34:16 -04:00
Mike Bonnet
ac09ab2b49 taskinfo.chtml: missing line break 2015-02-20 13:56:13 -05:00
Mike McLean
8d3166f13f Support conf.d in kojihub and kojiweb 2015-02-04 05:33:34 -05:00
Mike McLean
9d433423fe update httpd access directives 2014-11-24 11:16:32 -05: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
004a1ba450 preserve the format of parameters with no value when calling maven-build and maven-chain
-Dfoo and -Dfoo= mean different things to the JVM, so make sure the format of the parameter on the command-line is carried through to the mvn invocation.
2014-10-28 23:54:20 -04:00
Mike Bonnet
689ace685d handle display of chainmaven tasks 2014-06-13 11:23:38 -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