Open hernanjls opened 1 month ago
Hey guys! We looked into this a bit further, and it looks like if the column the filter references is not one of the primary keys for the table, the delete will be lost. This seems to be because the delete record only contains primary keys, not the rest of the data that was contained in the row. We "fixed" it by including that column as a primary key for the table. Definitely not ideal in all contexts, but hey, at least it works. Hope this helps!
Bug report
events not fired in suscription for channel with row level filters
Describe the bug
Row level filtering in the channel, not allow detect events for delete operations
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Here this example is using suoabase realtime events suscriptions.
using RealtimeExample.Models; using Supabase.Realtime; using System; using System.Diagnostics; using System.Threading.Tasks; using Supabase.Realtime.Interfaces; using Supabase.Realtime.PostgresChanges; using Supabase.Realtime.Socket; using static Supabase.Realtime.Constants; using static Supabase.Realtime.PostgresChanges.PostgresChangesOptions;
namespace RealtimeExample { class Program {
}