Notify assignees on card update, and assign people when creating a card
A customer's agents assign cards through the Basecamp CLI, and the people they assign are never notified. Basecamp already supports that, but the SDK can't ask for it yet. This PR adds the two fields that are missing. Tracking card: https://app.basecamp.com/2914079/buckets/48521764/card_tables/cards/10480780870
Notify on card update. UpdateCardInput now has notify. bc3's Kanban::CardsController#update calls @recording.replace_assignees(find_assignees, notify: notify_assignees_param), and Assignees::NotifyParam reads params[:notify] as a boolean cast. It is off by default and notifies only the people this request's assignee_ids newly adds, so on its own it does nothing. As with the to-do writes, it is a send directive rather than card state. Every SDK's merge-safe Cards update composite now takes it and puts "notify": true on the wire only when the caller asks. Otherwise the key stays off the wire, so an assignment is silent by default, matching the API. The composite still never resends assignees the caller didn't name. updateVerbatim passes notify through as given.
Assign on card create. CreateCardInput now has assignee_ids. bc3's Kanban::Lists::CardsController#create calls @recording.assign find_assignees, notify: notify_assignees_param and reads the IDs from params.dig(:kanban_card, :assignee_ids). Its wrap_parameters :kanban_card includes assignee_ids, so a top-level JSON key reaches it. Until now, CreateCardRequest.Notify had no effect, because nobody could be assigned on create.
The Go public API gains UpdateCardRequest.Notify bool and CreateCardRequest.AssigneeIDs []int64, following the existing conventions: notify is sent only when true, and a nil slice is omitted. The other SDKs get these fields from the regenerated request types, and their update composites gain a notify argument. SPEC §5 "Merge-Safe Write Surface (Cards)" now describes it.
Testing. I changed the Smithy spec and ran make generate. Swift was regenerated with the Swift generator in a swift:6.2 container, because this host has no Swift toolchain. There are four new cases in conformance/tests/cards_write.json, wired into all seven runners:
update-notify: whole-body equality,{"assignee_ids":[…],"notify":true}update-notify-false:notifyabsent from the bodyupdate-verbatim-notifycreate-assigns-and-notifies: whole-body equality for the create
Each SDK also has unit tests on the wire body: notify sent on update when true and left off when false, and assignee_ids plus notify sent on create. I removed the Go composite's notify line to check that the tests catch a dropped notify: the update-notify conformance cases and the Go unit test both failed. Locally, make -k check-targets passed everything except two things that also fail on origin/main on this host: golangci-lint 2.14.0 reports two findings in files this PR doesn't touch (eventfeed/renew.go, filing_wait_test.go), and a different retry-timing case flakes in the Go conformance runner on each run. The new card cases passed in the six runners that run on Linux. The Swift unit tests and the Swift conformance runner need macOS, so CI is the first place they run.
Summary by cubic
Lets SDK users notify assignees when updating a card and assign people when creating one, so teams working through the Basecamp CLI no longer assign cards silently.
UpdateCardgainsnotify, a send directive that reaches the wire only when true and notifies only the people newly assigned throughassignee_idsin the same request.CreateCardgainsassignee_ids, so a card can be created already assigned and notified in one request.- All seven SDKs are regenerated, and four new conformance cases pin
notifyandassignee_idson the wire. MIGRATING.mddocuments the compile-time breaks in Go, Rust, and Kotlin caused by the new request fields and parameters.