Skip to content

feat: regenerate for multi-entity step 2 (create_entity, entity_id, combined statement) - #239

Merged
jfrench9 merged 1 commit into
mainfrom
feature/multi-entity-step-2
Oct 7, 2026
Merged

jfrench9 merged 1 commit into
mainfrom
feature/multi-entity-step-2

Conversation

@jfrench9

@jfrench9 jfrench9 commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

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.ai/code/session_01BY3uYE5zMjjFHnjiZfiJu8

create_entity and CreateEntityRequest; entity_id on the close, setup, report,
event block and live statement requests; consolidated on the live statement
with entity_id and combined_entity_ids on its response; ownership_pct on the
entity; the GraphQL schema snapshot with entityId on the ledger reads. The
generated tier follows the API's two moves: api.graphs.select_graph leaves
now that the endpoint set_selected_graph replaced is gone, and
validate_schema sits under api.graphs with its tag. Release notes for
v2.8.0 name both.

Claude-Session: https://claude.ai/code/session_01BY3uYE5zMjjFHnjiZfiJu8
@jfrench9
jfrench9 marked this pull request as ready for review October 7, 2026 05:42
@jfrench9
jfrench9 merged commit d3ec1e4 into main Oct 7, 2026
4 checks passed
@jfrench9
jfrench9 deleted the feature/multi-entity-step-2 branch October 7, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant