aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
Commit message (Collapse)AuthorAge
* Improve linking between the Jobs and Job queue pagesChristopher Baines2019-10-12
|
* Improve error handling for comparison pagesChristopher Baines2019-10-12
|
* Add a page for queued jobsChristopher Baines2019-10-12
|
* Remove the now redundant with-base-and-target-commits functionChristopher Baines2019-10-12
| | | | Uses of this have been replaced with parse-query-parameters.
* Switch the compare page to use parse-query-parametersChristopher Baines2019-10-12
|
* Switch the compare/packages page to use parse-query-parametersChristopher Baines2019-10-12
|
* Add support for using a database URIChristopher Baines2019-10-08
| | | | As this is useful when working with pg_tmp.
* Sort package versions on a branch by version as wellChristopher Baines2019-10-08
| | | | To fix the order when the first_datetime matches.
* Handle potentially serving assets from the storeChristopher Baines2019-10-06
|
* Add a new static-asset-from-store-renderer functionChristopher Baines2019-10-06
| | | | | | | | | | | | 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.
* Add assets-dir-in-store? to the config moduleChristopher Baines2019-10-06
| | | | | To allow looking up if the assets are in the store, which will happen if the Guix Data Service is running from a Guix package.
* Add "No lint warning changes" message to compare pageChristopher Baines2019-10-05
|
* Link from the revision package page to the version history pageChristopher Baines2019-10-03
|
* Add a package page, showing versions for a revisionChristopher Baines2019-10-03
|
* Rename render-revision-package to render-revision-package-versionChristopher Baines2019-10-03
| | | | As this name is more specific.
* Make it easier to retry jobsChristopher Baines2019-10-02
| | | | | | | | Add a new event 'retry', and run jobs where the number of retry events is greater or equal to the number of failure events. Also add an index to the git_branches table to make the finding jobs query a bit faster.
* Hide deleted branches on the index pageChristopher Baines2019-09-29
| | | | | To keep the page length down. All branches can still be seen on the page for specific repositories.
* Remove a redundant query conditionChristopher Baines2019-09-29
| | | | The git_branches.commits column doesn't allow NULL values.
* Fix the 'NULL' values in git_branches for the commitsChristopher Baines2019-09-29
| | | | | | | | | | | 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.
* Fail early if the inferior is #fChristopher Baines2019-09-29
| | | | This happens when the repl can't be loaded for example.
* Try setting the en_US.UTF-8 locale, if the normalised failsChristopher Baines2019-09-29
| | | | | Older versions of the glibc-locales package just contain the UTF-8 variants, not utf8.
* Don't error when processing revisions of Guix without graft supportChristopher Baines2019-09-29
|
* Handle loading revisions without the (guix lint) moduleChristopher Baines2019-09-29
| | | | | This is a recent addition, so to support loading revisions without it, better handle the error when loading the module.
* Unset the GUILE_LOAD_* environment variables when using inferiorsChristopher Baines2019-09-28
| | | | Otherwise modules from outside of the inferior can leak in.
* Provide the job id for jobs on the revision pageChristopher Baines2019-09-28
| | | | | 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.
* Add JSON output for the branch package versions pageChristopher Baines2019-09-27
|
* Add some bars to the table on the branch package versions pageChristopher Baines2019-09-27
| | | | To provide a more visual view of when the package versions were available.
* Add a new page to show package versions available on a branchChristopher Baines2019-09-27
| | | | | This is useful when looking back through history at what package versions were previously available.
* Add a new table to store package versions by revision rangesChristopher Baines2019-09-27
| | | | | | | This isn't new information, but derived from information already in the database. It's collected here to make querying faster. The table is updated when each new revision is entered.
* Tweak the textual search to rank exact name matches higherChristopher Baines2019-09-26
| | | | | | | | Previously, if you searched for packages like Ruby or Guile, the actual Ruby and Guile packages would be low in the rankings, as the terms Ruby or Guile don't appear much in the descriptions. Therefore, change the ordering to make these exact matches appear higher up.
* Handle the README.html file being missingChristopher Baines2019-09-23
|
* Serve the README.html file on the siteChristopher Baines2019-09-21
|
* Fix the repository pageChristopher Baines2019-09-14
| | | | The repository id is expected to be a number.
* Update the "source code here" linkChristopher Baines2019-09-10
|
* Show lint warnings on the comparison pageChristopher Baines2019-09-07
|
* Use numeric ids for git repositoriesChristopher Baines2019-09-05
|
* Add newline to the end of the duplicate lint warning outputChristopher Baines2019-09-05
|
* Use numbers for ids in the derivation modelChristopher Baines2019-09-05
| | | | | As this is easier to handle when doing queries with PostgreSQL, as you can use the type information to determine how to handle the values.
* Fix data input for package-metadataChristopher Baines2019-09-05
| | | | | Represent non-string home pages as NULL, and delete duplicates, as package metadata entries can be duplicated.
* Improve error handling for insert-missing-data-and-return-all-idsChristopher Baines2019-09-05
|
* Support deleting duplicates in insert-missing-data-and-return-all-idsChristopher Baines2019-09-05
| | | | | | This is useful when you want to pass in data with some duplicates, and get back a list of ids, where the duplicate entries are represented by the same id.
* Improve the package and package-metadata modulesChristopher Baines2019-09-05
| | | | | | | Add tests around the package module, extract out the use of the inferior-package record assessors so that they aren't part of the tests, and switch across the package-metadata module to use insert-missing-data-and-return-all-ids.
* Start handling ids as numbers, rather than stringsChristopher Baines2019-09-05
| | | | | | | | | squee, returns all data as strings, and expects strings as inputs to queries. So, keeping the ids as strings was easy initially, but it means that you can't tell from the type whether it should be quoted, or not... Therefore, handle ids as strings, converting them to numbers when they're fetched from the database, and back to strings as part of the queries.
* Reduce code duplication in the package moduleChristopher Baines2019-09-05
| | | | By using insert-missing-data-and-return-all-ids.
* Reduce code duplication in the package-derivation moduleChristopher Baines2019-09-04
| | | | Through using insert-missing-data-and-return-all-ids.
* Change license code to use insert-missing-data-and-return-all-idsChristopher Baines2019-09-04
| | | | As this now supports inserting sets of data.
* Improve insert-missing-data-and-return-all-idsChristopher Baines2019-09-04
| | | | | | Use exec-query-with-null-handling to distinguish NULL values, change it to just take a list of fields and remove the handlers. Also, add a sets-of-data? parameter so that this can be used licenses.
* Hack better NULL support on to (squee)Christopher Baines2019-09-04
| | | | | | | | | PQgetvalue used by squee returns null values as empty strings, which are ambiguous for string fields. Therefore, use PQgetisnull to implement a serialiser for squee which checks empty strings to see if they're actually a NULL value, then returns '() in this case. exec-query-with-null-handling can be used to access this behaviour.
* Change normalise-database-values to normalise-valuesChristopher Baines2019-09-02
| | | | As these values are not from the database, which is why they're not strings.
* Fix a couple of GET's in the controller match expressionChristopher Baines2019-09-01
| | | | These should be symbols, not just placeholders.