Skip to content

Commit 2951c2c

Browse files
authored
feat: the holon with lineage as a report download format (#272)
## Summary `ReportDownloadFormat` gains `HOLON_JSONLD_LINEAGE`: the report's holon with its fourth named graph, `#lineage`, the ledger lines, entries and events behind every frozen figure. It is served to the graph's own members and never for a report shared in from another graph. Regenerated against robosystems `feature/lineage-exporter` ([robosystems #1900](RoboFinSystems/robosystems#1900)); it merges after the robosystems release that carries that PR deploys. ## Changes - Regenerated GraphQL types: one new enum value, and the `reportDownloadUrl` field's description now names the format and its refusal for a shared-in report. No hand-written line changed; the download facade passes the format through unchanged. ## Compatibility ADDITIVE ## Testing - `just test-all` green: 714 passed, 17 skipped; format, lint and typecheck clean. - Regenerated against the local stack running the server branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013UXnatpnbiixt1ZVHfdZAP
2 parents ed4a68b + 5f8c9c8 commit 2951c2c

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎robosystems_client/graphql/generated/enums.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ class ReportLifecycle(str, Enum):
99

1010
class ReportDownloadFormat(str, Enum):
1111
HOLON_JSONLD = "HOLON_JSONLD"
12+
HOLON_JSONLD_LINEAGE = "HOLON_JSONLD_LINEAGE"
1213
XBRL_2_1 = "XBRL_2_1"
1314
TAVI = "TAVI"

‎robosystems_client/graphql/schema.graphql‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -762,8 +762,11 @@ type Query {
762762
The only way to download a report's bundle. Every format resolves to a
763763
short-lived presigned S3 URL which the client follows directly — the
764764
field returns the URL, never the bytes. The holon is stamped at
765-
publish time; the Tavi and XBRL are materialized and cached on first
766-
request. `expiresIn`
765+
publish time; the Tavi, the XBRL and the holon with lineage are
766+
materialized and cached on first request. `HOLON_JSONLD_LINEAGE` carries
767+
the books behind the report's frozen figures, so it is for this graph's
768+
members only: a report shared in from another graph raises
769+
`REPORT_BUNDLE_NOT_AVAILABLE` for it. `expiresIn`
767770
is the URL's lifetime in seconds, bounded 60-3600.
768771
769772
Returns null when the report doesn't exist; raises
@@ -4416,6 +4419,7 @@ type ReportBundleDownload {
44164419

44174420
enum ReportDownloadFormat {
44184421
HOLON_JSONLD
4422+
HOLON_JSONLD_LINEAGE
44194423
XBRL_2_1
44204424
TAVI
44214425
}

0 commit comments

Comments
 (0)