Switch to storing Git repositories in a table
Rather than just storing the URL in the guix_revisions and load_new_guix_revision_jobs tables. This will help when storing more information like tags and branches in the future.
This commit is contained in:
parent
051962b54d
commit
ce4c3c6ed3
12 changed files with 246 additions and 77 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#:use-module (web uri)
|
||||
#:use-module (squee)
|
||||
#:use-module (guix-data-service comparison)
|
||||
#:use-module (guix-data-service model git-repository)
|
||||
#:use-module (guix-data-service model guix-revision)
|
||||
#:use-module (guix-data-service model package)
|
||||
#:use-module (guix-data-service model package-derivation)
|
||||
|
|
@ -287,8 +288,13 @@
|
|||
(match-lambda
|
||||
((GET)
|
||||
(apply render-html (index
|
||||
(most-recent-n-guix-revisions conn 10)
|
||||
(most-recent-n-load-new-guix-revision-jobs conn 1000))))
|
||||
(map
|
||||
(lambda (git-repository-details)
|
||||
(cons git-repository-details
|
||||
(guix-revisions-and-jobs-for-git-repository
|
||||
conn
|
||||
(car git-repository-details))))
|
||||
(all-git-repositories conn)))))
|
||||
((GET "builds")
|
||||
(apply render-html
|
||||
(view-builds (select-build-stats conn)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue