Skip to content

Commit 617d809

Browse files
committed
chore: update ash
1 parent 8462ebc commit 617d809

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ defmodule AshPostgres.MixProject do
186186
# Run "mix help deps" to learn about dependencies.
187187
defp deps do
188188
[
189-
{:ash, ash_version("~> 3.24")},
189+
{:ash, ash_version("~> 3.29")},
190190
{:spark, "~> 2.3 and >= 2.3.4"},
191191
{:ash_sql, ash_sql_version("~> 0.6")},
192192
{:igniter, "~> 0.6 and >= 0.6.29", optional: true},

mix.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
%{
2-
"ash": {:hex, :ash, "3.27.8", "bc4f4ddbae26bdaef708bf81b64af24743074eed008c5c0533ccd9ae9fcba642", [:mix], [{:crux, ">= 0.1.2 and < 1.0.0-0", [hex: :crux, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0 or ~> 3.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.14", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:igniter, ">= 0.6.29 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: true]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:reactor, "~> 1.0", [hex: :reactor, repo: "hexpm", optional: false]}, {:simple_sat, ">= 0.1.1 and < 1.0.0-0", [hex: :simple_sat, repo: "hexpm", optional: true]}, {:spark, ">= 2.6.0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.3", [hex: :splode, repo: "hexpm", optional: false]}, {:stream_data, "~> 1.0", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "56ad2302bd1a0726748374b829bd217fe22f5a2edeab4ed61daf7c7aa168ac51"},
2+
"ash": {:hex, :ash, "3.29.0", "3a73584e72a65532a7c42bf0953f63fc413962db2f9b9f4e840dd7d464634dac", [:mix], [{:crux, ">= 0.1.2 and < 1.0.0-0", [hex: :crux, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0 or ~> 3.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:ecto, "~> 3.14", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8", [hex: :ets, repo: "hexpm", optional: false]}, {:igniter, ">= 0.6.29 and < 1.0.0-0", [hex: :igniter, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: true]}, {:plug, ">= 0.0.0", [hex: :plug, repo: "hexpm", optional: true]}, {:reactor, "~> 1.0", [hex: :reactor, repo: "hexpm", optional: false]}, {:simple_sat, ">= 0.1.1 and < 1.0.0-0", [hex: :simple_sat, repo: "hexpm", optional: true]}, {:spark, ">= 2.6.0", [hex: :spark, repo: "hexpm", optional: false]}, {:splode, "~> 0.3", [hex: :splode, repo: "hexpm", optional: false]}, {:stream_data, "~> 1.0", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "0e6f503ea957b4168fe8beabdca9e9604b2ab043b993d613c4eb60cf198bdb14"},
33
"ash_sql": {:hex, :ash_sql, "0.6.4", "50b267dcc3305334071d0973fa3b7fba0092b43577f2a91fe7717da09c7155c5", [:mix], [{:ash, ">= 3.24.5 and < 4.0.0-0", [hex: :ash, repo: "hexpm", optional: false]}, {:ecto, ">= 3.13.4 and < 4.0.0-0", [hex: :ecto, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.9", [hex: :ecto_sql, repo: "hexpm", optional: false]}], "hexpm", "9b12bd9fa6825e113d39ffe532b9399243a4472d2608e568a5f6a833060730e6"},
44
"benchee": {:hex, :benchee, "1.5.0", "4d812c31d54b0ec0167e91278e7de3f596324a78a096fd3d0bea68bb0c513b10", [:mix], [{:deep_merge, "~> 1.0", [hex: :deep_merge, repo: "hexpm", optional: false]}, {:statistex, "~> 1.1", [hex: :statistex, repo: "hexpm", optional: false]}, {:table, "~> 0.1.0", [hex: :table, repo: "hexpm", optional: true]}], "hexpm", "5b075393aea81b8ae74eadd1c28b1d87e8a63696c649d8293db7c4df3eb67535"},
55
"bunt": {:hex, :bunt, "1.0.0", "081c2c665f086849e6d57900292b3a161727ab40431219529f13c4ddcf3e7a44", [:mix], [], "hexpm", "dc5f86aa08a5f6fa6b8096f0735c4e76d54ae5c9fa2c143e5a1fc7c1cd9bb6b5"},

test/update_many_test.exs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ defmodule AshPostgres.Test.UpdateManyTest do
124124
assert by_id[b.id] == "b!"
125125
end
126126

127-
test "the default :atomic strategy fails with a single error when a change cannot be made atomic" do
127+
test "the default strategy fails with a single error when a change cannot be made atomic" do
128128
posts = for i <- 1..5, do: create_post(%{title: "t#{i}"})
129129
inputs = Enum.map(posts, fn p -> {p, %{title: "#{p.title}!"}} end)
130130

@@ -139,7 +139,7 @@ defmodule AshPostgres.Test.UpdateManyTest do
139139
assert [%Ash.Error.Invalid.NoMatchingBulkStrategy{}] = errors
140140
end
141141

142-
test "the :atomic strategy is enforced for identifier inputs too (not silently streamed)" do
142+
test "the default strategy is enforced for identifier inputs too (not silently streamed)" do
143143
a = create_post(%{title: "a"})
144144

145145
%Ash.BulkResult{status: :error, records: records} =
@@ -153,14 +153,13 @@ defmodule AshPostgres.Test.UpdateManyTest do
153153
assert Ash.get!(Post, a.id).title == "a"
154154
end
155155

156-
test "updates more records than fit in a single batch under the :atomic_batches strategy" do
156+
test "updates more records than fit in a single batch (atomic_batches is the default)" do
157157
posts = for i <- 1..10, do: create_post(%{title: "t#{i}", score: i})
158158
inputs = Enum.map(posts, fn p -> {p, %{score: p.score + 100}} end)
159159

160160
%Ash.BulkResult{status: :success} =
161161
result =
162162
Ash.update_many(inputs, Post, :update,
163-
strategy: [:atomic_batches],
164163
batch_size: 3,
165164
return_records?: true
166165
)

0 commit comments

Comments
 (0)