Support package derivations for the latest revision
This commit is contained in:
parent
94cad47b82
commit
0b4825427d
1 changed files with 30 additions and 0 deletions
|
|
@ -202,6 +202,36 @@
|
||||||
(render-unknown-revision mime-types
|
(render-unknown-revision mime-types
|
||||||
conn
|
conn
|
||||||
commit-hash))))
|
commit-hash))))
|
||||||
|
(('GET "repository" repository-id "branch" branch-name "latest-processed-revision" "package-derivations")
|
||||||
|
(let ((commit-hash
|
||||||
|
(latest-processed-commit-for-branch conn repository-id branch-name)))
|
||||||
|
(if commit-hash
|
||||||
|
(let ((parsed-query-parameters
|
||||||
|
(guard-against-mutually-exclusive-query-parameters
|
||||||
|
(parse-query-parameters
|
||||||
|
request
|
||||||
|
`((search_query ,identity)
|
||||||
|
(system ,parse-system #:multi-value)
|
||||||
|
(target ,parse-target #:multi-value)
|
||||||
|
(maximum_builds ,parse-number)
|
||||||
|
(minimum_builds ,parse-number)
|
||||||
|
(field ,identity #:multi-value
|
||||||
|
#:default ("system" "target" "builds"))
|
||||||
|
(after_name ,identity)
|
||||||
|
(limit_results ,parse-result-limit
|
||||||
|
#:no-default-when (all_results)
|
||||||
|
#:default 10)
|
||||||
|
(all_results ,parse-checkbox-value)))
|
||||||
|
'((limit_results all_results)))))
|
||||||
|
|
||||||
|
(render-revision-package-derivations mime-types
|
||||||
|
conn
|
||||||
|
commit-hash
|
||||||
|
parsed-query-parameters
|
||||||
|
#:path-base path))
|
||||||
|
(render-unknown-revision mime-types
|
||||||
|
conn
|
||||||
|
commit-hash))))
|
||||||
(('GET "repository" repository-id "branch" branch-name "latest-processed-revision" "package-reproducibility")
|
(('GET "repository" repository-id "branch" branch-name "latest-processed-revision" "package-reproducibility")
|
||||||
(let ((commit-hash
|
(let ((commit-hash
|
||||||
(latest-processed-commit-for-branch conn repository-id branch-name)))
|
(latest-processed-commit-for-branch conn repository-id branch-name)))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue