Remove the statistics page

As it's been broken for a long time now, there are too many rows to count.
This commit is contained in:
Christopher Baines 2024-06-30 11:14:16 +01:00
parent 335715bc72
commit de98cbfaa3
2 changed files with 0 additions and 38 deletions

View file

@ -822,15 +822,6 @@
(all-git-repositories conn))))))
(('GET "builds")
(delegate-to build-controller))
(('GET "statistics")
(letpar& ((guix-revisions-count
(with-resource-from-pool (connection-pool) conn count-guix-revisions))
(count-derivations
(with-resource-from-pool (connection-pool) conn count-derivations)))
(render-html
#:sxml (view-statistics guix-revisions-count
count-derivations))))
(('GET "metrics")
(parameterize
((resource-pool-default-timeout 6))

View file

@ -43,7 +43,6 @@
index
readme
general-not-found
view-statistics
view-builds
view-derivation
view-formatted-derivation
@ -304,10 +303,6 @@
(@ (class "btn-group pull-right")
(style "margin-top: 1.3rem;")
(role "group"))
(a (@ (class "btn btn-lg btn-default")
(href "/statistics")
(role "button"))
"Statistics")
(a (@ (class "btn btn-lg btn-default")
(href "/jobs")
(role "button"))
@ -335,30 +330,6 @@
branches-with-most-recent-commits)))))))
git-repositories-and-revisions)))))
(define (view-statistics guix-revisions-count derivations-count)
(define page-header "Statistics")
(layout
#:title
page-header
#:body
`(,(header)
(div
(@ (class "container"))
(div
(@ (class "row"))
(div
(@ (class "col-md-6"))
(h3 "Guix revisions")
(strong (@ (class "text-center")
(style "font-size: 2em; display: block;"))
,guix-revisions-count))
(div
(@ (class "col-md-6"))
(h3 "Derivations")
(strong (@ (class "text-center")
(style "font-size: 2em; display: block;"))
,derivations-count)))))))
(define (table/branches-with-most-recent-commits
git-repository-id branches-with-most-recent-commits)
`(table