bug: cant enable/disable network sweep groups #923

Open
opened 2026-03-28 04:29:55 +00:00 by mfreeman451 · 0 comments
Owner

Imported from GitHub.

Original GitHub issue: #2621
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/issues/2621
Original created: 2026-01-30T18:52:42Z


Describe the bug

Clicking in the UI to enable/disable an existing sweep group gives me an error:

web-ng ** (RuntimeError) Required primary update action for ServiceRadar.SweepJobs.SweepGroup.                                                                                                   web-ng     (ash 3.11.1) lib/ash/resource/info.ex:607: Ash.Resource.Info.primary_action!/2                                                                                                        web-ng     (ash 3.11.1) lib/ash.ex:3668: Ash.update/3
web-ng     (serviceradar_web_ng 0.1.0) lib/serviceradar_web_ng_web/live/settings/networks_live/index.ex:282: ServiceRadarWebNGWeb.Settings.NetworksLive.Index.handle_event/3                     web-ng     (phoenix_live_view 1.1.19) lib/phoenix_live_view/channel.ex:530: anonymous fn/3 in Phoenix.LiveView.Channel.view_handle_event/3                                                       web-ng     (telemetry 1.3.0) /tmp/tmp.TOWqEZiBO9/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3
web-ng     (phoenix_live_view 1.1.19) lib/phoenix_live_view/channel.ex:260: Phoenix.LiveView.Channel.handle_info/2                                                                               web-ng     (stdlib 7.1) gen_server.erl:2434: :gen_server.try_handle_info/3
web-ng     (stdlib 7.1) gen_server.erl:2420: :gen_server.handle_msg/3                                                                                                                            web-ng Process Label: {Phoenix.LiveView, ServiceRadarWebNGWeb.Settings.NetworksLive.Index, "lv:phx-GI-W1-LsvMQvHdyB"}
web-ng Last message: %Phoenix.Socket.Message{topic: "lv:phx-GI-W1-LsvMQvHdyB", event: "event", payload: %{"event" => "toggle_group", "type" => "click", "value" => %{"id" => "8508c753-880f-4b6e-ba02-a54064b423d8", "value" => ""}}, ref: "80", join_ref: "79"}

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Imported from GitHub. Original GitHub issue: #2621 Original author: @mfreeman451 Original URL: https://github.com/carverauto/serviceradar/issues/2621 Original created: 2026-01-30T18:52:42Z --- **Describe the bug** Clicking in the UI to enable/disable an existing sweep group gives me an error: ``` web-ng ** (RuntimeError) Required primary update action for ServiceRadar.SweepJobs.SweepGroup. web-ng (ash 3.11.1) lib/ash/resource/info.ex:607: Ash.Resource.Info.primary_action!/2 web-ng (ash 3.11.1) lib/ash.ex:3668: Ash.update/3 web-ng (serviceradar_web_ng 0.1.0) lib/serviceradar_web_ng_web/live/settings/networks_live/index.ex:282: ServiceRadarWebNGWeb.Settings.NetworksLive.Index.handle_event/3 web-ng (phoenix_live_view 1.1.19) lib/phoenix_live_view/channel.ex:530: anonymous fn/3 in Phoenix.LiveView.Channel.view_handle_event/3 web-ng (telemetry 1.3.0) /tmp/tmp.TOWqEZiBO9/deps/telemetry/src/telemetry.erl:324: :telemetry.span/3 web-ng (phoenix_live_view 1.1.19) lib/phoenix_live_view/channel.ex:260: Phoenix.LiveView.Channel.handle_info/2 web-ng (stdlib 7.1) gen_server.erl:2434: :gen_server.try_handle_info/3 web-ng (stdlib 7.1) gen_server.erl:2420: :gen_server.handle_msg/3 web-ng Process Label: {Phoenix.LiveView, ServiceRadarWebNGWeb.Settings.NetworksLive.Index, "lv:phx-GI-W1-LsvMQvHdyB"} web-ng Last message: %Phoenix.Socket.Message{topic: "lv:phx-GI-W1-LsvMQvHdyB", event: "event", payload: %{"event" => "toggle_group", "type" => "click", "value" => %{"id" => "8508c753-880f-4b6e-ba02-a54064b423d8", "value" => ""}}, ref: "80", join_ref: "79"} ``` **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error **Expected behavior** A clear and concise description of what you expected to happen. **Screenshots** If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22] **Smartphone (please complete the following information):** - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22] **Additional context** Add any other context about the problem here.
mfreeman451 added this to the 1.1.1 milestone 2026-03-28 04:29:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
carverauto/serviceradar#923
No description provided.