Skip to content

Add filter support to the airtable data provider#1372

Merged
omeraplak merged 2 commits intorefinedev:alphafrom
IgnusG:airtable-filters
Dec 20, 2021
Merged

Add filter support to the airtable data provider#1372
omeraplak merged 2 commits intorefinedev:alphafrom
IgnusG:airtable-filters

Conversation

@IgnusG
Copy link
Contributor

@IgnusG IgnusG commented Dec 17, 2021

Please provide enough information so that others can review your pull request:
Adds support for filters in Airtable by using Airtable's filterByFormula feature.

Note: I was not sure how the null filter works from the documentation (I assumed value is false for field is not null and true for field is null).

Explain the details for making this change. What existing problem does the pull request solve?
This provides feature parity with other data providers by making simple filtering in a table possible.

Some things that could still be added:

  • Support for array lookups (Airtable filters don't understand arrays so this requires matching on the string Airtable generates (comma separated list)

Test plan (required)
Tried on the Airtable example app. Tests are part of the PR - they check whether the filter is correctly translated into a syntax Airtable can understand.

Resolves #1317

@omeraplak
Copy link
Contributor

Hey @IgnusG,
It looks great. Congratulations!

@omeraplak omeraplak changed the base branch from master to alpha December 20, 2021 07:21
@omeraplak omeraplak merged commit 08e980c into refinedev:alpha Dec 20, 2021
@omeraplak omeraplak mentioned this pull request Dec 20, 2021
omeraplak added a commit that referenced this pull request Dec 20, 2021
* add strapi v4 links

* Add appwrite data provider (#1296)

* add appwrite data provider

* add categories edit and detail pages

* add permissions in example

* add getOne

* update example to 2.x.x

* update dependencies

* add crud methods to dataprovider

* update example and add create and edit pages

* update appwrite example for live mode

* add live provider

* remove unnecessary package-lock files

* fix problems in appwrite example

* remove categories resource

* remove test file

* Update examples/dataProvider/appwrite/src/App.tsx

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>

* Revert "remove test file"

This reverts commit 5c8d995.

* update test client file name

* add appwrite to docs

* update documentation package lock

* add appwrite logo for landing

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* v2.4.7

* Optimised images with calibre/image-actions

* Add filter support to the airtable data provider (#1372)

* Add filter support to the airtable data provider

* Reverse case sensitive and insensitive airtable contains filter

Literally just saw #1282 about a
different provider having it the other way around.

Reference:
https://refine.dev/docs/api-references/interfaceReferences/#crudfilters

* Change flag for controlling useTable's loading property to isFetched (#1374)

isFetching is set to true during re-fetching as well.
isFetched is set to false only when loading new data, for cached data
that is already available it will return true. We can invert this flag to
achieve the desired effect.

* v2.4.10

Co-authored-by: Umut Özdemir <umutozdemir997@gmail.com>
Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>
Co-authored-by: Pankod Community Bot <53254888+pankod-bot@users.noreply.github.com>
Co-authored-by: Jonathan <6438760+IgnusG@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] filter support for Airtable

3 participants