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 to enable/disable across all language SDKs
Problem: enable() and disable() sent only {id, enabled} to the API,
causing "invalid frequency:0" and "invalid indicator id" errors.
Solution: change the signature to accept an AlertItem (obtained from
list()) so all required fields are available without an extra round-trip.
Changes:
- rust/src/alert/context.rs: enable/disable take &AlertItem; add
internal set_enabled() helper that builds the full request payload
- rust/src/blocking/alert.rs: blocking wrappers accept AlertItem by value
- python/src/alert/: add From<AlertItem> for lb::AlertItem; binding
passes AlertItem to core
- nodejs/src/alert/: add From<AlertItem> for lb::AlertItem; binding
passes AlertItem to core
- java/src/alert_context.rs: add read_alert_item() that reads each
field from the Java object via JNI; no FromJValue needed
- c/src/alert_context/: lb_alert_context_enable/disable accept
*const CAlertItem; add CAlertItem::to_alert_item() conversion
Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
0 commit comments