[GroupBy] Add views filters to groupBy query (#14762)
Closes https://github.com/twentyhq/core-team-issues/issues/1560 If viewId is defined in a groupBy query, we want to apply all filters of the view to the query. This required to move a lot of code from twenty-front to twenty-shared to convert the filters as stored in the db into graphql filters, applying the right combinations between filters etc., which was previously only done in the FE. This PR does not handle any field filters, it will be done in a later pr
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
// This class is used to group different error messages under the same code for sentry.
|
||||
export class CustomError extends Error {
|
||||
public code?: string;
|
||||
|
||||
constructor(message: string, code?: string) {
|
||||
super(message);
|
||||
this.code = code;
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
import { AppErrorBoundaryEffect } from '@/error-handler/components/internal/AppErrorBoundaryEffect';
|
||||
import { type CustomError } from '@/error-handler/CustomError';
|
||||
import { checkIfItsAViteStaleChunkLazyLoadingError } from '@/error-handler/utils/checkIfItsAViteStaleChunkLazyLoadingError';
|
||||
import { type ErrorInfo, type ReactNode } from 'react';
|
||||
import { ErrorBoundary, type FallbackProps } from 'react-error-boundary';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { type CustomError, isDefined } from 'twenty-shared/utils';
|
||||
|
||||
type AppErrorBoundaryProps = {
|
||||
children: ReactNode;
|
||||
|
||||
+1
-2
@@ -1,9 +1,8 @@
|
||||
import { useCallback, useEffect } from 'react';
|
||||
|
||||
import { type CustomError } from '@/error-handler/CustomError';
|
||||
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
|
||||
import isEmpty from 'lodash.isempty';
|
||||
import { isDefined } from 'twenty-shared/utils';
|
||||
import { isDefined, type CustomError } from 'twenty-shared/utils';
|
||||
|
||||
const hasErrorCode = (
|
||||
error: CustomError | any,
|
||||
|
||||
Reference in New Issue
Block a user