Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/modules/sync/web/connections_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1116,6 +1116,8 @@ defmodule PhoenixKit.Modules.Sync.Web.ConnectionsLive do
end

# Get all FK dependencies for a table (recursive)
@dialyzer {:nowarn_function, get_table_dependencies: 2}
@dialyzer {:nowarn_function, get_table_dependencies: 3}
defp get_table_dependencies(table_name, tables) do
get_table_dependencies(table_name, tables, MapSet.new())
|> MapSet.to_list()
Expand Down Expand Up @@ -1159,6 +1161,7 @@ defmodule PhoenixKit.Modules.Sync.Web.ConnectionsLive do
topo_sort(graph)
end

@dialyzer {:nowarn_function, topo_sort: 4}
defp topo_sort(graph) do
topo_sort(graph, Map.keys(graph), [], MapSet.new())
end
Expand All @@ -1174,6 +1177,7 @@ defmodule PhoenixKit.Modules.Sync.Web.ConnectionsLive do
end
end

@dialyzer {:nowarn_function, visit_node: 5}
defp visit_node(graph, node, sorted, visited, path) do
if MapSet.member?(visited, node) do
{sorted, visited}
Expand Down
Loading
Loading