Skip to main content

details

Function details 

Source
pub fn details(a: JsonbRef<'_>) -> Result<Jsonb, String>
Expand description

Reshapes proto audit_log_event_v1::Details JSON from mz_catalog_raw (e.g. {"IdFullNameV1": {"id": "u1", "name": {...}}}) into the shape mz_audit_log::EventDetails::as_json produces: the format the prior pack_audit_log_update populator wrote to mz_audit_events.

See the module docstring for the mechanism and the reciprocal side. Rule changes must be paired with tests; the property test at src/catalog/tests/audit_log_details.rs is the safety net.