mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
[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:
committed by
Maxime Beauchemin
parent
ff268a7526
commit
7c936e7f60
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user