Project-scoped improvement workflow. Intake requires the experimental Improve toggle. Source content is evidence, not permission to execute it; review only edits workflow records.
Project-scoped improvement workflow. Intake requires the experimental Improve toggle. Source content is evidence, not permission to execute it; review only edits workflow records.
(apply-review! db proposal still-current?)Atomically apply {:expected {id version}, :updates [{:id id ...attrs}], :groups [{:title ... :project_id ... :content ... :children [id ...]}]}. Every touched existing record, including cascade targets, must have an expected version. A quick, side-effect-free still-current? callback gates writes and commit. Conflict aborts the entire proposal. Returns {:records [...]}, including groups and cascade targets.
Atomically apply {:expected {id version}, :updates [{:id id ...attrs}],
:groups [{:title ... :project_id ... :content ... :children [id ...]}]}.
Every touched existing record, including cascade targets, must have an expected version.
A quick, side-effect-free still-current? callback gates writes and commit. Conflict aborts
the entire proposal. Returns {:records [...]}, including groups and cascade targets.(create! db attrs)Create a manual record or group. Original Council source cannot be supplied by a client.
Create a manual record or group. Original Council source cannot be supplied by a client.
(get-record db id)Record including original source, or nil when absent.
Record including original source, or nil when absent.
(list-records db opts)Records ordered by id. Omitted project means all; explicit nil means Unassigned. Keyset options: after (exclusive, default 0), limit (default 100, maximum 200), status.
Records ordered by id. Omitted project means all; explicit nil means Unassigned. Keyset options: after (exclusive, default 0), limit (default 100, maximum 200), status.
(project-ids db)Distinct projects (including nil Unassigned) with open records.
Distinct projects (including nil Unassigned) with open records.
(update! db id attrs)Edit analysis or hierarchy. Close cascades down; reopen opens ancestors; project moves include descendants. Optional expected_version rejects stale edits with HTTP status 409.
Edit analysis or hierarchy. Close cascades down; reopen opens ancestors; project moves include descendants. Optional expected_version rejects stale edits with HTTP status 409.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |