aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
Commit message (Collapse)AuthorAge
* WIPwip-derivation-comparisonChristopher Baines2019-11-10
|
* Include the hash algorithm and hash on the formatted derivation pageChristopher Baines2019-11-10
|
* Improve select-derivation-outputs-by-derivation-idChristopher Baines2019-11-10
| | | | It now converts the recursive value to a boolean.
* Add a page to show a formatted derivation representationChristopher Baines2019-11-09
| | | | | | 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.
* Add a function to select derivation sourcesChristopher Baines2019-11-09
|
* Improve some derivation model functionsChristopher Baines2019-11-09
| | | | | | Return integer values for ids, rather than strings (as this type is more appropriate). Also, better parse the derivation arguments and environment variables.
* Add a function to help parse PostgreSQL arraysChristopher Baines2019-11-09
|
* Add first version of a page with the history of package derivationsChristopher Baines2019-11-09
| | | | | Some filtering options need adding for the system and target, as it's currently hardcoded, but the general page does work.
* Add a new table to describe the history of derivationsChristopher Baines2019-11-09
| | | | | There's already the package_versions_by_guix_revision_range table, but I think it would be also useful to be able to see how derivations change over time.
* Sort the derivation inputs by derivation file nameChristopher Baines2019-11-03
| | | | As this is the way they're sorted in the derivation.
* Work around a problem loading guix revisionsChristopher Baines2019-11-03
| | | | | | Between b13b9384bc43bf93c754c037956c8ef9a99c2b41 and 601171a9bc7ca6e4acb932895a07c0ca9aedfdac, this method failed, so catch the error to allow loading the affected revisions.
* Fix various warnings relating to the controller refactoringChristopher Baines2019-10-18
|
* Handle unknown requests better within controllersChristopher Baines2019-10-18
|
* Send inferior error output to stderrChristopher Baines2019-10-18
| | | | | | | | Ideally this would go in to the database somehow as well, but the only idea I have for that is pass in a pipe, and then spawn a thread to read from the other end of that pipe in a loop to send the output to the database. That hasn't been written yet, so just send the output to stderr for now.
* Remove unused inferior-package-transitive-supported-systems functionChristopher Baines2019-10-18
|
* Fix some missing branch constraints in package-versions-for-branchChristopher Baines2019-10-17
| | | | | The lack of these meant that versions on other branches could appear in the results.
* Fix some long lines in the package-versions-for-branch queryChristopher Baines2019-10-17
|
* Extract the comparison pages out from the main modulesChristopher Baines2019-10-14
| | | | | In to their own modules. This should help make the code more understandable, and allow future refactoring for readability.
* Move the unknown-revision function to the correct moduleChristopher Baines2019-10-14
|
* Refactor the repository pages codeChristopher Baines2019-10-14
| | | | | 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.
* Refactor the revision pagesChristopher Baines2019-10-14
| | | | | | 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.
* Remove the query-parameters from controller-with-database-connectionChristopher Baines2019-10-13
| | | | As I believe it's unused.
* Refactor the jobs pages codeChristopher Baines2019-10-13
| | | | | | 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.
* Add a compare-by-datetime pageChristopher Baines2019-10-13
| | | | | | | | | | 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.
* Add a variant of compare/derivations to work with a branch and datetimeChristopher Baines2019-10-13
|
* Add select-guix-revision-for-branch-and-datetimeChristopher Baines2019-10-13
| | | | To get the guix revision that was on a branch at a given date and time.
* 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.