superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From michel...@apache.org
Subject [incubator-superset] branch master updated: [filter_box] allow empty filters list (#7220) (#7244)
Date Mon, 08 Apr 2019 22:08:52 GMT
This is an automated email from the ASF dual-hosted git repository.

michellet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 5ef2712  [filter_box] allow empty filters list (#7220) (#7244)
5ef2712 is described below

commit 5ef2712e16e07b394cad809d28e1dcb65a48c97f
Author: michellethomas <michelle.q.thomas@gmail.com>
AuthorDate: Mon Apr 8 15:08:47 2019 -0700

    [filter_box] allow empty filters list (#7220) (#7244)
    
    in some cases, people want a time filter only on filter box, without
    specifying dimensions (filters), this allows that
    
    (cherry picked from commit e39b16994946b2a7975af3ed76245e77303329e2)
---
 superset/assets/src/explore/controls.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/assets/src/explore/controls.jsx b/superset/assets/src/explore/controls.jsx
index 9bb8198..3314fd6 100644
--- a/superset/assets/src/explore/controls.jsx
+++ b/superset/assets/src/explore/controls.jsx
@@ -2319,7 +2319,7 @@ export const controls = {
     type: 'CollectionControl',
     label: 'Filters',
     description: t('Filter configuration for the filter box'),
-    validators: [v.nonEmpty],
+    validators: [],
     controlName: 'FilterBoxItemControl',
     mapStateToProps: ({ datasource }) => ({ datasource }),
   },


Mime
View raw message