Repository: storm
Updated Branches:
  refs/heads/master 4b4bbd08b -> 0e80f81f4


Adds visualization-init route previously missing

Also corrects arity of one function, removing an unused parameter.


Project: http://git-wip-us.apache.org/repos/asf/storm/repo
Commit: http://git-wip-us.apache.org/repos/asf/storm/commit/1a367fbf
Tree: http://git-wip-us.apache.org/repos/asf/storm/tree/1a367fbf
Diff: http://git-wip-us.apache.org/repos/asf/storm/diff/1a367fbf

Branch: refs/heads/master
Commit: 1a367fbfcec4b1f408545be2231043df51edb78d
Parents: 9fe97b6
Author: Derek Dagit <der...@yahoo-inc.com>
Authored: Fri Oct 16 11:13:38 2015 -0500
Committer: Derek Dagit <der...@yahoo-inc.com>
Committed: Fri Oct 16 11:13:38 2015 -0500

----------------------------------------------------------------------
 storm-core/src/clj/backtype/storm/ui/core.clj | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/storm/blob/1a367fbf/storm-core/src/clj/backtype/storm/ui/core.clj
----------------------------------------------------------------------
diff --git a/storm-core/src/clj/backtype/storm/ui/core.clj 
b/storm-core/src/clj/backtype/storm/ui/core.clj
index 1f94098..8b5970a 100644
--- a/storm-core/src/clj/backtype/storm/ui/core.clj
+++ b/storm-core/src/clj/backtype/storm/ui/core.clj
@@ -423,7 +423,7 @@
        "acked" (get-in stats [:acked w])
        "failed" (get-in stats [:failed w])})))
 
-(defn build-visualization [id window include-sys? user]
+(defn build-visualization [id window include-sys?]
   (thrift/with-configured-nimbus-connection nimbus
     (let [window (if window window ":all-time")
           topology-info (->> (doto
@@ -857,6 +857,10 @@
     (assert-authorized-user "getTopology" (topology-config id))
     (let [user (get-user-name servlet-request)]
       (json-response (topology-page id (:window m) (check-include-sys? (:sys 
m)) user (= schema :https)) (:callback m))))
+  (GET "/api/v1/topology/:id/visualization-init" [:as {:keys [cookies 
servlet-request]} id & m]
+    (populate-context! servlet-request)
+    (assert-authorized-user "getTopology" (topology-config id))
+    (json-response (build-visualization id (:window m) (check-include-sys? 
(:sys m))) (:callback m)))
   (GET "/api/v1/topology/:id/visualization" [:as {:keys [cookies 
servlet-request]} id & m]
     (populate-context! servlet-request)
     (assert-authorized-user "getTopology" (topology-config id))

Reply via email to