From c869bcfe1328b6911ba1ea23575e4cb30791dbb7 Mon Sep 17 00:00:00 2001 From: Jamil Date: Fri, 4 Jul 2025 15:30:06 -0700 Subject: [PATCH] chore(portal): tag Relay WAL todos (#9767) These aren't a priority to clean up right now, but I wanted to tag them so I don't forget to do it later on. --- elixir/apps/domain/lib/domain/relays.ex | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/elixir/apps/domain/lib/domain/relays.ex b/elixir/apps/domain/lib/domain/relays.ex index f0417e342..27b1c3cda 100644 --- a/elixir/apps/domain/lib/domain/relays.ex +++ b/elixir/apps/domain/lib/domain/relays.ex @@ -104,6 +104,7 @@ defmodule Domain.Relays do Group.Changeset.delete(group) end, + # TODO: WAL after_commit: &disconnect_relays_in_group/1 ) end @@ -305,6 +306,7 @@ defmodule Domain.Relays do |> Authorizer.for_subject(subject) |> Repo.fetch_and_update(Relay.Query, with: &Relay.Changeset.delete/1, + # TODO: WAL after_commit: &disconnect_relay/1 ) end @@ -357,6 +359,9 @@ defmodule Domain.Relays do ### Presence + # TODO: WAL + # Move these to Presence module + defp presence_topic(relay_or_id), do: "presences:#{relay_topic(relay_or_id)}" @@ -377,6 +382,9 @@ defmodule Domain.Relays do ### PubSub + # TODO: WAL + # Move these to PubSub module + defp relay_topic(%Relay{} = relay), do: relay_topic(relay.id) defp relay_topic(relay_id), do: "relays:#{relay_id}"