Repository navigation
Commit 5bb9f9f
authored
feat(ledger): holon-jsonld-lineage on download_report_bundle (#284)
## Summary
`download_report_bundle` gains the short alias `"holon-jsonld-lineage"`
for the lineage holon: the holon with its `#lineage` graph, the ledger
lines, entries and events behind every frozen figure. Until now a caller
had to pass the GraphQL enum name, which the robosystems demos do
(robosystems #1933), and a download whose response named no file landed
with a `.tavi.json` extension.
## Changes
- `robosystems_client/clients/ledger_client.py`:
`"holon-jsonld-lineage"` → `HOLON_JSONLD_LINEAGE` in the format aliases;
a nameless lineage download lands as `.lineage.holon.jsonld`; the
docstring lists the format and its enum name.
- `tests/test_ledger_client.py`: the alias sends the enum, and the
fallback filename takes the lineage extension.
## Compatibility
Additive, generated tier untouched. A client minor; the enum has been in
the generated schema since the lineage format shipped. Pairs with
robosystems-typescript-client's docs change for the same format.
## Testing
`just test-all`: 733 passed, 17 skipped; ruff, format and basedpyright
clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_015PxYaVzrbraKFeRALM7rXp2 files changed
Lines changed: 30 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
786 | 786 | | |
787 | 787 | | |
788 | 788 | | |
| 789 | + | |
789 | 790 | | |
790 | 791 | | |
791 | 792 | | |
| |||
3782 | 3783 | | |
3783 | 3784 | | |
3784 | 3785 | | |
3785 | | - | |
3786 | | - | |
| 3786 | + | |
| 3787 | + | |
| 3788 | + | |
| 3789 | + | |
| 3790 | + | |
| 3791 | + | |
3787 | 3792 | | |
3788 | 3793 | | |
3789 | 3794 | | |
| |||
3830 | 3835 | | |
3831 | 3836 | | |
3832 | 3837 | | |
| 3838 | + | |
3833 | 3839 | | |
3834 | 3840 | | |
3835 | 3841 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3252 | 3252 | | |
3253 | 3253 | | |
3254 | 3254 | | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
| 3259 | + | |
| 3260 | + | |
| 3261 | + | |
| 3262 | + | |
| 3263 | + | |
| 3264 | + | |
| 3265 | + | |
| 3266 | + | |
| 3267 | + | |
| 3268 | + | |
| 3269 | + | |
| 3270 | + | |
| 3271 | + | |
| 3272 | + | |
| 3273 | + | |
| 3274 | + | |
| 3275 | + | |
| 3276 | + | |
3255 | 3277 | | |
3256 | 3278 | | |
3257 | 3279 | | |
| |||
0 commit comments