Repository navigation
Commit b48c4ff
authored
feat(ledger): event blocks carry the document they rest on (#247)
## Summary
`get_event_block` and `list_event_blocks` now select `documentId`, so
their models carry the stored document an event cites. Setting the field
already works through `update_event_block`: `document_id`, where `""`
detaches.
**This waits on robosystems #1769**, which adds `EventBlock.documentId`
to the GraphQL schema. These queries select the field, so against a
server without it they fail validation. Per the client contract, open it
ready and release it once #1769 is deployed (or with it).
## Contract tier
Additive to the stable tier: a new nullable field on two facade return
types. That makes it a client minor or patch.
## Test plan
- [x] `schema.graphql` refreshed from a local stack serving #1769 (one
line, `documentId: String`), and the GraphQL models regenerated.
- [x] Facade tests: `get_event_block` returns `document_id`, and the
list fixture carries it.
- [x] `just test-all` passes: 673 tests, ruff and basedpyright clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01AQkGGPDmpba9eBV9PkLTfv7 files changed
Lines changed: 10 additions & 2 deletions
File tree
- robosystems_client/graphql
- generated
- operations/ledger
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
633 | 634 | | |
634 | 635 | | |
635 | 636 | | |
| |||
1554 | 1555 | | |
1555 | 1556 | | |
1556 | 1557 | | |
| 1558 | + | |
1557 | 1559 | | |
1558 | 1560 | | |
1559 | 1561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1613 | 1613 | | |
1614 | 1614 | | |
1615 | 1615 | | |
| 1616 | + | |
1616 | 1617 | | |
1617 | 1618 | | |
1618 | 1619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
| 1184 | + | |
1184 | 1185 | | |
1185 | 1186 | | |
1186 | 1187 | | |
| |||
1236 | 1237 | | |
1237 | 1238 | | |
1238 | 1239 | | |
| 1240 | + | |
1239 | 1241 | | |
1240 | 1242 | | |
1241 | 1243 | | |
| |||
1244 | 1246 | | |
1245 | 1247 | | |
1246 | 1248 | | |
| 1249 | + | |
1247 | 1250 | | |
1248 | 1251 | | |
1249 | 1252 | | |
| |||
0 commit comments