aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Display the request in one goChristopher Baines2019-06-13
| | | | Otherwise, concurrent requests can cause the output to be interleaved.
* Add --port and --host as options to the guix-data-serviceChristopher Baines2019-06-13
|
* Add an option to create a pid-fileChristopher Baines2019-06-11
| | | | | This'll help the a service manager (like the shepherd) know when the service is ready, which at the moment, means the database migrations have happened.
* Change to the sqitch directory to run deployChristopher Baines2019-06-11
| | | | As this means it can find the relevant files.
* Pass the --db-client option to sqitch deployChristopher Baines2019-06-11
| | | | So that it can always find psql.
* Pass --plan-file to the sqitch deploy commandChristopher Baines2019-06-08
|
* Add sqitch and asset related config valuesChristopher Baines2019-06-08
|
* Tweak the Makefile.am to install the right thingsChristopher Baines2019-06-08
| | | | | Install the assets and sqitch files, as they are needed. Remove the test related sources.
* Add a --update-database optionChristopher Baines2019-06-07
| | | | | | This runs Sqitch on startup, which should make managing the database easier, as you just have to restart the service with this option, and the database should be updated if necessary.
* Add a healthcheck endpointChristopher Baines2019-06-06
| | | | | | 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.
* Extract the database connection handling from the serverChristopher Baines2019-06-06
| | | | | | | | | 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.
* Add a new test to cover some of the loading new revisions codeChristopher Baines2019-06-02
|
* Add more detailed new revision job handlingChristopher Baines2019-06-02
| | | | | | | | Create a new events table for the new guix revision jobs, and update this when processing a job starts, as well as finished with success or failure. Additionally, remove the dependnency on open-inferior/container, as this functionality isn't merged in to Guix master yet.
* Record job success without deleting the job recordChristopher Baines2019-06-02
| | | | | | | Previously, the records for jobs would be deleted. It's useful to know when jobs were inserted in to the database, as well as when they succeeded (if they have). This change also makes it possible to keep track of jobs that have failed, as they won't be deleted.
* Add some missing test files to Makefile.amChristopher Baines2019-06-02
|
* Fix #:no-default-when in the query-parameters moduleChristopher Baines2019-05-20
| | | | It now actually looks at the fields which have been provided.
* Handle the 404 case when viewing store itemsChristopher Baines2019-05-20
|
* Add missing revision handlingChristopher Baines2019-05-19
| | | | As previously the pages would render, but with no data.
* Add #:code to render-jsonChristopher Baines2019-05-19
|
* Add #:code option to render-htmlChristopher Baines2019-05-19
|
* Add an all results option to the packages pageChristopher Baines2019-05-19
|
* Add #:no-default-when option to parse-query-parametersChristopher Baines2019-05-19
| | | | | Where there are multiple interrelated fields, then it's useful to only apply the default if another field hasn't been specified.
* Improve the query-parameters module for checkbox supportChristopher Baines2019-05-19
|
* Add type support to form-horizontal-controlChristopher Baines2019-05-19
| | | | Particularly to support checkboxes.
* Cache the pages which don't really change for a dayChristopher Baines2019-05-18
|
* Enable passing extra headers for JSON responsesChristopher Baines2019-05-18
| | | | Mostly to enable passing the cache-control header.
* Remove the HTTP headers from the html moduleChristopher Baines2019-05-18
| | | | | | 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.
* Show the branches for a revisionChristopher Baines2019-05-18
|
* Add git-branches-with-repository-details-for-commitChristopher Baines2019-05-18
| | | | | To get git repository and git branch information suitable for the revision page.
* Add a utility to group list valuesChristopher Baines2019-05-18
| | | | This is useful for some queries with duplicated parts of the results.
* Fix the table headers on the Branches pageChristopher Baines2019-05-18
| | | | Date and Commit were the wrong way around.
* Add a View JSON button to the packages pageChristopher Baines2019-05-16
|
* Fix query-parameters->string for multi-valued parametersChristopher Baines2019-05-16
|
* Allow specifying the fields on the packages pageChristopher Baines2019-05-16
| | | | | This is mostly for the JSON output, as it allows much more information to be included.
* Add support to multi-value fields with defaultsChristopher Baines2019-05-16
| | | | To the query parameters module.
* Fix the package-metadata testsChristopher Baines2019-05-16
|
* Fix how email dates are inserted in to PostgreSQLChristopher Baines2019-05-16
| | | | | Previously, the timezone was stripped off, so the timestamps were off. This commit changes the code to use a Unix timestamp, which avoids this issue.
* Store license information for packagesChristopher Baines2019-05-15
| | | | | | | | | | And display this on the package page. This uses a couple of new tables, and an additional field in the package_metadata table. Currently, the order of the licenses in the package definition isn't stored, as I'm not sure the order in the list is significant.
* Fix type issues with the location idsChristopher Baines2019-05-14
| | | | | | | | On one code path, they were handled as numbers, whereas elsewhere they were handled as strings. This led to the package-metadata code trying to insert duplicate entries. Instead, just handle them as strings everywhere.
* Order the all-git-repositories resultsChristopher Baines2019-05-13
| | | | So at least they're stable.
* Store and display the location of packagesChristopher Baines2019-05-13
| | | | | | | Store the location a package can be found at, and display this on the package page. If available, link off to the git repository containing the package.
* Add a textual search to the packages pageChristopher Baines2019-05-12
|
* Add a function for making query parameters mutually exclusiveChristopher Baines2019-05-12
| | | | | This allows building more complicated forms, where some of the query parameters don't work together.
* Add a function for searching for packagesChristopher Baines2019-05-12
|
* Add some basic pagination to the packages pageChristopher Baines2019-05-12
| | | | | Lower powered devices will have problems displaying all ~9000+ packages, so return a smaller number by default.
* Remove the sha1_hash from the package_metadata tableChristopher Baines2019-05-12
| | | | | | | | I'm thinking about adding more fields to this table, and the sha1_hash values will make this tricker. Therefore, remove the value, and adjust the existing code to cope. This commit also adds a new test which coveres some of the changed functionality.
* Add a mock-inferior moduleChristopher Baines2019-05-12
| | | | This to help test code which uses the (guix inferior) module.
* Add a (tests driver) moduleChristopher Baines2019-05-12
| | | | | Using the test driver from build-aux/test-driver.scm, as this shows the test errors when tests fail.
* Add initial JSON output for the package pageChristopher Baines2019-05-12
|
* Add a JSON variant of the packages pageChristopher Baines2019-05-12
|