Bug
env.events().publish(
(Symbol::new(&env, "metadata_updated"),),
name.clone(), // ← only route name, no metadata value
);
Fix
Include the new metadata in the event payload:
env.events().publish(
(Symbol::new(&env, "metadata_updated"),),
(name.clone(), metadata.clone()),
);
If including the full Option<RouteMetadata> is too large, include a boolean has_metadata:
(name.clone(), metadata.is_some()),
Tests to add
test_metadata_updated_event_includes_metadata — set metadata, assert event data contains the new value
Bug
Fix
Include the new metadata in the event payload:
If including the full
Option<RouteMetadata>is too large, include a booleanhas_metadata:Tests to add
test_metadata_updated_event_includes_metadata— set metadata, assert event data contains the new value