Skip to content

cli-v0.9.0

Choose a tag to compare

@github-actions github-actions released this 14 Oct 09:17
· 2 commits to main since this release
322f674
fix(server): make call_rule_set and $data work, release 0.9.0 (#201)

ordo-server ran every ruleset with an executor that had no resolver, so a
call_rule_set action always failed with "CallRuleSet requires a resolver".
External data was injected as an input field named "$data", but rules read
"$data.x" as a variable lookup, so the value was always missing and
conditions on it were silently false.

- core: `$name` paths fall back to an input field of the same name when no
  variable matches, so `$data.<name>.<path>` reads injected data (server and
  `ordo exec --data`).
- core: `execute_with_resolver` passes a resolver per run, so one shared
  executor can serve every tenant. A call with `input_mapping` keeps `$data`.
- server: one store read gives the ruleset, the tenant's data and a snapshot
  of every ruleset it can reach through calls. Used by execute, batch,
  pipeline, gRPC (single and batch), the decision gateway and debug execute.
  Batch and gRPC now also get `$data`.
- server: with multi-tenancy, external data was saved under
  tenants/<id>/data but loaded from tenants/tenants/<id>/data, so it was
  lost on restart.
- docs (en, zh): call_rule_set, external data, data endpoints.
- bump crates and npm wrapper to 0.9.0 (also ships #198).