Skip to content

Commit

Permalink
1131 - Transformation Order Bug (#1657)
Browse files Browse the repository at this point in the history
* modify transformation sort so it includes parameters in changeset update

* update move to include all changes instead of just sequence and params

* modify to use changeset function
  • Loading branch information
accenture-mikeyc authored Apr 13, 2023
1 parent 709f990 commit 2acd3f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ defmodule AndiWeb.IngestionLiveView.Transformations.TransformationsStep do
List.insert_at(remaining_list, new_index, transformation_to_move)
|> Enum.with_index()
|> Enum.map(fn {changeset, index} ->
Transformation.changeset(changeset, %{sequence: index})
Changeset.put_change(changeset, :sequence, index)
end)

send(self(), {:update_all_transformations, updated_transformation_changesets})
Expand Down
2 changes: 1 addition & 1 deletion apps/andi/mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Andi.MixProject do
def project do
[
app: :andi,
version: "2.6.58",
version: "2.6.59",
build_path: "../../_build",
config_path: "../../config/config.exs",
deps_path: "../../deps",
Expand Down

0 comments on commit 2acd3f8

Please sign in to comment.