d0bc8b9ffe
- Create resolvers for each type of charts which needs data transformation after the group by operation: Bar Chart, Line Chart and Pie Chart - Move all the utils to the backend and refactored some into services This allows all the computation to be done in the backend, improving performances in the frontend.
9 lines
354 B
TypeScript
9 lines
354 B
TypeScript
import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
|
|
|
|
export const DATE_GRANULARITIES_WITHOUT_GAP_FILLING = new Set([
|
|
ObjectRecordGroupByDateGranularity.DAY_OF_THE_WEEK,
|
|
ObjectRecordGroupByDateGranularity.MONTH_OF_THE_YEAR,
|
|
ObjectRecordGroupByDateGranularity.QUARTER_OF_THE_YEAR,
|
|
ObjectRecordGroupByDateGranularity.NONE,
|
|
]);
|