Przeglądaj źródła

Fixes to filters and the 'All' option. It now never uses '*' as value, but all options in a {node1, node2, node3} expression (Closes #228, Closes #359)

Torkel Ödegaard 11 lat temu
rodzic
commit
9c5674a076
2 zmienionych plików z 7 dodań i 12 usunięć
  1. 1 1
      CHANGELOG.md
  2. 6 11
      src/app/panels/filtering/module.js

+ 1 - 1
CHANGELOG.md

@@ -6,7 +6,7 @@
 - Improvement to influxdb query editor, can now add where clause and alias (Issue #331, thanks @mavimo)
 - New config setting for graphite datasource to control if json render request is POST or GET (Issue #345)
 - Unsaved changes warning feature (Issue #324)
-
+- Fixes to filters and "All" option. It now never uses "*" as value, but all options in a {node1, node2, node3} expression (Issue #228, #359)
 
 # 1.5.3 (2014-04-17)
 - Add support for async scripted dashboards (Issue #274)

+ 6 - 11
src/app/panels/filtering/module.js

@@ -61,17 +61,12 @@ function (angular, app, _) {
           });
 
           if (filter.includeAll) {
-            if(endsWithWildcard(filter.query)) {
-              filter.options.unshift({text: 'All', value: '*'});
-            }
-            else {
-              var allExpr = '{';
-              _.each(filter.options, function(option) {
-                allExpr += option.text + ',';
-              });
-              allExpr = allExpr.substring(0, allExpr.length - 1) + '}';
-              filter.options.unshift({text: 'All', value: allExpr});
-            }
+            var allExpr = '{';
+            _.each(filter.options, function(option) {
+              allExpr += option.text + ',';
+            });
+            allExpr = allExpr.substring(0, allExpr.length - 1) + '}';
+            filter.options.unshift({text: 'All', value: allExpr});
           }
 
           filterSrv.filterOptionSelected(filter, filter.options[0]);