@@ -1580,6 +1580,7 @@ defmodule AshSql.AggregateTest do
1580
1580
end
1581
1581
end
1582
1582
1583
+ @ tag :regression
1583
1584
test "filter and aggregate names do not collide with the same names" do
1584
1585
club = Ash.Seed . seed! ( AshPostgres.Test.StandupClub , % { name: "Studio 54" } )
1585
1586
@@ -1591,8 +1592,6 @@ defmodule AshSql.AggregateTest do
1591
1592
} )
1592
1593
end )
1593
1594
1594
- # |> IO.inspect()
1595
-
1596
1595
Enum . each ( club_comedians , fn comedian ->
1597
1596
Range . new ( 1 , Enum . random ( [ 2 , 3 , 4 , 5 , 6 ] ) )
1598
1597
|> Enum . each ( fn joke_idx ->
@@ -1603,7 +1602,7 @@ defmodule AshSql.AggregateTest do
1603
1602
} )
1604
1603
1605
1604
Range . new ( 1 , Enum . random ( [ 2 , 3 , 4 , 5 , 6 ] ) )
1606
- |> Enum . each ( fn idx ->
1605
+ |> Enum . each ( fn _idx ->
1607
1606
Ash.Seed . seed! ( AshPostgres.Test.Punchline , % { joke_id: joke . id } )
1608
1607
end )
1609
1608
end )
@@ -1618,7 +1617,7 @@ defmodule AshSql.AggregateTest do
1618
1617
} )
1619
1618
1620
1619
Range . new ( 1 , Enum . random ( [ 2 , 3 , 4 , 5 , 6 ] ) )
1621
- |> Enum . each ( fn idx ->
1620
+ |> Enum . each ( fn _idx ->
1622
1621
Ash.Seed . seed! ( AshPostgres.Test.Punchline , % { joke_id: joke . id } )
1623
1622
end )
1624
1623
end )
@@ -1632,7 +1631,8 @@ defmodule AshSql.AggregateTest do
1632
1631
}
1633
1632
}
1634
1633
}
1634
+
1635
1635
Ash.Query . filter_input ( AshPostgres.Test.StandupClub , filter )
1636
- |> Ash . read! ( load: [ :punchline_count , comedians: [ jokes: :punchline_count ] ] )
1636
+ |> Ash . read! ( load: [ :punchline_count ] )
1637
1637
end
1638
1638
end
0 commit comments