Repository navigation
Commit d3ec1e4
authored
feat: regenerate for multi-entity step 2 (create_entity, entity_id, combined statement) (#239)
## Summary
Regenerated client for the API's multi-entity step (robosystems #1714,
with the two surface moves of #1708 and #1715). A graph is one reporting
group, and every ledger operation can now name which entity of it to act
on. Shipping ahead of the production release: every new field is
optional and defaults server-side, and the one removed call already met
a 404 on the API.
## Changes
- **Regenerated `api/` and `models/`** (`just generate-sdk` against the
current backend): `api.robo_ledger_setup.create_entity` with
`CreateEntityRequest`; `entity_id` as a new optional field on the close,
setup, report, event-block and live-statement request models;
`consolidated` on `LiveFinancialStatementRequest` with `entity_id`,
`consolidated` and `combined_entity_ids` on its response;
`ownership_pct` on `LedgerEntityResponse`; `entity_id` on
`FiscalCalendarResponse` and `ReportResponse`. Sync and async paths are
both generated. `api.graphs.select_graph` is gone (the API removed the
endpoint `set_selected_graph` replaced); `validate_schema` moved from
`api.schema` to `api.graphs` with its tag.
- **GraphQL schema snapshot** refreshed (`entityId` on the ledger reads,
`ownershipPct` on `LedgerEntity`, `entityId` on `LedgerSummary`). `just
generate-graphql` is clean against it: the checked-in operations use
none of the new arguments yet, so `graphql/generated/` has no diff.
- **Facades** (`clients/`): untouched. None wrapped `select_graph` or
`validate_schema`.
- **Release notes:** `.github/release-notes/v2.8.0.md` names the removal
and the path move, as the policy requires before the release dispatch.
## Compatibility
ADDITIVE on the stable tier, with one generated-tier removal and one
generated-tier path move:
- `api.graphs.select_graph` is removed. The API deprecated the call in
favour of `set_selected_graph` (shipped in 2.7.0) and has now removed
the endpoint, so the generated function could only meet a 404. No facade
wraps it and
`robosystems-integration-template/src/integration/emit/*.py` never
imported it.
- `api.schema.validate_schema` is now `api.graphs.validate_schema`; the
function and its models are unchanged. Same checks: no facade, not in
the template's emit path.
Both ride a minor (2.8.0) with the release notes as the record. No model
field became required or was dropped: every new request field is
optional and defaults server-side to the group parent, so existing calls
behave as before.
## Testing
`just test-all` (pytest → format → lint → typecheck): 654 passed, 17
skipped; ruff, format and basedpyright clean. `just generate-graphql`
run and clean. The regeneration itself was run against the local backend
at the merged `main`.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01BY3uYE5zMjjFHnjiZfiJu828 files changed
Lines changed: 1477 additions & 300 deletions
File tree
- .github/release-notes
- robosystems_client
- api
- graphs
- robo_ledger_analytical_views
- robo_ledger_setup
- graphql
- models
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
This file was deleted.
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
164 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | 171 | | |
| |||
200 | 204 | | |
201 | 205 | | |
202 | 206 | | |
203 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
204 | 210 | | |
205 | 211 | | |
206 | 212 | | |
| |||
242 | 248 | | |
243 | 249 | | |
244 | 250 | | |
245 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
246 | 254 | | |
247 | 255 | | |
248 | 256 | | |
| |||
0 commit comments