[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/08: Include if data is available in the JSON response for a branch
From: |
Christopher Baines |
Subject: |
08/08: Include if data is available in the JSON response for a branch |
Date: |
Fri, 24 Apr 2020 13:54:48 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit 5af213a165e3b603b27a773d52676cec633c32cc
Author: Christopher Baines <address@hidden>
AuthorDate: Fri Apr 24 18:54:12 2020 +0100
Include if data is available in the JSON response for a branch
---
guix-data-service/web/repository/controller.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/guix-data-service/web/repository/controller.scm
b/guix-data-service/web/repository/controller.scm
index 257b16a..88739d5 100644
--- a/guix-data-service/web/repository/controller.scm
+++ b/guix-data-service/web/repository/controller.scm
@@ -88,9 +88,10 @@
`((revisions
. ,(list->vector
(map (match-lambda
- ((commit-hash date _ _)
- `((date . ,date)
- (commit-hash . ,commit-hash))))
+ ((commit-hash date revision-exists? _)
+ `((date . ,date)
+ (commit-hash . ,commit-hash)
+ (data_available . ,revision-exists?))))
revisions))))))
(else
(render-html
- branch master updated (c61a8af -> 5af213a), Christopher Baines, 2020/04/24
- 01/08: Support setting a statement timeout, Christopher Baines, 2020/04/24
- 02/08: Set a statement timeout of 60 seconds for web requests, Christopher Baines, 2020/04/24
- 03/08: Make it clearer that some things relate to package derivations, Christopher Baines, 2020/04/24
- 05/08: Implement the JSON response for the package derivations page, Christopher Baines, 2020/04/24
- 07/08: Add a JSON output for the revision channel instances, Christopher Baines, 2020/04/24
- 06/08: Fix the field names for the JSON representation of a branch, Christopher Baines, 2020/04/24
- 08/08: Include if data is available in the JSON response for a branch,
Christopher Baines <=
- 04/08: Support controlling the fields returned for package derivations, Christopher Baines, 2020/04/24