Add float_greater_or_equal operator

Summary: Doc: https://docs.google.com/document/d/1miofxds9DJgWScj0zFyBbdpRH5Rj0T9FqiCapof5-vU/edit#heading=h.pg8svtdjlx7

Reviewed By: antonk52

Differential Revision: D49230137

fbshipit-source-id: 19c97bd850b065f4c203c257ce9f0a3f33bb1eb2
This commit is contained in:
Andrey Goncharov
2023-09-14 04:48:12 -07:00
committed by Facebook GitHub Bot
parent 467a4591b0
commit 70a46ddcc6

View File

@@ -71,6 +71,11 @@ export const dataTablePowerSearchOperators = {
key: 'float_greater_than',
valueType: 'FLOAT',
}),
float_greater_or_equal: () => ({
label: '>=',
key: 'float_greater_or_equal',
valueType: 'FLOAT',
}),
} satisfies {
[key: string]: (...args: any[]) => OperatorConfig;
};
@@ -115,4 +120,6 @@ export const dataTablePowerSearchOperatorProcessorConfig = {
value <= searchValue,
float_greater_than: (_operator, searchValue: number, value: number) =>
value > searchValue,
float_greater_or_equal: (_operator, searchValue: number, value: number) =>
value >= searchValue,
} satisfies PowerSearchOperatorProcessorConfig;