You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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).