omnigraph/crates/omnigraph-server
Ragnor Comerford 69fae71870
refactor(server): extract do_* inner fns from server_* handlers (MR-969/RFC-003)
Mechanical and behavior-neutral. Each server_* HTTP handler becomes a thin
wrapper over a pub(crate) do_* fn that takes the resolved actor plus plain
args (the shape run_query/run_mutate already use), so the upcoming in-server
MCP tools can dispatch one path instead of duplicating the Cedar gate,
admission, and engine call.

11 fns: do_snapshot, do_schema_get, do_branches_list, do_commits_list,
do_commit_show, do_schema_apply, do_ingest, do_branch_create,
do_branch_delete, do_branch_merge, do_graphs_list. The Cedar PolicyRequest,
admission ordering (gate then try_admit), actor/anonymous derivation, and
engine args stay identical; only the Json(...) wrap moves to the call site.

All 105 server tests pass.
2026-06-08 15:26:18 +02:00
..
examples feat: inline query strings in CLI and HTTP server (#110) 2026-05-29 13:41:54 +02:00
src refactor(server): extract do_* inner fns from server_* handlers (MR-969/RFC-003) 2026-06-08 15:26:18 +02:00
tests Stored-query registry foundation + config/CLI RFC-002 (#128) 2026-06-01 22:50:31 +02:00
Cargo.toml fix(optimize): skip blob-bearing tables to avoid Lance compaction crash (#138) 2026-06-02 17:12:00 +02:00