[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/10: Fix rendering of the /builds page
From: |
Christopher Baines |
Subject: |
07/10: Fix rendering of the /builds page |
Date: |
Wed, 21 Oct 2020 15:50:32 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit 553f00d4cf5da7f18180a20fa2803883fd53347d
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Wed Oct 21 19:58:52 2020 +0100
Fix rendering of the /builds page
---
guix-data-service/web/build/controller.scm | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/guix-data-service/web/build/controller.scm
b/guix-data-service/web/build/controller.scm
index ba9b22f..731ba11 100644
--- a/guix-data-service/web/build/controller.scm
+++ b/guix-data-service/web/build/controller.scm
@@ -75,9 +75,14 @@
'()
'()
'()))
- (letpar& ((build-servers
+ (letpar& ((build-server-options
(with-thread-postgresql-connection
- select-build-servers))
+ (lambda (conn)
+ (map (match-lambda
+ ((id url lookup-all-derivations
+ lookup-builds)
+ (cons url id)))
+ (select-build-servers conn)))))
(build-stats
(with-thread-postgresql-connection
(lambda (conn)
@@ -99,6 +104,6 @@
(render-html
#:sxml (view-builds parsed-query-parameters
build-status-strings
- build-servers
+ build-server-options
build-stats
builds-with-context))))))
- branch master updated (971a474 -> 63fc191), Christopher Baines, 2020/10/21
- 02/10: Cleanup scheduled and started builds with "0" timestamps, Christopher Baines, 2020/10/21
- 01/10: Fix broken links to builds, Christopher Baines, 2020/10/21
- 03/10: Add a view build link on the build page, Christopher Baines, 2020/10/21
- 04/10: Regenerate the latest_build_status table, Christopher Baines, 2020/10/21
- 05/10: Use the status for ordering, as well as timestamp, Christopher Baines, 2020/10/21
- 07/10: Fix rendering of the /builds page,
Christopher Baines <=
- 06/10: Limit the builds displayed on the /builds page, Christopher Baines, 2020/10/21
- 10/10: Sort the pending builds by timestamp, Christopher Baines, 2020/10/21
- 08/10: Increase the limit on pending builds to query, Christopher Baines, 2020/10/21
- 09/10: Update insert-new-latest-status-entries, Christopher Baines, 2020/10/21