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

779 commits

Author SHA1 Message Date
Danjela Lura f16fdb44f1 Add indications for no translations available in the packages page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura 7d85372acc Embed the locale option in the URI of the package page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Danjela Lura 5708b81002 Include locale in the JSON response for the packages page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-26 17:54:19 +01:00
Christopher Baines 0b4825427d Support package derivations for the latest revision 2020-06-20 18:56:42 +01:00
Christopher Baines 94cad47b82 Add missing locale parameter to the latest revision packages page 2020-06-20 18:56:25 +01:00
Danjela Lura 9e93b2b3a8 Fix the test-model-package-metadata test
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Danjela Lura 365bf27838 Fix the test-model-package test
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Danjela Lura a3ac33c0e1 Provide the packages page with translations
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Danjela Lura 8d9a4d105c Get the translated package synopsis and descriptions into the database
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-19 16:03:32 +01:00
Christopher Baines 308e553b11 Guard against some changes in how guile-json represents null values 2020-06-19 14:12:56 +01:00
Danjela Lura 480d718fa8 Fix lint checker tests
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura 533bf91ab1 Fall back to en_US.utf8 in the package page
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura d10c6f5aa9 Fall back to en_US.utf8 for the lint warnings page for a revision
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura f0833f8d02 Provide the comparison page with translated lint warnings
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura 14cd95f244 Make the form-horizontal-control procedure aware of hidden inputs
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura ecd460867b Make the query that provides locale options look nicer
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura d3096de655 Use lint checker related translations on some pages
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura b8abe38352 Add checks to guard against null data
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Danjela Lura f67bea719d Get the translated lint checker descriptions into the database
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-06-07 20:17:03 +01:00
Christopher Baines ae6541af1e Fix select-build-servers with respect to the lookup-builds field 2020-06-06 14:40:36 +01:00
Christopher Baines 91ba00e813 Handle the absence of guile3.0-readline in the guix-dev.scm file 2020-06-06 14:32:44 +01:00
Christopher Baines e7e5a281ee Support package substitute availability for the latest revision 2020-06-03 20:14:16 +01:00
Christopher Baines 67cda8f9cc Make the package-reproducibility page work for the latest revision 2020-06-03 20:06:26 +01:00
Christopher Baines 11b13edac9 Populate package derivation outputs select options always
Even when the query parameters are invalid, as this is more useful. Thanks to
nckx for reporting.
2020-06-03 20:02:39 +01:00
Christopher Baines 916b594473 Make nar_urls file sizes optional 2020-06-03 06:56:59 +01:00
Christopher Baines 5894f05147 Fix a small issue with processing the build-server-urls 2020-06-02 18:45:19 +01:00
Christopher Baines 1241726162 Decode the names of requested nar files
It seems that when requesting substitutes, the filename is percent encoded,
for example:

  /nar/zyw0clrhh1smfxvkb6lih77fss85m75w-w3m-0.5.3%2Bgit20190105-checkout.drv
2020-06-01 19:35:06 +01:00
Christopher Baines f8de7cf42e Fix fetching nar files with a .json extension
Previously, the .json extension would be stripped, resulting in a 404, this
fixes that.
2020-06-01 19:11:43 +01:00
Christopher Baines b6754c8a4c Add a lookup_builds field to the build_servers table
This is to allow for build servers where only the substitutes should be
queried, and it shouldn't be assumed that they're running Cuirass.
2020-05-24 17:02:53 +01:00
Christopher Baines f11421824d Add a helper procedure to delete data for deleted branches 2020-05-23 21:05:44 +01:00
Christopher Baines 9c72fc23dc Move around --no-tablespaces
Turns out, at the moment, this is ineffective when combined with the archive
formats, like the custom format in use. Therefore, move it to the pg_restore
command, where hopefully it'll work.
2020-05-16 08:42:00 +01:00
Christopher Baines 796c129a36 Don't include tablespace assignments in the backup dump
This is a comprimise, as this won't help restoring the backup in situations
you want tablespaces, but I'm currently viewing tablespaces as a deployment
concern, so maybe the right thing to do is exclude them. This approach will at
least keep the same behaviour in terms of restoring the backups locally.

This will fix the small dump creation process on data.guix.gnu.org, which is
currently broken because of the tablespace assignments when trying to restore
the backups.
2020-05-14 20:49:46 +01:00
Christopher Baines a21d3d3cf7 Better handle cuirass builds with a stoptime of 0
Use the timestamp instead for the status. Previously no status was being
associated with these builds.
2020-05-06 23:09:05 +01:00
Christopher Baines 2e3276e803 Tweak select-output-consistency-for-revision
I don't think this actually changes the result, but I think the query is a bit
better formed.
2020-05-03 21:27:55 +01:00
Christopher Baines c5a5684f1d Add a new package substitute availability page 2020-05-03 21:26:47 +01:00
Christopher Baines 6d3e8660bd Allow filtering by substitute availability for derivation outputs 2020-05-03 21:26:47 +01:00
Christopher Baines 3cc14ae03a Add a couple of options to select-derivation-outputs-in-revision
To filter outputs by whether particular substitute servers have a substitute.
2020-05-03 21:20:53 +01:00
Christopher Baines e4cb3a815a Rename render-revision-derivation-outputs
To mention that this is just for package derivations.
2020-05-03 21:20:22 +01:00
Christopher Baines 6baef6ae25 Split out querying of build servers and substitute servers
These are related things, but somewhat separate. This change should make it
easier to deal with changes regarding querying build servers, and querying
substitute servers.
2020-05-03 13:23:43 +01:00
Christopher Baines b4111af288 Fix a window clause in package-outputs-for-branch
This was leading to the first and last revision datetimes to be wrong.
2020-05-03 09:53:09 +01:00
Christopher Baines edcf1c1e8f Fetch narinfo files first, because that's faster
At least than fetching builds.
2020-04-25 12:46:39 +01:00
Christopher Baines 111576e3f9 Remove odd package derivations with mismatched systems
This follows on from 79993bfaef, disassociating
the relevant derivations from the revisions.
2020-04-24 21:47:06 +01:00
Christopher Baines 79993bfaef Fix the link to the package derivation outputs page 2020-04-24 21:38:34 +01:00
Christopher Baines 4d4ee801c0 Guard against strange derivations for packages
Where the requested system doesn't match that of the returned derivation. This
seems to happen for packages like dev86, wine and go.
2020-04-24 21:37:35 +01:00
Danjela Lura 0ec2673493 Add support for query parameters to the View JSON button of Jobs
Signed-off-by: Christopher Baines <mail@cbaines.net>
2020-04-24 20:00:56 +01:00
Christopher Baines 5af213a165 Include if data is available in the JSON response for a branch 2020-04-24 18:54:12 +01:00
Christopher Baines f83cff7107 Add a JSON output for the revision channel instances 2020-04-24 10:46:20 +01:00
Christopher Baines c2ba4e7142 Fix the field names for the JSON representation of a branch 2020-04-24 10:38:34 +01:00
Christopher Baines 7a7dedfa1b Implement the JSON response for the package derivations page 2020-04-24 10:28:44 +01:00
Christopher Baines 68420b1085 Support controlling the fields returned for package derivations
Mostly so that the builds can be avoided when querying for all the
derivations, as that's slow.
2020-04-24 10:17:12 +01:00