You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(alert): pass AlertItem instead of alert_id to enable/disable
The previous fix used list() internally to find the alert, which fails
if the list is paginated or the alert is not returned. Instead, change
the enable/disable signatures to accept an AlertItem (obtained by the
caller from list()), eliminating the implicit extra round-trip and the
"not found" risk.
Changes:
- rust/src/alert/context.rs: enable/disable take &AlertItem
- rust/src/blocking/alert.rs: blocking wrappers take AlertItem by value
- python/src/alert/: add From<AlertItem> for lb::AlertItem; binding uses AlertItem
- nodejs/src/alert/: add From<AlertItem> for lb::AlertItem; binding uses AlertItem
- java/src/alert_context.rs: JNI deserialises AlertItem object instead of String
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments