refine icon indicating copy to clipboard operation
refine copied to clipboard

fix: support multiple filters in Supabase realtime liveProvider

Open RITIKMANGAL opened this issue 4 months ago • 2 comments

PR Checklist

Please check if your PR fulfills the following requirements:

  • [x] The commit message follows our guidelines: https://refine.dev/docs/guides-concepts/contributing/#commit-convention

Bugs / Features

  • [x] Related issue(s) linked
  • [ ] Tests for the changes have been added
  • [ ] Docs have been added / updated
  • [ ] Changesets have been added https://refine.dev/docs/guides-concepts/contributing/#creating-a-changeset

What is the current behavior?

Supabase Realtime liveProvider does not support multiple filters, causing invalid filter payloads and failing realtime subscriptions when more than one filter is applied.

What is the new behavior?

  • Supports multiple filters by properly formatting and joining filters into a valid filter string.
  • Adds a warning when multiple filters are detected, informing users of the current limitations.
  • Allows overriding the realtime filters with a meta.realtimeFilter prop for custom use cases.
  • Skips unsupported filters to prevent syntax errors in subscriptions.

fixes #6360

Notes for reviewers

This update ensures better handling of filters in Supabase realtime subscriptions while maintaining backward compatibility. Suggestions for tests and documentation updates are welcome.

RITIKMANGAL avatar Jun 03 '25 05:06 RITIKMANGAL