This is the form I got, when it failed. I have attached the whole thing this time.
[warning] Unhandled error in form submission for CaseManager.Cases.Case.update
This error was unhandled because AshStateMachine.Errors.NoMatchingTransition does not implement the `AshPhoenix.FormData.Error` protocol.
** (AshStateMachine.Errors.NoMatchingTransition) Attempted to change state from in_progress in action update, but no matching transition was configured.
%Phoenix.HTML.Form{
source: #AshPhoenix.Form<
resource: CaseManager.Cases.Case,
action: :update,
type: :update,
params: %{
case: %{
:alert => ["fa4a8fbf-c590-40f1-981b-2680524a1220"],
:escalated => false,
"description" => "",
"internal_note" => "",
"priority" => "low",
"status" => "t_positive",
"title" => "wfwef"
}
},
source: #Ash.Changeset<
domain: CaseManager.Cases,
action_type: :update,
action: :update,
attributes: %{},
relationships: %{},
arguments: %{},
errors: [
%AshStateMachine.Errors.NoMatchingTransition{
action: :update,
target: nil,
old_state: :in_progress,
splode: nil,
bread_crumbs: [],
vars: [],
path: [],
stacktrace: #Splode.Stacktrace<>,
class: :invalid
},
%Ash.Error.Changes.Required{
field: :status,
type: :argument,
resource: CaseManager.Cases.Case,
splode: nil,
bread_crumbs: [],
vars: [],
path: [],
stacktrace: #Splode.Stacktrace<>,
class: :invalid
}
],
data: #CaseManager.Cases.Case<
file: #Ash.NotLoaded<:relationship, field: :file>,
comment: #Ash.NotLoaded<:relationship, field: :comment>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
team: #CaseManager.Teams.Team<
phone: #Ash.NotLoaded<:relationship, field: :phone>,
email: #Ash.NotLoaded<:relationship, field: :email>,
ip: #Ash.NotLoaded<:relationship, field: :ip>,
case: #Ash.NotLoaded<:relationship, field: :case>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
__meta__: #Ecto.Schema.Metadata<:loaded, "team">,
id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
name: "MSSP",
type: :mssp,
inserted_at: ~U[2024-11-12 19:36:33.585755Z],
updated_at: ~U[2024-11-12 19:36:33.585755Z],
aggregates: %{},
calculations: %{},
...
>,
assignee: #Ash.NotLoaded<:relationship, field: :assignee>,
reporter: #Ash.NotLoaded<:relationship, field: :reporter>,
alert_join_assoc: #Ash.NotLoaded<:relationship, field: :alert_join_assoc>,
__meta__: #Ecto.Schema.Metadata<:loaded, "case">,
id: "962b7ccf-c986-4773-b0ea-e04a78babc65",
title: "wfwef",
description: nil,
escalated: false,
internal_note: nil,
status: :in_progress,
priority: :low,
inserted_at: ~U[2024-11-13 19:35:14.158168Z],
updated_at: ~U[2024-11-13 19:35:14.158168Z],
reporter_id: "f2446fff-4df7-446e-b4eb-f35be7d5e2b3",
assignee_id: nil,
team_id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
aggregates: %{},
calculations: %{},
...
>,
context: %{state_machine: %{attempted_change: nil}},
valid?: false
>,
name: "form",
data: #CaseManager.Cases.Case<
file: #Ash.NotLoaded<:relationship, field: :file>,
comment: #Ash.NotLoaded<:relationship, field: :comment>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
team: #CaseManager.Teams.Team<
phone: #Ash.NotLoaded<:relationship, field: :phone>,
email: #Ash.NotLoaded<:relationship, field: :email>,
ip: #Ash.NotLoaded<:relationship, field: :ip>,
case: #Ash.NotLoaded<:relationship, field: :case>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
__meta__: #Ecto.Schema.Metadata<:loaded, "team">,
id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
name: "MSSP",
type: :mssp,
inserted_at: ~U[2024-11-12 19:36:33.585755Z],
updated_at: ~U[2024-11-12 19:36:33.585755Z],
aggregates: %{},
calculations: %{},
...
>,
assignee: #Ash.NotLoaded<:relationship, field: :assignee>,
reporter: #Ash.NotLoaded<:relationship, field: :reporter>,
alert_join_assoc: #Ash.NotLoaded<:relationship, field: :alert_join_assoc>,
__meta__: #Ecto.Schema.Metadata<:loaded, "case">,
id: "962b7ccf-c986-4773-b0ea-e04a78babc65",
title: "wfwef",
description: nil,
escalated: false,
internal_note: nil,
status: :in_progress,
priority: :low,
inserted_at: ~U[2024-11-13 19:35:14.158168Z],
updated_at: ~U[2024-11-13 19:35:14.158168Z],
reporter_id: "f2446fff-4df7-446e-b4eb-f35be7d5e2b3",
assignee_id: nil,
team_id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
aggregates: %{},
calculations: %{},
...
>,
form_keys: [],
forms: %{},
domain: CaseManager.Cases,
method: "put",
submit_errors: [status: {"is required", []}],
id: "form",
transform_errors: nil,
original_data: #CaseManager.Cases.Case<
file: #Ash.NotLoaded<:relationship, field: :file>,
comment: #Ash.NotLoaded<:relationship, field: :comment>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
team: #CaseManager.Teams.Team<
phone: #Ash.NotLoaded<:relationship, field: :phone>,
email: #Ash.NotLoaded<:relationship, field: :email>,
ip: #Ash.NotLoaded<:relationship, field: :ip>,
case: #Ash.NotLoaded<:relationship, field: :case>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
__meta__: #Ecto.Schema.Metadata<:loaded, "team">,
id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
name: "MSSP",
type: :mssp,
inserted_at: ~U[2024-11-12 19:36:33.585755Z],
updated_at: ~U[2024-11-12 19:36:33.585755Z],
aggregates: %{},
calculations: %{},
...
>,
assignee: #Ash.NotLoaded<:relationship, field: :assignee>,
reporter: #Ash.NotLoaded<:relationship, field: :reporter>,
alert_join_assoc: #Ash.NotLoaded<:relationship, field: :alert_join_assoc>,
__meta__: #Ecto.Schema.Metadata<:loaded, "case">,
id: "962b7ccf-c986-4773-b0ea-e04a78babc65",
title: "wfwef",
description: nil,
escalated: false,
internal_note: nil,
status: :in_progress,
priority: :low,
inserted_at: ~U[2024-11-13 19:35:14.158168Z],
updated_at: ~U[2024-11-13 19:35:14.158168Z],
reporter_id: "f2446fff-4df7-446e-b4eb-f35be7d5e2b3",
assignee_id: nil,
team_id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
aggregates: %{},
calculations: %{},
...
>,
transform_params: nil,
prepare_params: nil,
prepare_source: nil,
raw_params: %{
case: %{
:alert => ["fa4a8fbf-c590-40f1-981b-2680524a1220"],
:escalated => false,
"description" => "",
"internal_note" => "",
"priority" => "low",
"status" => "t_positive",
"title" => "wfwef"
}
},
warn_on_unhandled_errors?: true,
any_removed?: false,
added?: false,
changed?: false,
touched_forms: MapSet.new([:case, "_target", "description", "internal_note",
"priority", "status", "title"]),
valid?: false,
errors: true,
submitted_once?: true,
just_submitted?: true,
...
>,
impl: Phoenix.HTML.FormData.AshPhoenix.Form,
id: "form",
name: "form",
data: #CaseManager.Cases.Case<
file: #Ash.NotLoaded<:relationship, field: :file>,
comment: #Ash.NotLoaded<:relationship, field: :comment>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
team: #CaseManager.Teams.Team<
phone: #Ash.NotLoaded<:relationship, field: :phone>,
email: #Ash.NotLoaded<:relationship, field: :email>,
ip: #Ash.NotLoaded<:relationship, field: :ip>,
case: #Ash.NotLoaded<:relationship, field: :case>,
alert: #Ash.NotLoaded<:relationship, field: :alert>,
__meta__: #Ecto.Schema.Metadata<:loaded, "team">,
id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
name: "MSSP",
type: :mssp,
inserted_at: ~U[2024-11-12 19:36:33.585755Z],
updated_at: ~U[2024-11-12 19:36:33.585755Z],
aggregates: %{},
calculations: %{},
...
>,
assignee: #Ash.NotLoaded<:relationship, field: :assignee>,
reporter: #Ash.NotLoaded<:relationship, field: :reporter>,
alert_join_assoc: #Ash.NotLoaded<:relationship, field: :alert_join_assoc>,
__meta__: #Ecto.Schema.Metadata<:loaded, "case">,
id: "962b7ccf-c986-4773-b0ea-e04a78babc65",
title: "wfwef",
description: nil,
escalated: false,
internal_note: nil,
status: :in_progress,
priority: :low,
inserted_at: ~U[2024-11-13 19:35:14.158168Z],
updated_at: ~U[2024-11-13 19:35:14.158168Z],
reporter_id: "f2446fff-4df7-446e-b4eb-f35be7d5e2b3",
assignee_id: nil,
team_id: "b5b75885-c0b2-4eeb-a727-3a7e7c600968",
aggregates: %{},
calculations: %{},
...
>,
action: nil,
hidden: [
_touched: "case,_target,description,internal_note,priority,status,title",
_form_type: "update",
id: "962b7ccf-c986-4773-b0ea-e04a78babc65"
],
params: %{
case: %{
:alert => ["fa4a8fbf-c590-40f1-981b-2680524a1220"],
:escalated => false,
"description" => "",
"internal_note" => "",
"priority" => "low",
"status" => "t_positive",
"title" => "wfwef"
}
},
errors: [status: {"is required", []}],
options: [method: "put"],
index: nil
}