From cc1b1ea3814e544f4c18d3414a145679f27c4602 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Sat, 4 Sep 2010 18:30:07 -0700 Subject: [PATCH] webapps.mason: make the dashboard public and only protect the build actions --- extra/webapps/mason/dashboard.xml | 18 +++++++++++------- extra/webapps/mason/dashboard/dashboard.factor | 4 +++- extra/webapps/mason/downloads.xml | 2 +- extra/webapps/mason/mason.factor | 6 +++--- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/extra/webapps/mason/dashboard.xml b/extra/webapps/mason/dashboard.xml index 4ce01bff83..d6d4651ece 100644 --- a/extra/webapps/mason/dashboard.xml +++ b/extra/webapps/mason/dashboard.xml @@ -3,22 +3,26 @@ Mason dashboard -

Force build now

- -

-
-

Crashed build machines

-

Crashed machines have not sent a heartbeat for several hours.

+

Crashed machines have not sent a heartbeat for several hours:

Broken build machines

-

Broken machines have not had a successful build for over a week.

+

Broken machines have not had a successful build for over a week:

+

Force build now

+

Requires build engineer status.

+ + +

+
+

Make a release

+

Requires build engineer status.

+ diff --git a/extra/webapps/mason/dashboard/dashboard.factor b/extra/webapps/mason/dashboard/dashboard.factor index c6edd2ec99..cae5932b35 100644 --- a/extra/webapps/mason/dashboard/dashboard.factor +++ b/extra/webapps/mason/dashboard/dashboard.factor @@ -9,7 +9,9 @@ IN: webapps.mason.downloads [ package-url ] [ [ os>> ] [ cpu>> ] bi "/" glue ] bi [XML
  • ><->
  • XML] ] map - [XML
      <->
    XML] ; + [ [XML

    No machines.

    XML] ] + [ [XML
      <->
    XML] ] + if-empty ; : ( -- action ) diff --git a/extra/webapps/mason/downloads.xml b/extra/webapps/mason/downloads.xml index fd9acf35d0..3fcb997d83 100644 --- a/extra/webapps/mason/downloads.xml +++ b/extra/webapps/mason/downloads.xml @@ -14,6 +14,6 @@
    Version:
    -

    Build farm dashboard (core team only)

    . +

    If you're curious, take a look at the Build farm dashboard.

    diff --git a/extra/webapps/mason/mason.factor b/extra/webapps/mason/mason.factor index 4f816bb482..25736b884a 100644 --- a/extra/webapps/mason/mason.factor +++ b/extra/webapps/mason/mason.factor @@ -47,10 +47,10 @@ build-engineer? define-capability { mason-app "dashboard" } >>template "" add-responder - + "increment-counter" add-responder - + "increment-counter" add-responder - "dashboard" add-responder ; + "dashboard" add-responder ;