fix(addons): drop agent_uid when upserting an add-on assignment to :update (#3425) #3529

Merged
mfreeman451 merged 1 commit from fix/addon-assignment-upsert-agent-uid into staging 2026-06-04 22:19:38 +00:00
Owner

Assigning an add-on to an agent (single or cohort) that already had it failed with
'No such input agent_uid for action ...AddonAssignment.update'. The upsert path
passed the full attrs — including the immutable agent_uid identity — to :update,
which only accepts mutable fields. Drop agent_uid (the existing row already carries
it) and pass only the mutable attrs when re-enabling/upgrading in place.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

IMPORTANT: Please sign the Developer Certificate of Origin

Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:

Signed-off-by: J. Doe <j.doe@domain.com>

Describe your changes

Code checklist before requesting a review

  • I have signed the DCO?
  • The build completes without errors?
  • All tests are passing when running make test?
Assigning an add-on to an agent (single or cohort) that already had it failed with 'No such input `agent_uid` for action ...AddonAssignment.update'. The upsert path passed the full attrs — including the immutable agent_uid identity — to :update, which only accepts mutable fields. Drop agent_uid (the existing row already carries it) and pass only the mutable attrs when re-enabling/upgrading in place. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> ## IMPORTANT: Please sign the Developer Certificate of Origin Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include a [DCO sign-off statement]( https://developercertificate.org/) indicating the DCO acceptance in one commit message. Here is an example DCO Signed-off-by line in a commit message: ``` Signed-off-by: J. Doe <j.doe@domain.com> ``` ## Describe your changes ## Issue ticket number and link ## Code checklist before requesting a review - [ ] I have signed the DCO? - [ ] The build completes without errors? - [ ] All tests are passing when running make test?
fix(addons): drop agent_uid when upserting an add-on assignment to :update (#3425)
Some checks failed
lint / lint (push) Successful in 53s
Golang Tests / test-go (push) Successful in 1m28s
Helm Lint / Helm Lint (pull_request) Successful in 16s
Secret Scan / gitleaks (pull_request) Successful in 29s
Fingerprint Licensing / netprobe-fingerprint-licenses (pull_request) Failing after 1m3s
lint / lint (pull_request) Successful in 1m19s
Elixir Quality / Elixir Quality (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
f86a61de39
Assigning an add-on to an agent (single or cohort) that already had it failed with
'No such input `agent_uid` for action ...AddonAssignment.update'. The upsert path
passed the full attrs — including the immutable agent_uid identity — to :update,
which only accepts mutable fields. Drop agent_uid (the existing row already carries
it) and pass only the mutable attrs when re-enabling/upgrading in place.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
mfreeman451 force-pushed fix/addon-assignment-upsert-agent-uid from f86a61de39
Some checks failed
lint / lint (push) Successful in 53s
Golang Tests / test-go (push) Successful in 1m28s
Helm Lint / Helm Lint (pull_request) Successful in 16s
Secret Scan / gitleaks (pull_request) Successful in 29s
Fingerprint Licensing / netprobe-fingerprint-licenses (pull_request) Failing after 1m3s
lint / lint (pull_request) Successful in 1m19s
Elixir Quality / Elixir Quality (pull_request) Has been cancelled
CI / build (pull_request) Has been cancelled
to f01b16484d
Some checks failed
Netprobe eBPF Verifier / Verify eBPF programs on Linux 5.15 (push) Waiting to run
Netprobe eBPF Verifier / Verify eBPF programs on Linux 5.8 (push) Waiting to run
Netprobe eBPF Verifier / Verify eBPF programs on Linux 6.x (push) Waiting to run
Netprobe eBPF Verifier / Verify eBPF refusal on Linux 5.4 (push) Waiting to run
Secret Scan / gitleaks (pull_request) Successful in 1m11s
Fingerprint Licensing / netprobe-fingerprint-licenses (push) Failing after 1m18s
lint / lint (push) Successful in 1m51s
Rust Tests / test-rust (rust/rdp-adapter, cargo) (push) Successful in 1m33s
lint / lint (pull_request) Successful in 2m10s
Golang Tests / test-go (push) Successful in 2m10s
Rust Tests / test-rust (//rust/netprobe:netprobe, //build/platforms:linux_aarch64_musl, rust/netprobe, bazel-static) (push) Successful in 2m18s
Rust Tests / test-rust (//rust/netprobe:netprobe_test, rust/netprobe, bazel-test) (push) Successful in 2m23s
Rust Tests / test-rust (//rust/rperf-server:rperf, rust/rperf-server, bazel) (push) Successful in 2m48s
Rust Tests / test-rust (rust/log-collector, cargo) (push) Successful in 2m51s
Rust Tests / test-rust (rust/consumers/zen, cargo) (push) Successful in 3m1s
Rust Tests / test-rust (rust/rperf-client, cargo) (push) Successful in 2m37s
Rust Tests / test-rust (//rust/netprobe:netprobe, //build/platforms:linux_x86_64_musl, rust/netprobe, bazel-static) (push) Successful in 3m13s
Rust Tests / test-rust (rust/trapd, cargo) (push) Successful in 2m47s
Rust Tests / test-rust (rust/rdp-connector-probe, cargo) (push) Successful in 3m47s
Rust Tests / test-rust (rust/srql, cargo) (push) Successful in 5m45s
Elixir Quality / Elixir Quality (pull_request) Failing after 15m5s
CI / build (pull_request) Failing after 25m31s
2026-06-04 22:15:21 +00:00
Compare
mfreeman451 deleted branch fix/addon-assignment-upsert-agent-uid 2026-06-04 22:19:39 +00:00
Sign in to join this conversation.
No reviewers
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!3529
No description provided.