[Feature/Bugfix] Datepicker and time granularity options to dashboard filters (#3508)

* Feature: added datepicker and time granularity options to dashboard filter

* Added option for Druid datasource time filters

* added more checkbox control over dashboard time filters
This commit is contained in:
Jeff Niu
2017-10-04 12:43:29 -07:00
committed by Maxime Beauchemin
parent ff268a7526
commit 7c936e7f60
10 changed files with 260 additions and 79 deletions

View File

@@ -562,6 +562,7 @@ export const controls = {
mapStateToProps: state => ({
choices: (state.datasource) ? state.datasource.granularity_sqla : [],
}),
freeForm: true,
},
time_grain_sqla: {
@@ -1020,6 +1021,34 @@ export const controls = {
description: t('Whether to include a time filter'),
},
show_sqla_time_granularity: {
type: 'CheckboxControl',
label: 'Show SQL Granularity Dropdown',
default: false,
description: 'Check to include SQL Granularity dropdown',
},
show_sqla_time_column: {
type: 'CheckboxControl',
label: 'Show SQL Time Column',
default: false,
description: 'Check to include Time Column dropdown',
},
show_druid_time_granularity: {
type: 'CheckboxControl',
label: 'Show Druid Granularity Dropdown',
default: false,
description: 'Check to include Druid Granularity dropdown',
},
show_druid_time_origin: {
type: 'CheckboxControl',
label: 'Show Druid Time Origin',
default: false,
description: 'Check to include Time Origin dropdown',
},
show_datatable: {
type: 'CheckboxControl',
label: t('Data Table'),