From b605232f7ee466f92aa1e41a6a0350c07e9f488d Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 19 Oct 2023 11:14:57 -0400 Subject: [PATCH] chore: comment out more unnecessary code --- lib/ash/filter/filter.ex | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/lib/ash/filter/filter.ex b/lib/ash/filter/filter.ex index cb6322df..a67a68fd 100644 --- a/lib/ash/filter/filter.ex +++ b/lib/ash/filter/filter.ex @@ -1852,21 +1852,20 @@ defmodule Ash.Filter do |> List.wrap() |> List.flatten() - nested - |> Enum.map(fn - {nested_path, _ref} -> - nested_path - - {nested_path} -> - nested_path - end) - |> Enum.find(fn path -> - not to_one_path?(path, resource) - end) - # This validation needs to be added back in at some point # it was removed because we currently can't tell the difference between relationship paths # that appear inside of the path to `exists`, i.e `exists(to_many, ....)`. + # nested + # |> Enum.map(fn + # {nested_path, _ref} -> + # nested_path + + # {nested_path} -> + # nested_path + # end) + # |> Enum.find(fn path -> + # not to_one_path?(path, resource) + # end) # |> case do # nil -> # :ok