File tree 3 files changed +19
-3
lines changed
js/apps/system/_admin/aardvark/APP/frontend/js/views 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1
1
devel
2
2
-----
3
3
4
+ * The single database or single coordinator statistics in a cluster
5
+ environment within the Web UI sometimes got called way too often.
6
+ This caused artifacts in the graphs, which is now fixed.
7
+
4
8
* An aardvark statistics route could not collect and sum up the statistics of
5
9
all coordinators if one of them was ahead and had more results than the others
6
10
Original file line number Diff line number Diff line change 759
759
self . history [ self . server ] [ figure ] = [ ] ;
760
760
761
761
for ( i = 0 ; i < d . times . length ; ++ i ) {
762
- self . mergeDygraphHistory ( d , i , true ) ;
762
+ self . mergeDygraphHistory ( d , i ) ;
763
763
}
764
764
}
765
765
) ;
1069
1069
) ;
1070
1070
} ,
1071
1071
1072
+ clearInterval : function ( ) {
1073
+ if ( this . timer ) {
1074
+ clearInterval ( this . ti
8000
mer ) ;
1075
+ }
1076
+ } ,
1077
+
1072
1078
resize : function ( ) {
1073
1079
if ( ! this . isUpdating ) {
1074
1080
return ;
Original file line number Diff line number Diff line change 71
71
if ( this . coordinator ) {
72
72
dashboard = this . coordinator . get ( 'name' ) ;
73
73
// coordinator
74
- this . dashboards [ this . coordinator . get ( 'name' ) ] = new window . DashboardView ( {
74
+ if ( this . dashboards [ dashboard ] ) {
75
+ this . dashboards [ dashboard ] . clearInterval ( ) ;
76
+ }
77
+ this . dashboards [ dashboard ] = new window . DashboardView ( {
75
78
dygraphConfig : window . dygraphConfig ,
76
79
database : window . App . arangoDatabase ,
77
80
serverToShow : {
85
88
// db server
86
89
var attributes = this . dbServer . toJSON ( ) ;
87
90
dashboard = attributes . name ;
88
- this . dashboards [ attributes . name ] = new window . DashboardView ( {
91
+ if ( this . dashboards [ dashboard ] ) {
92
+ this . dashboards [ dashboard ] . clearInterval ( ) ;
93
+ }
94
+ this . dashboards [ dashboard ] = new window . DashboardView ( {
89
95
dygraphConfig : null ,
90
96
database : window . App . arangoDatabase ,
91
97
serverToShow : {
You can’t perform that action at this time.
0 commit comments