From 2f6c8be3cb8ed3bb654340def01cff1fafca9610 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 21 Oct 2026 06:16:22 +0200 Subject: add the replace kind of remake POST /admin/remakes accepts specs with replace kind, e.g.: { "kind": "replace", "baseHeads": ["..."], "spec": { "document": { "accounts": { ... } }, "rules": [ { "from": "users", "to": "accounts" }, { "from": "users/admin", "drop": true }, { "from": "", "to": "" } ] } } --- src/remake/snapshot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/remake/snapshot.rs') diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs index ac2b3ec..388a4d2 100644 --- a/src/remake/snapshot.rs +++ b/src/remake/snapshot.rs @@ -336,7 +336,7 @@ fn snapshot_actor(remake_id: &str, generation: u64) -> ActorId { /// Rebuilds every object with sorted keys, so the result is the same whichever key /// order serde_json happens to use (it keeps insertion order with `preserve_order`). -fn canonical(value: JsonValue) -> JsonValue { +pub(super) fn canonical(value: JsonValue) -> JsonValue { match value { JsonValue::Object(map) => { let sorted: BTreeMap = map -- cgit v1.3.1