mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
fix(charts): Time grain is None when dataset uses Jinja (#25842)
This commit is contained in:
@@ -307,6 +307,7 @@ test('should convert a queryObject with x-axis although FF is disabled', () => {
|
||||
extras: {
|
||||
having: '',
|
||||
where: "(foo in ('a', 'b'))",
|
||||
time_grain_sqla: 'P1W',
|
||||
},
|
||||
applied_time_extras: {},
|
||||
columns: [
|
||||
|
||||
@@ -120,7 +120,7 @@ describe('GENERIC_CHART_AXES is enabled', () => {
|
||||
expect.objectContaining({
|
||||
granularity: 'time_column',
|
||||
time_range: '1 year ago : 2013',
|
||||
extras: { having: '', where: '' },
|
||||
extras: { having: '', where: '', time_grain_sqla: 'P1Y' },
|
||||
columns: [
|
||||
{
|
||||
columnType: 'BASE_AXIS',
|
||||
@@ -209,7 +209,7 @@ describe('GENERIC_CHART_AXES is disabled', () => {
|
||||
expect.objectContaining({
|
||||
granularity: 'time_column',
|
||||
time_range: '1 year ago : 2013',
|
||||
extras: { having: '', where: '' },
|
||||
extras: { having: '', where: '', time_grain_sqla: 'P1Y' },
|
||||
columns: [
|
||||
{
|
||||
columnType: 'BASE_AXIS',
|
||||
|
||||
Reference in New Issue
Block a user