Baserow filters expansion (#2183)

* Added filters

The API was changed to add filters: date_before and date_after
Directly added the other filters that weren't in the node yet:
link_row_has and link_row_has_not
Not sure about the description of the second set.

* 🔨 Refactor Baserow filters expansion

Co-authored-by: bramknuever <60007341+bramknuever@users.noreply.github.com>
This commit is contained in:
Iván Ovejero 2021-09-11 10:31:43 +02:00 committed by GitHub
parent 3d6b40b852
commit 4bb16b47a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -284,6 +284,16 @@ export const operationFields = [
value: 'not_equal',
description: 'Field is not equal to value',
},
{
name: 'Contains',
value: 'contains',
description: 'Field contains value',
},
{
name: 'Contains Not',
value: 'contains_not',
description: 'Field does not contain value',
},
{
name: 'Date Equal',
value: 'date_equal',
@ -310,20 +320,20 @@ export const operationFields = [
description: 'Field in this year. Format: string',
},
{
name: 'Contains',
value: 'contains',
description: 'Field contains value',
name: 'Date Before Date',
value: 'date_before',
description: 'Field before this date. Format: \'YYYY-MM-DD\'',
},
{
name: 'File Name Contains',
name: 'Date After Date',
value: 'date_after',
description: 'Field after this date. Format: \'YYYY-MM-DD\'',
},
{
name: 'Filename Contains',
value: 'filename_contains',
description: 'Field filename contains value',
},
{
name: 'Contains Not',
value: 'contains_not',
description: 'Field does not contain value',
},
{
name: 'Higher Than',
value: 'higher_than',
@ -334,6 +344,31 @@ export const operationFields = [
value: 'lower_than',
description: 'Field is lower than value',
},
{
name: 'Is Empty',
value: 'empty',
description: 'Field is empty',
},
{
name: 'Is Not Empty',
value: 'not_empty',
description: 'Field is not empty',
},
{
name: 'Is True',
value: 'boolean',
description: 'Boolean field is true',
},
{
name: 'Link Row Has',
value: 'link_row_has',
description: 'Field has link ID',
},
{
name: 'Link Row Does Not Have',
value: 'link_row_has_not',
description: 'Field does not have link ID',
},
{
name: 'Single Select Equal',
value: 'single_select_equal',
@ -344,21 +379,6 @@ export const operationFields = [
value: 'single_select_not_equal',
description: 'Field selected option is not value',
},
{
name: 'Is True',
value: 'boolean',
description: 'Boolean field is true',
},
{
name: 'Is Empty',
value: 'empty',
description: 'Field is empty',
},
{
name: 'Not Empty',
value: 'not_empty',
description: 'Field is not empty',
},
],
default: 'equal',
},