Include the status of derivations

On the comparison page.
This commit is contained in:
Christopher Baines 2019-03-06 22:58:05 +00:00
parent 7a90afe980
commit e656b0967b
Signed by: cbaines
GPG key ID: 5E28A33B0B84F577
4 changed files with 63 additions and 22 deletions

View file

@ -142,27 +142,27 @@
base-revision-id
target-revision-id))))
(let ((base-derivations
(package-data-vhash->derivations
(package-data-vhash->derivations-and-build-status
conn
base-packages-vhash))
(target-derivations
(package-data-vhash->derivations
(package-data-vhash->derivations-and-build-status
conn
target-packages-vhash)))
(cond
((eq? content-type 'json)
(render-json
`((base . ((commit . ,base-commit)
(derivations . ,base-derivations)))
(target . ((commit . ,target-commit)
(derivations . ,target-derivations))))))
(else
(apply render-html
(compare/derivations
base-commit
target-commit
base-derivations
target-derivations)))))))
(cond
((eq? content-type 'json)
(render-json
`((base . ((commit . ,base-commit)
(derivations . ,base-derivations)))
(target . ((commit . ,target-commit)
(derivations . ,target-derivations))))))
(else
(apply render-html
(compare/derivations
base-commit
target-commit
base-derivations
target-derivations)))))))
(define (render-compare/packages content-type
conn