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 | 2f6c8be3cb8ed3bb654340def01cff1fafca9610 (patch) | |
| tree | deb0cf537f57f64ac29de9d57b27c07f18f689a6 /src/remake/mod.rs | |
| parent | 6da2d9801c66b1e81c386dc81aa7584152939cd5 (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/mod.rs')
| -rw-r--r-- | src/remake/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/remake/mod.rs b/src/remake/mod.rs index 9030099..f5b7fc8 100644 --- a/src/remake/mod.rs +++ b/src/remake/mod.rs @@ -2,7 +2,7 @@ //! Compaction is one: the new document has the old one's content without its history. //! //! * `kind`: what differs between kinds of remake (building the new document, and -//! where writes made after the base go); compaction is the only kind so far. +//! where writes made after the base go): `compact` and `replace`. //! * `snapshot`: deterministic build of the next epoch's initial document. //! * `records`: the replicated remake records under `_continuum/remakes/<id>`. //! * `coordinator`: proposal, settle period and decision on the node that was asked. |
