[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/10: Start merging the package derivation comparison code
From: |
Christopher Baines |
Subject: |
08/10: Start merging the package derivation comparison code |
Date: |
Sat, 21 Nov 2020 16:11:45 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 0c3e208a834b83112c7b33bf2c5fbe77c2ce923a
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sat Nov 21 20:29:14 2020 +0000
Start merging the package derivation comparison code
---
guix-data-service/web/compare/controller.scm | 2 ++
guix-data-service/web/compare/html.scm | 22 ++--------------------
2 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/guix-data-service/web/compare/controller.scm
b/guix-data-service/web/compare/controller.scm
index 6c96d55..1a811d6 100644
--- a/guix-data-service/web/compare/controller.scm
+++ b/guix-data-service/web/compare/controller.scm
@@ -571,6 +571,7 @@
(render-html
#:sxml (compare/package-derivations
query-parameters
+ 'revision
systems
(valid-targets->options targets)
build-status-strings
@@ -626,6 +627,7 @@
(render-html
#:sxml (compare/package-derivations
query-parameters
+ 'revision
systems
(valid-targets->options targets)
build-status-strings
diff --git a/guix-data-service/web/compare/html.scm
b/guix-data-service/web/compare/html.scm
index 4406d1d..2ae85a0 100644
--- a/guix-data-service/web/compare/html.scm
+++ b/guix-data-service/web/compare/html.scm
@@ -653,6 +653,7 @@
environment-variables))))))))))
(define (compare/package-derivations query-parameters
+ mode
valid-systems
valid-targets
valid-build-statuses
@@ -688,26 +689,7 @@
(@ (method "get")
(action "")
(class "form-horizontal"))
- ,(form-horizontal-control
- "Base commit" query-parameters
- #:required? #t
- #:help-text "The commit to use as the basis for the comparison."
- #:font-family "monospace")
- ,(form-horizontal-control
- "Target commit" query-parameters
- #:required? #t
- #:help-text "The commit to compare against the base commit."
- #:font-family "monospace")
- ,(form-horizontal-control
- "System" query-parameters
- #:options valid-systems
- #:help-text "Only include derivations for this system."
- #:font-family "monospace")
- ,(form-horizontal-control
- "Target" query-parameters
- #:options valid-targets
- #:help-text "Only include derivations that are build for this
system."
- #:font-family "monospace")
+ ,@(compare-form-controls-for-mode mode query-parameters)
,(form-horizontal-control
"Build change" query-parameters
#:options '(("(none specified)" . "")
- branch master updated (3e15900 -> e93da1a), Christopher Baines, 2020/11/21
- 01/10: Avoid crashing when no compare arguments are provided, Christopher Baines, 2020/11/21
- 04/10: Improve the comparison page interface, Christopher Baines, 2020/11/21
- 02/10: Avoid errors in form-horizontal-control, Christopher Baines, 2020/11/21
- 03/10: Specify an invalid parameter message in parse-datetime, Christopher Baines, 2020/11/21
- 05/10: Add default datetimes for compare-by-datetime, Christopher Baines, 2020/11/21
- 06/10: Fix some links on the compare page, Christopher Baines, 2020/11/21
- 09/10: Consolidate the package derivation comparison code, Christopher Baines, 2020/11/21
- 08/10: Start merging the package derivation comparison code,
Christopher Baines <=
- 07/10: Extract out the compare form controls, Christopher Baines, 2020/11/21
- 10/10: Fix the JSON link on the compare package derivations page, Christopher Baines, 2020/11/21