Skip to content

fix: support multiple filters in Supabase realtime liveProvider #6827

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: next
Choose a base branch
from

Conversation

RITIKMANGAL
Copy link

@RITIKMANGAL RITIKMANGAL commented Jun 3, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

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 RITIKMANGAL requested a review from a team as a code owner June 3, 2025 05:03
Copy link

netlify bot commented Jun 3, 2025

Deploy Preview for refine-doc-live-previews failed.

Built without sensitive environment variables

Name Link
🔨 Latest commit 54cd0ed
🔍 Latest deploy log https://app.netlify.com/projects/refine-doc-live-previews/deploys/683e82418a64e20008f10274

@alicanerdurmaz alicanerdurmaz changed the base branch from main to next June 4, 2025 07:12
@alicanerdurmaz alicanerdurmaz requested a review from a team as a code owner June 4, 2025 07:12
Copy link

changeset-bot bot commented Jun 4, 2025

⚠️ No Changeset found

Latest commit: b477cbe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@alicanerdurmaz alicanerdurmaz added this to the May 2025 Release milestone Jun 4, 2025
@BatuhanW BatuhanW changed the title Fix: support multiple filters in Supabase realtime liveProvider fix: support multiple filters in Supabase realtime liveProvider Jun 5, 2025
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.

[BUG] Multiple Filters not Supported by Supabase Realtime
3 participants