diff options
| author | tv <tv@krebsco.de> | 2026-10-21 06:16:22 +0200 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-21 06:16:22 +0200 |
| commit | 5e2bf9b34486b1e1d91a6b2fb6748d506487b915 (patch) | |
| tree | be31f6b41f9ba43f9bd42d036c5a80b48613b9ef /src/remake/snapshot.rs | |
| parent | af07def7b795647e4cc338af4a4a0f9bb7c900c9 (diff) | |
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": "" }
] } }
Diffstat (limited to 'src/remake/snapshot.rs')
| -rw-r--r-- | src/remake/snapshot.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/snapshot.rs b/src/remake/snapshot.rs index 2f2dfd6..507d8ac 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<String, JsonValue> = map |
