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
{{ message }}
Repository navigation
Commit 690b570
Browse filesBrowse the repository at this point in the historyBrowse files
feat(ledger): information blocks, mappings, reports and schedules take an entity (#244)
## Summary
The Python facade side of RoboFinSystems/robosystems#1752, which scopes
information-block reads to one entity of a reporting group. Parity with
RoboFinSystems/robosystems-typescript-client#259.
- `get_information_block` / `list_information_blocks` take `entity_id`;
the envelope selects `entityId`, the entity it read.
- `list_mappings(graph_id, entity_id=...)`: each mapping carries
`entity_id` (whose chart it maps from), and the argument keeps one
entity's.
- `get_mapping_candidates(..., entity_id=...)` narrows by that entity's
reporting style.
- `create_report(..., entity_id=...)` and `create_schedule(...,
entity_id=...)` pass the entity through.
- `schema.graphql` refreshed from the local stack running #1752. It also
picks up `eventBlocks(eventClass)`, which shipped in v1.16.8 and was
missing from the snapshot. Generated REST models pick up
`CreateScheduleRequest.entity_id`, the envelope's `entity_id`, and the
reworded entity defaults.
Additive only → **minor**. Touches no symbol the integration template
imports.
**Waits on the server:** the documents name `entityId` arguments and
fields that a server serves only once it carries robosystems#1752, so
merge and publish this after the robosystems release that includes #1752
is deployed to prod.
## Test plan
- [x] `just generate-sdk` + `just generate-graphql` against the local
stack
- [x] `just test-all`: 671 passed, ruff + format + basedpyright clean
- [x] New cases: entity forwarded on both block reads, mapping
candidates and mappings (with `entity_id` on the row), `create_report`
wire body, `create_schedule` payload with and without an entity
🤖 Generated with [Claude Code](https://claude.com/claude-code)
0 commit comments