Repository navigation
feat(ledger): list_information_block_summaries, the block list as identities and counts - #257
Merged
Merged
Conversation
…ntities and counts The rows, filters, order and page of list_information_blocks, read by the server in one query instead of an envelope build per block. The call that fills a picker: fact_count > 0 marks a block whose envelope carries facts. The schema snapshot also takes periodRole from robosystems #1832. Waits on the robosystems release carrying #1834.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
list_information_block_summariesto the ledger facade: the rows, filters, order and page oflist_information_blocksas identities and counts (fact_count,connection_count), read by the server in one query instead of an envelope build per block — the call that fills a picker. Its TypeScript twin is robosystems-typescript-client PR for the same field; the two move together.Waits on the server: the
informationBlockSummariesfield lands with robosystems PR #1834, unreleased at the time of writing (prod is v1.18.1). Merge after that release is in production.Changes
robosystems_client/graphql/operations/ledger/ListInformationBlockSummaries.graphql— the operation.robosystems_client/graphql/schema.graphql— refreshed from the local stack on the server branch (just refresh-schema). Besides the new field and type, the snapshot picks upperiodRoleon the ledger statement rows from robosystems #1832, already onmain.robosystems_client/graphql/generated/*—just generate-graphql: the typed models and the operation string.robosystems_client/clients/ledger_client.py—list_information_block_summaries(graph_id, *, block_type, category, limit, offset, scenario_id, entity_id).test_ledger_client.py), the wire shape (test_facade_wire_shapes.py);test_graphql_queries.pyvalidates the new document against the snapshot by discovery.Breaking Changes
None — additive to the stable tier (a new facade method). Client minor.
Testing
just test-all— 691 passed, 17 skipped; format, lint and typecheck clean.Certification
🤖 Generated with Claude Code