Skip to content

Regenerate for purged report ids on the block result - #185

Merged
jfrench9 merged 1 commit into
mainfrom
feature/received-report-purge-ids
Aug 10, 2026
Merged

Regenerate for purged report ids on the block result#185
jfrench9 merged 1 commit into
mainfrom
feature/received-report-purge-ids

Conversation

@jfrench9

Copy link
Copy Markdown
Member

Summary

Blocking a source graph with purge now reports which reports it removed, not only how many. Regenerated against RoboFinSystems/robosystems#1126, which adds purged_report_ids to the block result so a recipient can reconcile exactly what left their graph instead of inferring it from a count.

Changes

  • models/block_source_graph_result.py — one new optional field, purged_report_ids: list[str] | Unset, with the to_dict / from_dict handling the generator emits for a list-typed optional. Sync and async paths are unaffected: this is a response model, not an endpoint.

That is the whole diff. Nothing under clients/ (the hand-written facades) changed, and no endpoint was added, removed, or resignatured.

The GraphQL SDL is unchangedjust refresh-schema against a backend running that branch reported "already current (2473 lines)", so the ariadne-codegen models are untouched. The upstream change alters authorization on existing report reads, not the schema they expose.

Compatibility

ADDITIVE

Compared the emitted model before classifying, per the template's warning. purged_report_ids is optional (| Unset, defaulting to UNSET), no existing field changed type or became required, and nothing was removed. purged_report_count is untouched and still populated, so a consumer reading only the count is unaffected.

Nothing here touches the stable tier — no facade, no root export, and none of the symbols robosystems-integration-template imports for its emit path.

Testing

  • just test-all — passed via the pre-commit hook: 526 passed / 17 skipped, ruff check, ruff format, basedpyright (0 errors).
  • Verified by hand that the emitted description matches the corrected upstream text; an earlier regen carried a description that explained why the server also reads the field, which does not belong in published client docs.

Release sequencing

Do not publish before robosystems#1126 merges and deploys. The field is optional, so a client ahead of the API is harmless at runtime — it simply never arrives — but until then the package would document a response field the deployed API does not return.

No version bump in this PR.

Blocking a source graph with `purge` now reports which reports it removed,
not only how many. `BlockSourceGraphResult` gains an optional
`purged_report_ids`, so a caller can reconcile what left their graph instead
of inferring it from a count.

Additive and optional — generated tier, nothing in the facades or the
integration template's emit path moves. Regenerated against
RoboFinSystems/robosystems#1126; the GraphQL SDL is unchanged, so the typed
GraphQL models are untouched.
@jfrench9
jfrench9 merged commit c987ff9 into main Aug 10, 2026
1 check passed
@jfrench9
jfrench9 deleted the feature/received-report-purge-ids branch August 10, 2026 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant