Repository navigation
feat(ledger): listInformationBlockSummaries, the block list as identities and counts - #273
Merged
Merged
Conversation
…ties and counts The rows, filters, order and page of listInformationBlocks, read by the server in one query instead of an envelope build per block. The call that fills a picker: factCount > 0 marks a block whose envelope carries facts. 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
listInformationBlockSummariesto the ledger facade: the rows, filters, order and page oflistInformationBlocksas identities and counts (factCount,connectionCount), read by the server in one query instead of an envelope build per block. The roboledger-app's Block Explorer and Plan page fill their rails fromlistInformationBlockswithlimit: 200and only needfacts.length > 0; on a 77-block graph that call takes ~4 s. They move to this method once it ships.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
clients/graphql/queries/ledger/informationBlock.ts—LIST_INFORMATION_BLOCK_SUMMARIESdocument.clients/graphql/generated/graphql.ts— regenerated (npm run generate:graphqlagainst the local stack on the server branch): theInformationBlockSummarytype, the query field and the typed document.clients/LedgerClient.ts—listInformationBlockSummaries(graphId, options?), same options aslistInformationBlocks;InformationBlockSummaryListtype export.clients/LedgerClient.test.ts— returns identities and counts, no atoms; passeslimitandentityId.Breaking Changes
None — additive to the stable tier (a new facade method and type). Client minor.
Testing
npm run test:all— validate, 446 tests, build: green.Certification
🤖 Generated with Claude Code