Repository navigation
feat: filter builder, select, heartbeat telemetry and presence fixes - #44
Merged
Merged
Conversation
zoedsoupe
force-pushed
the
feat/rt-postgres-observability
branch
3 times, most recently
from
October 16, 2026 22:22
880a3af to
6b555b9
Compare
zoedsoupe
force-pushed
the
feat/rt-postgres-observability
branch
from
October 16, 2026 22:24
6b555b9 to
9560012
Compare
Merged
zoedsoupe
added a commit
that referenced
this pull request
Oct 19, 2026
🚀 Want to release this? --- ## [0.6.0](v0.5.0...v0.6.0) (2026-10-16) ### Features * filter builder, select, heartbeat telemetry and presence fixes ([#44](#44)) ([6fa0dae](6fa0dae)) * rejoin backoff, duplicate binding dedup and aligned binding ids ([#46](#46)) ([ce458d9](ce458d9)) * serializer behaviour and vsn 2.0.0 binary framing ([#43](#43)) ([3aec1d6](3aec1d6)) ### Bug Fixes * realtime protocol correctness (join, ack, heartbeat, tls) ([#42](#42)) ([73548ac](73548ac)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Several parity and correctness gaps remained:
select, so wide rows were sent in full.presence_statewas read from the wrong nesting level (always empty), and presence diffs replaced whole keys instead of merging perphx_ref.realtime:topic and omittedprivate, so private-channel broadcasts failed authorization.Solution
Add
Supabase.Realtime.Filter, a pure typed builder with PostgREST quoting; acceptselecton postgres_changes bindings; emit[:supabase, :realtime, :heartbeat]telemetry with status and latency; addSupabase.Realtime.Presencewith a per-phx_refdiff merge; fix the presence read path and the HTTP fallback body; and quiet the zero-channel warning.Rationale
The filter builder is pure data in, wire string out, so it lives in the functional core and raises on invalid input while the
on/3boundary still returns tuples. Telemetry is used instead of a callback because it composes and is idiomatic on the BEAM. The presence merge ports phoenix'ssyncDiffso multi-device presence stays correct.