You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ch...@apache.org on 2017/01/20 05:39:58 UTC

[02/18] flink git commit: [FLINK-5150] [webui] Store metrics in sessionStorage

[FLINK-5150] [webui] Store metrics in sessionStorage

This closes #3104.


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

Branch: refs/heads/master
Commit: cbd933bd1def789d1978be5349005dd7d9de3082
Parents: d1301c8
Author: zentol <ch...@apache.org>
Authored: Fri Jan 13 12:05:59 2017 +0100
Committer: zentol <ch...@apache.org>
Committed: Thu Jan 19 23:57:19 2017 +0100

----------------------------------------------------------------------
 .../web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee  | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flink/blob/cbd933bd/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
----------------------------------------------------------------------
diff --git a/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee b/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
index 20c7439..9b9fab7 100644
--- a/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
+++ b/flink-runtime-web/web-dashboard/app/scripts/modules/jobs/metrics.svc.coffee
@@ -66,13 +66,13 @@ angular.module('flinkApp')
     100
 
   @setupLS = ->
-    if !localStorage.flinkMetrics?
+    if !sessionStorage.flinkMetrics?
       @saveSetup()
 
-    @metrics = JSON.parse(localStorage.flinkMetrics)
+    @metrics = JSON.parse(sessionStorage.flinkMetrics)
 
   @saveSetup = ->
-    localStorage.flinkMetrics = JSON.stringify(@metrics)
+    sessionStorage.flinkMetrics = JSON.stringify(@metrics)
 
   @saveValue = (jobid, nodeid, value) ->
     unless @values[jobid]?