This is an automated email from the ASF dual-hosted git repository.
graceguo 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 32b38ee [bugfix] allow limiting word cloud (#3902)
32b38ee is described below
commit 32b38ee2d6c3925249e5ac5cd85a2ea1c3801897
Author: Maxime Beauchemin <[email protected]>
AuthorDate: Mon Nov 20 10:32:14 2017 -0800
[bugfix] allow limiting word cloud (#3902)
---
superset/assets/javascripts/explore/stores/controls.jsx | 2 ++
superset/assets/javascripts/explore/stores/visTypes.js | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/superset/assets/javascripts/explore/stores/controls.jsx
b/superset/assets/javascripts/explore/stores/controls.jsx
index eabd29f..325c878 100644
--- a/superset/assets/javascripts/explore/stores/controls.jsx
+++ b/superset/assets/javascripts/explore/stores/controls.jsx
@@ -729,6 +729,7 @@ export const controls = {
type: 'SelectControl',
freeForm: true,
label: t('Row limit'),
+ validators: [v.integer],
default: null,
choices: formatSelectOptions(ROW_LIMIT_OPTIONS),
},
@@ -737,6 +738,7 @@ export const controls = {
type: 'SelectControl',
freeForm: true,
label: t('Series limit'),
+ validators: [v.integer],
choices: formatSelectOptions(SERIES_LIMITS),
default: 50,
description: t('Limits the number of time series that get displayed'),
diff --git a/superset/assets/javascripts/explore/stores/visTypes.js
b/superset/assets/javascripts/explore/stores/visTypes.js
index b13d4a7..ef31003 100644
--- a/superset/assets/javascripts/explore/stores/visTypes.js
+++ b/superset/assets/javascripts/explore/stores/visTypes.js
@@ -610,7 +610,8 @@ export const visTypes = {
label: t('Query'),
expanded: true,
controlSetRows: [
- ['series', 'metric', 'limit'],
+ ['series', 'metric'],
+ ['row_limit', null],
],
},
{
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].