refine icon indicating copy to clipboard operation
refine copied to clipboard

[BUG] Nested CrudFilters values with Supabase not correctly parsed

Open pkarc opened this issue 1 year ago • 2 comments

Describe the bug

Filter values on nested queries with contains, containss, startswith and endswith filters are not parsed to the respective format with the Supabase dataProvider.

Steps To Reproduce

Consider the following filter:

const filter: CrudFilter = {
  operator: 'or',
  value: [
    {
      field: 'name',
      operator: 'contains',
      value: 'foo',
    }
  ],
};

resolve to (name.ilike.foo) giving no results

Expected behavior

The filter should resolve to (name.ilike.%foo%)

Packages

  • @refinedev/supabase

Additional Context

No response

pkarc avatar Aug 08 '24 15:08 pkarc

Thank you for reporting @pkarc, we'll review the PR as soon as we can 🚀

aliemir avatar Aug 09 '24 10:08 aliemir

hey can I solve this PR i am interested in it

MayuriShingote avatar Aug 11 '24 05:08 MayuriShingote