Commit graph

28 commits

Author SHA1 Message Date
0bdc555ff8 Add some basic pagination to the packages page
Lower powered devices will have problems displaying all ~9000+ packages, so
return a smaller number by default.
2019-05-12 20:45:33 +01:00
de76f89cb3 Add initial JSON output for the package page 2019-05-12 10:11:14 +01:00
e64fc090cd Add a JSON variant of the packages page 2019-05-12 09:56:24 +01:00
b3f2aab8c9 Add a JSON variant of the revision page 2019-05-12 09:51:28 +01:00
658a1a20b2 Improve the content negotiation handling in general
Previously, the routing layer handled the content negotiation, and the Accept
header was ignored. Now, the extension if one is provided in the URL is still
used, and more widely than before, but the Accept header is also taken in to
account.

This all now happens before the routing decisions are made, so the routing is
now pretty much extension independant (with the exception of the
/gnu/store/... routes).
2019-05-11 22:56:25 +01:00
640fb8a2ad Update the derivation comparison implementation
This adds more query parameter validation, and uses form-horizontal-control to
neaten up the view code.
2019-05-11 20:38:16 +01:00
3611f7b122 Add some options to the branch page
Add handling for some query parameters to the branch page. This takes
advantage of the improvements for building forms and query parameter
validation.
2019-05-11 16:49:18 +01:00
f2e123b7ac Add a new query-parameters module
The query parameters feed in to the results shown, but also forms on
pages. Validation is important to avoid errors and security issues, but it's
also important to provide appropriate feedback to the user.

This module provides some utilities and structure around handling query
parameters.
2019-05-11 16:45:59 +01:00
5028dfe706 Start to handle information about Git branches
Add some new pages /branches and /branch/... as well as a new git_branches
table. Also extend the email processing to enter the branch information in to
the database.
2019-05-05 20:06:28 +01:00
ce4c3c6ed3 Switch to storing Git repositories in a table
Rather than just storing the URL in the guix_revisions and
load_new_guix_revision_jobs tables. This will help when storing more
information like tags and branches in the future.
2019-05-05 14:36:52 +01:00
6022edd074 Add a statistics page
To show the total number of derivations, and guix revisions.
2019-04-08 21:04:12 +01:00
f4c159d9de
Fix comparison in render-compare/derivations 2019-03-17 23:13:57 +00:00
189014f3bc
Improve the compare derivations page
Add support for filtering the results, and add the system and target
to the output.
2019-03-17 22:44:09 +00:00
5325cf0234
Fix the JSON responses for the comparison pages 2019-03-16 22:20:55 +00:00
e117bb1d87
Many changes
A large proportion of these changes relate to changing the way
packages relate to derivations. Previously, a package at a given
revision had a single derivation. This was OK, but didn't account for
multiple architectures.

Therefore, these changes mean that a package has multiple derivations,
depending on the system of the derivation, and the target system.

There are multiple changes, small and large to the web interface as
well. More pages link to each other, and the visual display has been
improved somewhat.
2019-03-11 22:11:14 +00:00
a1e481cc4d
Continue improving pages and linking things together 2019-03-07 23:50:51 +00:00
8f4da3c872
Start to visualise derivations 2019-03-07 08:43:16 +00:00
b0eaf9cf7a
Add a few new pages
For showing more information about builds, revisions and derivations.
2019-03-06 22:59:27 +00:00
e656b0967b
Include the status of derivations
On the comparison page.
2019-03-06 22:58:05 +00:00
623347d835
Add a list of the queued revisions to the index page 2019-03-03 18:15:29 +00:00
6d0eaab4e7
Make the unknown JSON a bit more sensible 2019-02-28 21:53:26 +00:00
2836a848cb
Add a packages comparison page
The primary use I have in mind for this is producing a list of strings
suitable for building a limited Cuirass job with.
2019-02-25 23:44:32 +00:00
31737d32f9
Add some super crude JSON pages
Provide JSON versions of the existing HTML compare and
compare/derivations pages. Refactor the code and extract some
functions to make this a little less painful.
2019-02-25 22:07:26 +00:00
b8543859c9
Show when revisions are missing, but queued for processing 2019-02-24 16:52:45 +00:00
e68142cf91
Add a new page comparing the derivations of two revisions 2019-02-24 15:38:08 +00:00
552723cef1
Add an error page for unknown commits 2019-02-08 11:27:07 +00:00
0a49c0a84a
Actually close database connections
Previously, the connections were not closed, so eventually PostgreSQL
would run out. Using a pool of connections would be better, but as a
short term solution, just close the connection after each request.
2019-02-08 11:19:12 +00:00
5a9262b38d
Initial commit
This is a service designed to provide information about Guix. At the
moment, this initial prototype gathers up information about packages,
the associated metadata and derivations.

The initial primary use case is to compare two different revisions of
Guix, detecting which packages are new, no longer present, updated or
otherwise different.

It's based on the Mumi project.

[1]: https://git.elephly.net/software/mumi.git
2019-02-07 22:26:57 +00:00