fix(charts): Time grain is None when dataset uses Jinja (#25842)

This commit is contained in:
Antonio Rivero
2023-11-06 18:51:28 +01:00
committed by GitHub
parent 30cd422331
commit 7536dd12cd
6 changed files with 23 additions and 14 deletions

View File

@@ -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: [

View File

@@ -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',