2
0
Fork 0
mirror of git://git.savannah.gnu.org/guix/data-service.git synced 2023-12-14 03:23:03 +01:00
Commit graph

412 commits

Author SHA1 Message Date
Christopher Baines c388f3ee13 Add a basic page for build servers 2020-01-05 12:01:06 +00:00
Christopher Baines ffcf937c6a Don't hardcode the system and target for the derivation history page 2020-01-05 11:17:39 +00:00
Christopher Baines 6f34d12c4c Extract out the derivation-history rendering code 2020-01-05 10:32:47 +00:00
Christopher Baines 012e51fc2a Fix the help text on the derivation outputs page 2020-01-04 22:16:58 +00:00
Christopher Baines d7036bdd37 Implement the search query input on the derivation outputs page 2020-01-04 22:15:39 +00:00
Christopher Baines 6cb7e92257 Support the search query input on the revision derivations page 2020-01-04 21:46:22 +00:00
Christopher Baines 444649cbc9 Fix the help text on the revision derivations page 2020-01-04 21:46:01 +00:00
Christopher Baines 2f56e59e5b Fix some missing arguments to view-revision-derivations 2020-01-04 21:45:41 +00:00
Christopher Baines 0ceb62cbc8 Drop bottom margin of the dl's on the revision derivations page
This makes the table display better.
2020-01-04 21:21:17 +00:00
Christopher Baines dc67655a34 Add missing headings to the revision derivations page table 2020-01-04 21:21:07 +00:00
Christopher Baines e5aca1f317 Remove the outputs from the query behind the revision derivations
As that data is now unused.
2020-01-04 21:20:32 +00:00
Christopher Baines 04ab01725b Add a revision header and link to the package reproducibility page
To make it easier to get back to the revision page, as well as setting the
content more in context.
2020-01-04 21:08:39 +00:00
Christopher Baines 8a3b0d97b8 Add a revision header and link on the revision builds page
To make it easier to get back to the revision page, as well as setting the
page content in context.
2020-01-04 21:07:56 +00:00
Christopher Baines 3d51d88d06 Fix the table layout on the derivation history page 2020-01-03 21:49:03 +00:00
Christopher Baines 75665e3203 Fix a few list styling issues 2020-01-02 21:18:42 +00:00
Christopher Baines e859cc9a4a Remove the reset.css stylesheet
This was copied over from Mumi, but I've noticed some styling issues with
lists, and I'm not sure how well it interacts with Bootstrap. Simpler is
better, so lets just try removing it.
2020-01-02 21:17:46 +00:00
Christopher Baines 83c86431ae Better split up the comparision functionality
The packages comparison was getting confused by differences in the
derivations, so split the data used to make the comparison more sensible.

This resolves an issue comparing 8dd723f5… and 365892e9… which coinsided with
the fix for importing foreign architecture derivations, meaning that a whole
lot of new derivations appeared in the database. Prior to these changes, it
appeared like every package was new, and with these changes, the list is more
sensible.
2020-01-02 20:41:24 +00:00
Christopher Baines 2cb5309851 Display details for the derivation source files
If the nar file is available.
2019-12-30 12:32:20 +00:00
Christopher Baines 57ee3c8988 Improve entity handling in the sxml module
This is useful as stexi->shtml uses *ENTITY* so handling this here means that
the HTML output for texinfo is better.
2019-12-30 09:51:27 +00:00
Christopher Baines d15ba4f25c Serve narinfo files for derivation sources 2019-12-29 16:04:45 +00:00
Christopher Baines 7ca9b11885 Move rendering narinfo responses out of the main controller function
In preparation for also handling derivation source files.
2019-12-29 16:04:45 +00:00
Christopher Baines da3a294496 Serve nar files for the derivation source files 2019-12-29 16:04:45 +00:00
Christopher Baines f56935a8a6 Change the language around reproducibility/matching outputs
It's more accurate to describe the specifics of the relevant data here through
terms like "matching" and "not matching", as a statement that something built
reproducibility needs to be made alongside the test conditions. So just say
that build outputs matched, or didn't match, as this is more descriptive of
the data available.
2019-12-27 14:05:12 +00:00
Christopher Baines 6c1adfa9e6 Fix the help text on the jobs page 2019-12-27 13:14:58 +00:00
Christopher Baines 485b79a6de Add a page to show the public key used to sign substitutes 2019-12-27 13:03:17 +00:00
Christopher Baines 6f8ac2eccc Change indentation in the nar-controller parameters 2019-12-27 13:02:02 +00:00
Christopher Baines 4aa69f1910 Add a link to the derivations page
From the revision page.
2019-12-27 10:29:44 +00:00
Christopher Baines 50f550d642 Link to the versions page from the latest revision package page 2019-12-27 10:13:34 +00:00
Christopher Baines 1ce1a405a6 Link to the derivation history page from the branch package page 2019-12-27 10:13:01 +00:00
Christopher Baines 7654877991 Improve the builds info on the revision package version page
Show multiple builds, and link to the build page.
2019-12-27 00:09:07 +00:00
Christopher Baines 5163398e54 Add pagination to the jobs page 2019-12-26 23:03:12 +00:00
Christopher Baines 8628a68b0f Fix the colspan for the derivation history table chart rows
It should have been changed to 4 when the builds column was added.
2019-12-26 18:10:38 +00:00
Christopher Baines a3ea38d545 Serve the /nix-cache-info response
This should be the last piece of the puzzle for providing substitutes for
derivations.
2019-12-26 10:07:55 +00:00
Christopher Baines 66e886a6b4 Serve narinfo files for derivations 2019-12-26 09:34:43 +00:00
Christopher Baines f78e3126e5 Render nar files for derivations
In the same manor that Guix publish does. This is working towards being able
to serve substitutes for derivations.
2019-12-26 09:25:27 +00:00
Christopher Baines 43013fc16b Add a "plain" view for derivations 2019-12-26 09:04:53 +00:00
Christopher Baines 16879a8182 Add a helper function to render text 2019-12-26 09:04:46 +00:00
Christopher Baines 4eb5a3417c Group derivation input outputs together by derivation
Both in terms of the code fetching the data from the database, as well as the
formatted and detail outputs. This corrects an error in the formatted output
for derivations where inputs would be duplicated.
2019-12-26 08:52:04 +00:00
Christopher Baines 5c643e09e5 Fix the unknown build counts on the builds pages 2019-12-23 21:30:36 +00:00
Christopher Baines e45db1cd30 Include builds on the derivation history page 2019-12-22 21:42:49 +00:00
Christopher Baines 161c10bdc5 Use the full width of the page for the derivation history table
As it's quite big. Also remove the (More information) links, as they weren't
useful.
2019-12-22 21:42:23 +00:00
Christopher Baines 0b0d734a97 Add links from the builds pages to the pages for individual builds 2019-12-22 15:23:03 +00:00
Christopher Baines 14b7993636 Allow filtering the revision builds page by system 2019-12-22 14:27:59 +00:00
Christopher Baines e4a7f221c9 Filter builds on the revision builds page by revision 2019-12-22 14:27:49 +00:00
Christopher Baines ff433dfce6 Handle derivations with no known build
When displaying build stats.
2019-12-22 14:27:49 +00:00
Christopher Baines a019a5ed82 Improve the error handling for the build page 2019-12-16 20:43:16 +00:00
Christopher Baines 7e476536cb Link to the derivation outputs from the package reproducibility page 2019-12-16 20:31:13 +00:00
Christopher Baines 4af643136e Allow filtering by system and target on the derivation-outputs page
So that this can match up with the package reproducibility page.
2019-12-16 20:29:28 +00:00
Christopher Baines e1d1d372ca Add titles to a couple of revision pages 2019-12-16 20:29:15 +00:00
Christopher Baines dc82112bf8 Simplify the derivations page display
Displaing the outputs didn't add much, so focus on neatly displaying the
builds.
2019-12-16 20:18:34 +00:00
Christopher Baines 3305d85ef0 Drop the default number of derivations to display
As 100 is quite a lot to display by default.
2019-12-16 20:17:14 +00:00
Christopher Baines 0172338932 Add a small bottom margin to the build status span
So it displays better when there are items below it.
2019-12-16 20:15:11 +00:00
Christopher Baines e6b20746be Deduplicate the build status span code in html-utils 2019-12-16 20:12:58 +00:00
Christopher Baines 96f897cf3b Add a page with charts to show package reproducibility 2019-12-16 19:57:36 +00:00
Christopher Baines 34b3585b48 Improve the revision derivation-outputs page
Neaten up the display of the hashes, and add a reproducibility status column.
2019-12-16 15:19:02 +00:00
Christopher Baines 18504fba49 Show the possible failure reasons on the build page
When the build status is "Failed (dependency)".
2019-12-16 15:19:02 +00:00
Christopher Baines 771b01ef80 Link to the build pages from the derivation page 2019-12-16 15:19:02 +00:00
Christopher Baines 308d1d7102 Add a page for each build 2019-12-16 15:18:14 +00:00
Christopher Baines 6a0332bed2 Add a builds page for a specific revision
Like the /builds page, but filtered for a specific revision.
2019-12-14 21:02:27 +00:00
Christopher Baines 633e757fe8 Break down the build stats by build server 2019-12-14 20:17:53 +00:00
Christopher Baines 6e9b07bc4a Drop the default number of results on the derivation outputs page
To have it load quicker, but also because 100 results aren't necessary.
2019-12-14 17:11:46 +00:00
Christopher Baines 7cde75f8d6 Add "Fixed output" to the options for Reproducibility status
On the derivation outputs page, as some derivations are reproducible by
definition, so it's good to identify and exclude these.
2019-12-14 17:11:01 +00:00
Christopher Baines 9dddf2c606 Implement the reproducibility status filter
On the derivation-outputs page.
2019-12-14 17:10:23 +00:00
Christopher Baines 4cc678dfb1 Add a parameter to form-horizontal-control affect multiple values
Previously, the behaviour was to accept multiple values, but enable just
allowing one value to be entered.
2019-12-14 17:04:36 +00:00
Christopher Baines 67710065f0 Improve the next page links on the revision pages
To add or update the relevant query parameter, rather than replacing all the
query parameters with the new value.
2019-12-13 17:13:41 +00:00
Christopher Baines fc9c44b715 Add a utility to help generate next page links 2019-12-13 17:13:27 +00:00
Christopher Baines 7dc0238436 Add a page to show derivation outputs for a revision 2019-12-12 20:07:22 +00:00
Christopher Baines e92d4dbbcf Add a results count to the revision derivations page 2019-12-12 20:07:22 +00:00
Christopher Baines 05d295d6f0 Fix the all-results/limit handling in the revision derivatinos controller 2019-12-12 20:07:22 +00:00
Christopher Baines 00bfa5336e Add a page to show the derivations in a revision 2019-12-12 20:07:22 +00:00
Christopher Baines 9a99722643 Add a utility to generate a span for the status of a build 2019-12-12 20:07:22 +00:00
Christopher Baines 716eb3c3b6 Move build-status helpers to the html-utils module 2019-12-12 20:07:22 +00:00
Christopher Baines e078b9611d Include nars on the output page 2019-12-12 20:07:22 +00:00
Christopher Baines 8e5f8e4170 Add a new page for the narinfos associated with an output 2019-12-12 20:07:22 +00:00
Christopher Baines 2d87bd6340 Add a page for each signing key 2019-12-12 20:07:22 +00:00
Christopher Baines 8ff27eaa14 Add a new html-utils module
To store code used for rendering HTML across multiple controllers.
2019-12-12 20:07:22 +00:00
Christopher Baines acf1735a0f Stop setting a long max-age for the viewing store items
As as new derivations are loaded, the contents of the page can change.
2019-12-12 20:07:22 +00:00
Christopher Baines a0ce016c02 Support querying builds by build servers 2019-12-12 20:07:22 +00:00
Christopher Baines f7069456b5 Support querying builds by status 2019-12-12 20:01:30 +00:00
Christopher Baines 04e98ed4da Handle multiple invalid values for a single form field 2019-12-12 20:01:26 +00:00
Christopher Baines af1324855e Fix the JSON output for the derivation history page 2019-11-26 07:17:24 +00:00
Christopher Baines 2a3ee20a99 Extract the builds page in to it's own set of modules
To allow for expanding it, without cluttering the root controller.
2019-11-24 20:42:37 +00:00
Christopher Baines 33ecb7448e Respond to any method with a 404, if the request is unrecognised 2019-11-24 20:18:08 +00:00
Christopher Baines 5663235048 Rework the builds and build_status tables as well as related code
Allow for build status information to be submitted by POST request. This
required some changes to the builds and build_status tables, as for example,
the Cuirass build id may not be available, and the derivation may not be know
yet, so just record the derivation file name.
2019-11-24 20:18:08 +00:00
Christopher Baines 53652db9ca Add a page to render the channel news entries for a revision 2019-11-22 06:28:10 +00:00
Christopher Baines 5fc23d788d Expand compare by datetime output
Include the commit and datetime for the revisions that were compared.
2019-11-21 20:50:54 +00:00
Christopher Baines ae150888d8 Remove some peek statements that snuck in 2019-11-21 20:48:41 +00:00
Christopher Baines 23f60a6bbb Include news entries on the comparison page 2019-11-21 19:56:19 +00:00
Christopher Baines 62cabc80bf Link to the comparison page when viewing derivation history 2019-11-21 19:56:19 +00:00
Christopher Baines 7c611402a0 Add a basic page for derivation source files
Just so that the links work.
2019-11-21 19:54:54 +00:00
Christopher Baines 5d7dadc9fe Add more links to store items
On the formatted derivation and derivation comparison pages.
2019-11-21 19:54:54 +00:00
Christopher Baines 81eb5f88d1 Add a generic way of presenting values that may be store items 2019-11-21 19:54:54 +00:00
Christopher Baines 022cbc68ef Link to the formatted derivation page 2019-11-21 19:54:54 +00:00
Christopher Baines 78e830d91e Link to derivation comparison page from the compare/derivations page 2019-11-21 19:54:54 +00:00
Christopher Baines e31f370de0 Add a basic derivation comparison page 2019-11-21 19:54:54 +00:00
Christopher Baines edb21317a6 Remove a couple of peek calls that snuck in 2019-11-21 19:54:54 +00:00
Christopher Baines ab51599057 Include the hash algorithm and hash on the formatted derivation page 2019-11-10 09:41:32 +00:00
Christopher Baines a658d64b46 Add a page to show a formatted derivation representation
The HTML is very rough, and the way it's displayed is also rough, but it does
provide a way to understand the derivation. I'm also unsure it's a perfect
representation, but it's a start at least.
2019-11-09 20:50:53 +00:00
Christopher Baines 04bb2d52bc Add first version of a page with the history of package derivations
Some filtering options need adding for the system and target, as it's
currently hardcoded, but the general page does work.
2019-11-09 20:07:34 +00:00
Christopher Baines 5e2bc7c6e9 Fix various warnings relating to the controller refactoring 2019-10-18 18:44:42 +01:00
Christopher Baines 263eb0e0a9 Handle unknown requests better within controllers 2019-10-18 17:23:59 +01:00
Christopher Baines 4ce8d9e830 Extract the comparison pages out from the main modules
In to their own modules. This should help make the code more understandable,
and allow future refactoring for readability.
2019-10-14 19:24:14 +01:00
Christopher Baines 94256c4fa1 Move the unknown-revision function to the correct module 2019-10-14 18:38:11 +01:00
Christopher Baines 86db73c05a Refactor the repository pages code
Move it out of the main controller and html modules to better separate the
code, which should allow to make it easier to read in the future.
2019-10-14 18:28:25 +01:00
Christopher Baines 49ea210382 Refactor the revision pages
Move the code to a more specific controller and html module. There's a lot of
code related to the revision pages, and having it separated will help with
refactoring it.
2019-10-14 17:55:08 +01:00
Christopher Baines 660df79a69 Remove the query-parameters from controller-with-database-connection
As I believe it's unused.
2019-10-13 21:12:43 +01:00
Christopher Baines 06723370e5 Refactor the jobs pages code
Move the code out of the main controller and html modules. There's now too
much code in these modules, so begin to separate the functionality, starting
with the small amount of code for the jobs pages.
2019-10-13 21:10:10 +01:00
Christopher Baines 955ada8bca Add a compare-by-datetime page
This is to compare the state of a branch (or two different branches) at two
different times. This complements the ability to compare by revision to be
able to just compare by date and time. The relevant revisions are determined,
and then compared as normal.

This is only a very rough initial implementation, as I'm hoping to refactor
the code to reduce duplication.
2019-10-13 20:51:47 +01:00
Christopher Baines 15db1b0688 Add a variant of compare/derivations to work with a branch and datetime 2019-10-13 19:47:19 +01:00
Christopher Baines 9fa2e9e5ac Improve linking between the Jobs and Job queue pages 2019-10-12 21:50:13 +01:00
Christopher Baines 2b9c882e5a Improve error handling for comparison pages 2019-10-12 21:43:34 +01:00
Christopher Baines af1ffc2393 Add a page for queued jobs 2019-10-12 21:16:39 +01:00
Christopher Baines 2279f1e013 Remove the now redundant with-base-and-target-commits function
Uses of this have been replaced with parse-query-parameters.
2019-10-12 18:40:18 +01:00
Christopher Baines 116775ad06 Switch the compare page to use parse-query-parameters 2019-10-12 18:39:45 +01:00
Christopher Baines 30051a3740 Switch the compare/packages page to use parse-query-parameters 2019-10-12 17:30:01 +01:00
Christopher Baines dbe171bc75 Handle potentially serving assets from the store 2019-10-06 14:23:15 +01:00
Christopher Baines eab5a70976 Add a new static-asset-from-store-renderer function
Previously, the assets would be served from the store normally, but this meant
that they were read from disk each time, and stat calls were used to determine
when they were last modified.

This doesn't work for files in the store, as the timestamps are normalised,
therefore add a renderer that takes advantage of the asset directory being in
the store. All the files are read at startup, and then stored in memory. Also,
the process start time is used as a value for the last modified header, which
isn't ideal, but it's better than 1970.
2019-10-06 14:19:26 +01:00
Christopher Baines 8019d2e687 Add "No lint warning changes" message to compare page 2019-10-05 11:11:22 +01:00
Christopher Baines a104fbc5e1 Link from the revision package page to the version history page 2019-10-03 22:08:06 +01:00
Christopher Baines fb301a8495 Add a package page, showing versions for a revision 2019-10-03 21:35:29 +01:00
Christopher Baines a40a8f0f92 Rename render-revision-package to render-revision-package-version
As this name is more specific.
2019-10-03 20:15:56 +01:00
Christopher Baines 48bdb35f3e Hide deleted branches on the index page
To keep the page length down. All branches can still be seen on the page for
specific repositories.
2019-09-29 17:12:50 +01:00
Christopher Baines b90e6289ac Fix the 'NULL' values in git_branches for the commits
The git_branches table had 'NULL' values for some commits where the branch was
deleted, importantly this was the string 'NULL', not an actual NULL value.

This commit fixes that, migrating the existing values to be '', and changing
the relevant code.

The primary key is also extended to include the datetime field, as this is
important to allow a branch to be deleted twice.
2019-09-29 17:10:04 +01:00
Christopher Baines 16ed3e376e Provide the job id for jobs on the revision page
Using the title element, as the identifier is internal, but it's useful for
development to be able to find it out, if you want to run the job for testing.
2019-09-28 23:55:50 +01:00
Christopher Baines 4df889fc3c Add JSON output for the branch package versions page 2019-09-27 17:53:45 +01:00
Christopher Baines 00ac080297 Add some bars to the table on the branch package versions page
To provide a more visual view of when the package versions were available.
2019-09-27 17:29:33 +01:00
Christopher Baines 59c342ffde Add a new page to show package versions available on a branch
This is useful when looking back through history at what package versions were
previously available.
2019-09-27 17:28:46 +01:00
Christopher Baines b96bc58422 Handle the README.html file being missing 2019-09-23 16:44:16 +01:00
Christopher Baines 1181d999a9 Serve the README.html file on the site 2019-09-21 12:41:39 +01:00
Christopher Baines 6a9f11fb94 Fix the repository page
The repository id is expected to be a number.
2019-09-14 09:05:47 +01:00
Christopher Baines ce5f9bb3e6 Update the "source code here" link 2019-09-10 20:28:24 +01:00
Christopher Baines eb0d33a3ba Show lint warnings on the comparison page 2019-09-07 17:19:34 +02:00
Christopher Baines fe8102e1df Use numeric ids for git repositories 2019-09-05 16:40:39 +02:00
Christopher Baines 939b8b8bb6 Fix a couple of GET's in the controller match expression
These should be symbols, not just placeholders.
2019-09-01 18:48:31 +01:00
Christopher Baines 960eac26d7 Fix the after link on the packages page 2019-09-01 18:47:06 +01:00
Christopher Baines 939b51c80c Add a header for the derivations on the package page 2019-09-01 18:32:09 +01:00
Christopher Baines d3254dddb6 Add lint warnings to the package page 2019-09-01 18:32:09 +01:00
Christopher Baines 514933db47 Link to the package from the lint warnings page 2019-09-01 18:32:09 +01:00
Christopher Baines 14fab21dc1 Link to the lint warnings page from the revision page 2019-09-01 18:32:09 +01:00
Christopher Baines be25e487f1 Support filtering lint warnings by linter 2019-09-01 18:32:09 +01:00
Christopher Baines 609c5cf4f0 Add a page to show the lint warnings for a revision 2019-09-01 17:40:16 +01:00
Christopher Baines 3a79449974 Display counts of lint warnings on the revision page 2019-09-01 13:12:10 +01:00
Christopher Baines 89b498aad0 Remove the build status filter from the compare derivations page
As there isn't sufficient data to make this work yet.
2019-08-06 10:24:19 +01:00
Christopher Baines 3849bb79c5 Support filtering by systems and targets when comparing derivations 2019-08-06 10:22:57 +01:00
Christopher Baines 36a16d356f Improve derivation comparison to show more changes
In cases where the version is changed for example, the relevant derivations
will now show up, whereas previously they did not.
2019-08-06 09:55:03 +01:00
Christopher Baines 82c3e8942b Only show the Compare button when it'll work
On the branch page.
2019-08-05 21:24:07 +01:00
Christopher Baines 4b59108fdd Properly handle not finding a matching derivation 2019-08-05 19:45:10 +01:00
Christopher Baines 70126f7ed0 Set the Vary header to a sensible default value
As most pages vary based on the Accept header.
2019-08-05 19:43:50 +01:00
Christopher Baines 8f7398b814 Tweak the branch table layout 2019-08-05 11:36:57 +01:00
Christopher Baines 1724bc485f Link to the comparison page from the branch page
To allow easily comparing revisions.
2019-07-29 21:11:45 +01:00
Christopher Baines ef123dcded Link to the package pages from the comparison page 2019-07-29 21:10:41 +01:00
Christopher Baines 91e0527b4d Link to cgit on the comparison page 2019-07-29 20:40:56 +01:00
Christopher Baines f2c7cc83ed Fix the JSON compare output 2019-07-29 19:48:57 +01:00
Christopher Baines 08d9cbbfe3 Neaten up how branches in Git repositories are linked to 2019-07-27 09:38:50 +01:00
Christopher Baines a2caa3ea30 Link to the Statistics and Jobs pages from the index page 2019-07-27 09:38:36 +01:00
Christopher Baines 75226a1499 Fix the latest-processed-revision pages 2019-07-27 09:12:25 +01:00
Christopher Baines 7f8ffb4bea Show links to the cgit pages for repositories on the index page 2019-07-22 21:11:09 +01:00
Christopher Baines 05db0a87f9 Switch the index page to show branches for a repository
As that's probably more useful than recent revisions and jobs.
2019-07-22 20:51:54 +01:00
Christopher Baines c23822e14d Extract out the branches with most recent commits table
As I'm thinking about using this on the index page.
2019-07-22 20:36:40 +01:00
Christopher Baines 219b1fd4ad Extract out view-revision/jobs-and-events
This is common to both view-revision and unknown-revision.
2019-07-22 20:29:38 +01:00
Christopher Baines 7a70e9ca6f Extract out view-revision/git-repositories
As this was duplicated in the functions for viewing known and unknown
revisions.
2019-07-22 20:29:29 +01:00
Christopher Baines 91be72df03 Display the jobs related to a revision on the revision page 2019-07-22 20:00:11 +01:00
Christopher Baines 1f1deac296 Link from a revision to the git repository page 2019-07-19 21:29:56 +01:00
Christopher Baines 1f977f6c12 Improve how repositories and branches are handled
Make the link between repositories and branches clearer, replacing the
/branches and /branch pages by /repository/ and /repository/*/branch/* pages.
2019-07-19 21:22:15 +01:00
Christopher Baines dab984b1d5 Fix match expression
Specify 'GET rather than GET, to actually match the method, rather than
binding it to GET.
2019-07-19 20:20:52 +01:00
Christopher Baines 743cec7cb6 Associate a name with database connections
This helps when working out which connection to the database is doing what.
2019-07-12 19:49:26 +01:00
Christopher Baines c00405e232 Add some missing arguments to view-revision-packages 2019-07-07 16:42:00 +01:00
Christopher Baines 44b9d5658b Add buttons to scroll the page on the job page
As the page can be quite long, so jumping to the top and bottom is really
useful.
2019-06-24 21:01:23 +01:00
Christopher Baines 54b9922466 Iterate the log viewing
Replace the Guile-side HTML escaping with a less complete, but hopefully
faster PostgreSQL side HTML escaping approach.

Also, allow reading part of the log, by default, the last 1,000,000
characters, as this should render quickly.
2019-06-24 20:30:47 +01:00
Christopher Baines afa86d6115 Add a parse-number function to the query-parameters module
Which does the same thing as parse-result-limit, which may have an overly
specific name.
2019-06-24 20:30:19 +01:00
Christopher Baines e2c9709c7d Add a job page
Which shows the output for that job.
2019-06-22 01:51:49 +02:00
Christopher Baines f6ffcb5f02 Remove the revision labels from the links
As that seems neater.
2019-06-20 14:42:38 +02:00
Christopher Baines 6e1a6c9808 Remove the compare form from the index page
It isn't very useful, as you have to know the commits. Now that there's Git
branch information, it should be possible to access this in a more useful way.
2019-06-20 14:34:00 +02:00
Christopher Baines d07e3d9ba8 Move the derivations off the compare page
To the compare/derivations page. Previously, the compare/derivations page was
comparing more than the derivations, notably the package metadata. This change
avoids that, and also reduces the information overload on the compare page.
2019-06-20 14:29:56 +02:00
Christopher Baines bb02511607 Don't have all the inputs use a monospace font
Only those where it's appropriate for the data, like commit hashes.
2019-06-20 14:19:11 +02:00
Christopher Baines ea80311c49 Use revision labels on the index page as well
Also flip the branch and revision columns around, and add date information to
the branch column.
2019-06-19 23:39:53 +01:00
Christopher Baines a168b23c24 Add labels to revisions on the branches and branch pages
And always link to the revision page. Now the label let's you know if you
should expect information or not for that revision.
2019-06-19 22:49:57 +01:00
Christopher Baines e93b8f948e Improve the Unknown revision page
Make it similar to the revision page, as some of the information, like the
link to the relevant CGit instance might be available.
2019-06-19 22:03:55 +01:00
Christopher Baines ed0745096a Add a new page listing jobs 2019-06-17 11:21:58 +01:00
Christopher Baines 9c18c90505 Fix indicating if a revision is queued for processing 2019-06-17 11:21:36 +01:00
Christopher Baines b1c0ec6c97 Remove some peek calls that have crept in 2019-06-16 14:21:34 +01:00
Christopher Baines 32ff341089 Link to the latest processed revision for a branch page 2019-06-16 10:45:22 +01:00
Christopher Baines de8858c274 Make some pages around revisions more generic
So that they can also be used for the /branch/foo/latest-processed-revision
pages. The content is the same, but the title, link, and some of the links on
the page are different.
2019-06-16 10:27:14 +01:00
Christopher Baines 13e2f87555 Support accessing the latest processed revision for a branch
This makes is easier to get the latest data for a branch in a single request,
rather than making one request to find the latest revision, then another to
get the data.
2019-06-13 23:14:04 +01:00
Christopher Baines 3a073d402d Display the request in one go
Otherwise, concurrent requests can cause the output to be interleaved.
2019-06-13 19:07:07 +01:00
Christopher Baines 5323f24133 Add --port and --host as options to the guix-data-service 2019-06-13 19:06:53 +01:00
Christopher Baines 33cf8d66f6 Add a healthcheck endpoint
This indicates currently if the database is accessible and a simple query can
be performed. I'm mostly looking at using this when writing a system test for
this service.
2019-06-06 21:08:34 +01:00
Christopher Baines aad2c9d9e8 Extract the database connection handling from the server
Previously, one of the first things that happened when responding to a request
was a database connection was made, even when serving the CSS. This is
unnecessary, so move the database connection handling in to the controller.

Also, to allow for separating it out from the assets, separate the assets out
from the parts of the controller that require a database connection.
2019-06-06 20:43:54 +01:00
Christopher Baines 95ad50a80c Fix #:no-default-when in the query-parameters module
It now actually looks at the fields which have been provided.
2019-05-20 08:22:41 +01:00
Christopher Baines 9c23451482 Handle the 404 case when viewing store items 2019-05-20 08:17:56 +01:00
Christopher Baines 6add08b109 Add missing revision handling
As previously the pages would render, but with no data.
2019-05-19 22:31:07 +01:00
Christopher Baines cc0ecdc055 Add #:code to render-json 2019-05-19 22:30:50 +01:00
Christopher Baines 2c35331075 Add #:code option to render-html 2019-05-19 22:23:22 +01:00
Christopher Baines e92e095ee9 Add an all results option to the packages page 2019-05-19 21:28:01 +01:00
Christopher Baines 0a7e6a76f3 Add #:no-default-when option to parse-query-parameters
Where there are multiple interrelated fields, then it's useful to only apply
the default if another field hasn't been specified.
2019-05-19 21:26:38 +01:00
Christopher Baines 9f94e3278e Improve the query-parameters module for checkbox support 2019-05-19 21:26:14 +01:00
Christopher Baines 78fb3fafc0 Add type support to form-horizontal-control
Particularly to support checkboxes.
2019-05-19 21:24:50 +01:00
Christopher Baines d4b23f81c1 Cache the pages which don't really change for a day 2019-05-18 20:25:34 +01:00
Christopher Baines 0ca5748c0f Enable passing extra headers for JSON responses
Mostly to enable passing the cache-control header.
2019-05-18 20:25:05 +01:00
Christopher Baines 03faff5da0 Remove the HTTP headers from the html module
Given that the headers may be the same, regardless whether it's HTML or JSON
being sent in the body of the response, I think it makes more sense to handle
the headers in the controller.
2019-05-18 20:08:34 +01:00