mirror of
https://github.com/apache/superset.git
synced 2024-09-12 08:39:45 -04:00
add 30 minutes support under time granularity (#4954)
This commit is contained in:
parent
65c4499bef
commit
18e67f93de
@ -772,6 +772,7 @@ export const controls = {
|
||||
['PT30S', '30 seconds'],
|
||||
['PT1M', '1 minute'],
|
||||
['PT5M', '5 minutes'],
|
||||
['PT30M', '30 minutes'],
|
||||
['PT1H', '1 hour'],
|
||||
['PT6H', '6 hour'],
|
||||
['P1D', '1 day'],
|
||||
|
@ -529,8 +529,8 @@ class DruidDatasource(Model, BaseDatasource):
|
||||
def time_column_grains(self):
|
||||
return {
|
||||
'time_columns': [
|
||||
'all', '5 seconds', '30 seconds', '1 minute',
|
||||
'5 minutes', '1 hour', '6 hour', '1 day', '7 days',
|
||||
'all', '5 seconds', '30 seconds', '1 minute', '5 minutes'
|
||||
'30 minutes', '1 hour', '6 hour', '1 day', '7 days',
|
||||
'week', 'week_starting_sunday', 'week_ending_saturday',
|
||||
'month',
|
||||
],
|
||||
@ -762,6 +762,7 @@ class DruidDatasource(Model, BaseDatasource):
|
||||
'30 seconds': 'PT30S',
|
||||
'1 minute': 'PT1M',
|
||||
'5 minutes': 'PT5M',
|
||||
'30 minutes': 'PT30M',
|
||||
'1 hour': 'PT1H',
|
||||
'6 hour': 'PT6H',
|
||||
'one day': 'P1D',
|
||||
|
Loading…
Reference in New Issue
Block a user