[Fix] Handle deprecated viewFilterOperand - follow-up (#14841)

This commit is contained in:
Marie
2025-10-02 15:16:42 +02:00
committed by GitHub
parent 2f5cd0df6b
commit 98544a2479
2 changed files with 2 additions and 18 deletions
@@ -2,8 +2,8 @@ export enum ViewFilterOperandDeprecated {
Is = 'is',
IsNotNull = 'isNotNull',
IsNot = 'isNot',
LessThanOrEqual = 'lessThanOrEqual',
GreaterThanOrEqual = 'greaterThanOrEqual',
LessThanOrEqual = 'lessThan',
GreaterThanOrEqual = 'greaterThan',
IsBefore = 'isBefore',
IsAfter = 'isAfter',
Contains = 'contains',
@@ -1,22 +1,6 @@
import { ViewFilterOperand, ViewFilterOperandDeprecated } from '@/types';
const operandMapping: Record<string, ViewFilterOperand> = {
Is: ViewFilterOperand.IS,
IsNotNull: ViewFilterOperand.IS_NOT_NULL,
IsNot: ViewFilterOperand.IS_NOT,
LessThanOrEqual: ViewFilterOperand.LESS_THAN_OR_EQUAL,
GreaterThanOrEqual: ViewFilterOperand.GREATER_THAN_OR_EQUAL,
IsBefore: ViewFilterOperand.IS_BEFORE,
IsAfter: ViewFilterOperand.IS_AFTER,
Contains: ViewFilterOperand.CONTAINS,
DoesNotContain: ViewFilterOperand.DOES_NOT_CONTAIN,
IsEmpty: ViewFilterOperand.IS_EMPTY,
IsNotEmpty: ViewFilterOperand.IS_NOT_EMPTY,
IsRelative: ViewFilterOperand.IS_RELATIVE,
IsInPast: ViewFilterOperand.IS_IN_PAST,
IsInFuture: ViewFilterOperand.IS_IN_FUTURE,
IsToday: ViewFilterOperand.IS_TODAY,
VectorSearch: ViewFilterOperand.VECTOR_SEARCH,
[ViewFilterOperandDeprecated.Is]: ViewFilterOperand.IS,
[ViewFilterOperandDeprecated.IsNotNull]: ViewFilterOperand.IS_NOT_NULL,
[ViewFilterOperandDeprecated.IsNot]: ViewFilterOperand.IS_NOT,