aboutsummaryrefslogtreecommitdiff
path: root/guix-qa-frontpage/server.scm
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-07-21 15:09:13 +0100
committerChristopher Baines <mail@cbaines.net>2023-07-21 15:09:13 +0100
commit3b2a165c4bee446771780e80071bd05bd6eb827b (patch)
treefad56ff964fba83a12249bb8e53afb80bda81310 /guix-qa-frontpage/server.scm
parenta5a47e757fdfc6292b604e3b75c05ad53ee80b6f (diff)
downloadqa-frontpage-3b2a165c4bee446771780e80071bd05bd6eb827b.tar
qa-frontpage-3b2a165c4bee446771780e80071bd05bd6eb827b.tar.gz
Port the package changes functionality from branches to issues
Diffstat (limited to 'guix-qa-frontpage/server.scm')
-rw-r--r--guix-qa-frontpage/server.scm23
1 files changed, 23 insertions, 0 deletions
diff --git a/guix-qa-frontpage/server.scm b/guix-qa-frontpage/server.scm
index d7ad216..039a937 100644
--- a/guix-qa-frontpage/server.scm
+++ b/guix-qa-frontpage/server.scm
@@ -464,6 +464,29 @@
"This could mean the issue does not exist, it
has no patches or has been closed.")
#:code 404)))))
+ (('GET "issue" number "package-changes")
+ (let ((revisions
+ derivation-changes
+ substitute-availability
+ up-to-date-with-master
+ master-branch-systems-with-low-substitute-availability
+ (with-sqlite-cache
+ database
+ 'issue-data
+ issue-data
+ #:args
+ (list (string->number number))
+ #:version 2
+ #:ttl 6000)))
+ (render-html
+ #:sxml
+ (issue-package-changes-view number
+ derivation-changes
+ (or
+ (and=>
+ (uri-query (request-uri request))
+ parse-query-string)
+ '())))))
((method path ...)
(render-html
#:sxml (general-not-found