chore: run fixes (#8257)
* chore: run fixes * fix: type, just use hocuspocusservercontext * fix: codemod --------- Co-authored-by: Palanikannan M <akashmalinimurugu@gmail.com>
This commit is contained in:
parent
a9e9cb2983
commit
0ab94ed6d6
172 changed files with 1784 additions and 1798 deletions
|
|
@ -37,10 +37,7 @@ export interface IFilterConfig<P extends TFilterProperty, V extends TFilterValue
|
|||
operator: TAllAvailableOperatorsForDisplay
|
||||
) => TOperatorSpecificConfigs<V>[keyof TOperatorSpecificConfigs<V>] | undefined;
|
||||
getLabelForOperator: (operator: TAllAvailableOperatorsForDisplay | undefined) => string;
|
||||
getDisplayOperatorByValue: <T extends TSupportedOperators | TAllAvailableOperatorsForDisplay>(
|
||||
operator: T,
|
||||
value: V
|
||||
) => T;
|
||||
getDisplayOperatorByValue: <T extends TSupportedOperators>(operator: T, value: V) => T;
|
||||
getAllDisplayOperatorOptionsByValue: (value: V) => TOperatorOptionForDisplay[];
|
||||
// actions
|
||||
mutate: (updates: Partial<TFilterConfig<P, V>>) => void;
|
||||
|
|
|
|||
|
|
@ -194,12 +194,12 @@ class WorkItemFiltersAdapter extends FilterAdapter<TWorkItemFilterProperty, TWor
|
|||
const property = key.substring(0, lastDoubleUnderscoreIndex);
|
||||
const operator = key.substring(lastDoubleUnderscoreIndex + 2) as TSupportedOperators;
|
||||
|
||||
const rawValue = data[key as TWorkItemFilterConditionKey];
|
||||
const rawValue = data[key];
|
||||
|
||||
// Parse comma-separated values
|
||||
const parsedValue = MULTI_VALUE_OPERATORS.includes(operator) ? this._parseFilterValue(rawValue) : rawValue;
|
||||
|
||||
return [property as TWorkItemFilterProperty, operator as TSupportedOperators, parsedValue];
|
||||
return [property as TWorkItemFilterProperty, operator, parsedValue];
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -242,7 +242,7 @@ class WorkItemFiltersAdapter extends FilterAdapter<TWorkItemFilterProperty, TWor
|
|||
operator: TSupportedOperators,
|
||||
value: SingleOrArray<TFilterValue>
|
||||
): TWorkItemFilterConditionData => {
|
||||
const conditionKey = `${property}__${operator}` as TWorkItemFilterConditionKey;
|
||||
const conditionKey = `${property}__${operator}`;
|
||||
|
||||
// Convert value to string format
|
||||
const stringValue = Array.isArray(value) ? value.join(",") : value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue