Skip to content

Commit d032fba

Browse files
authored
chore: regenerate for the graph mutation audit (#223)
## Summary Regenerated against the RoboSystems API with the graph mutation audit (robosystems #1569). Adds `list_graph_mutations`, the read of a graph's mutation audit, and picks up additive changes already on the API. **Merge and publish only after robosystems #1569 is merged and its release is deployed.** Until then production answers `list_graph_mutations` with a 404. ## Changes All generated; nothing hand-written changed. - **New:** `robosystems_client.api.graph_audit.list_graph_mutations` (sync and async), wrapping `GET /v1/graphs/{graph_id}/audit/mutations`. New models: `MutationAuditEntry`, `MutationAuditListResponse`, `MutationAuditEntryStatus`, `MutationAuditEntrySurface` and `ListGraphMutationsSurfaceType0`. - **Picked up from the API** (already in the deployed v1.14.5): - an optional `allow_unposted_source_events` on `ClosePeriodOperation` and `BackfillPlanHistoryOperation`; - optional `unposted_source_event_count` / `unposted_source_event_sample` on `FiscalCalendarResponse`, and the matching GraphQL fields in `schema.graphql`; - clearer descriptions on `ingest_file`, `cancel_operation`, `create_mapping_association`, `FactSetLite`, `IngestFileOp` and `MaterializeOp`. ## Compatibility ADDITIVE. One new module and its models. Every changed model gained only optional fields with defaults, checked model by model; nothing became required or was removed. No facade or other stable-tier symbol changed. ## Testing - `just test-all`: ruff, format, basedpyright, and 595 passed, 17 skipped. - The regeneration read a local API running the robosystems branch behind #1569 (v1.14.5 plus the audit work, nothing else), so this is exactly the surface that PR ships.
2 parents 6e30e21 + 30c74e6 commit d032fba

18 files changed

Lines changed: 902 additions & 18 deletions

‎robosystems_client/api/content_operations/ingest_file.py‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def sync_detailed(
113113
114114
Mark an uploaded file ready and stage it into DuckDB. Small files stage directly (sync); large files
115115
stage via a background job (returns a pending envelope with an `operation_id` to monitor). Set
116-
`ingest_to_graph` to auto-materialize into the graph after staging.
116+
`ingest_to_graph` to auto-materialize into the graph after staging; that write takes the graph's
117+
materialize lock, so it returns 409 while another materialization of the graph is running.
117118
118119
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
119120
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -158,7 +159,8 @@ def sync(
158159
159160
Mark an uploaded file ready and stage it into DuckDB. Small files stage directly (sync); large files
160161
stage via a background job (returns a pending envelope with an `operation_id` to monitor). Set
161-
`ingest_to_graph` to auto-materialize into the graph after staging.
162+
`ingest_to_graph` to auto-materialize into the graph after staging; that write takes the graph's
163+
materialize lock, so it returns 409 while another materialization of the graph is running.
162164
163165
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
164166
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -198,7 +200,8 @@ async def asyncio_detailed(
198200
199201
Mark an uploaded file ready and stage it into DuckDB. Small files stage directly (sync); large files
200202
stage via a background job (returns a pending envelope with an `operation_id` to monitor). Set
201-
`ingest_to_graph` to auto-materialize into the graph after staging.
203+
`ingest_to_graph` to auto-materialize into the graph after staging; that write takes the graph's
204+
materialize lock, so it returns 409 while another materialization of the graph is running.
202205
203206
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
204207
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
@@ -241,7 +244,8 @@ async def asyncio(
241244
242245
Mark an uploaded file ready and stage it into DuckDB. Small files stage directly (sync); large files
243246
stage via a background job (returns a pending envelope with an `operation_id` to monitor). Set
244-
`ingest_to_graph` to auto-materialize into the graph after staging.
247+
`ingest_to_graph` to auto-materialize into the graph after staging; that write takes the graph's
248+
materialize lock, so it returns 409 while another materialization of the graph is running.
245249
246250
**Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
247251
return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""Contains endpoint functions for accessing the API"""

0 commit comments

Comments
 (0)