Skip to content

feat!: the telemetry export resource - #17

Merged
robingenz merged 1 commit into
mainfrom
feat/telemetry-export
Nov 3, 2026
Merged

robingenz merged 1 commit into
mainfrom
feat/telemetry-export

Conversation

@robingenz

Copy link
Copy Markdown
Member

Slice 6 of hotcodepush-team/hotcodepush#398. The API lands in hotcodepush-team/hotcodepush#399 to #402; the why is the handbook's decisions.md#2026-11-03.

What

  • organizations.telemetry_export: get, set (PUT, replaces the export whole), update (PATCH is_enabled), delete, test (answers the settled deliveries, never retried), and deliveries.list, count, redeliver, every argument keyword-only as the repo does. The eight methods carry the session-only note, since every operation is sessionAuth.
  • Models TelemetryExport, TelemetrySignal, Delivery and DeliveryStatus; the notification relations and embeds the snapshot gained (api_token, user_session_client, webhook).
  • The contract test accepts the keys of a documented map (headers), the first request body of that shape; an undocumented top-level key is still caught.
  • Breaking: WebhookDelivery is replaced by the shared Delivery, and Webhook.is_enabled by disabled_at.

Checks

uv run ruff format --check, uv run ruff check, uv run mypy, uv run pytest: 645 passing, the integration tests skipped as always without an API. CI's drift check against production stays red until the API deploys; that is expected for a snapshot that moves ahead of a deploy.

🤖 Generated with Claude Code

Slice 6 of hotcodepush-team/hotcodepush#398.

- organizations.telemetry_export with get, set, update, delete, test and deliveries.list, count and redeliver.
- One Delivery model for a webhook's and the export's deliveries; the notification relations the snapshot gained.

BREAKING CHANGE: WebhookDelivery is replaced by Delivery, and Webhook.is_enabled by disabled_at, a datetime or None.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 11:14

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The documentation overstates when webhook failure counts reset and lacks migration guidance for replacing WebhookDelivery with Delivery and checking enabled state via disabled_at.

2 open issues
What changed in this PR

Adds organization-level telemetry export support to the Python client, implementing slice 6 of hotcodepush-team/hotcodepush#398 and aligning models with the updated API snapshot.

Changes:

  • Adds telemetry export configuration, testing, and delivery-management methods.
  • Introduces shared delivery models and notification relations, with breaking changes to webhook imports and enabled-state fields.
  • Adds resource tests and extends contract checks to accept documented map keys.
File Description
tests/​test_webhooks.py Updates webhook test expectations to Delivery.
tests/​test_webhook_deliveries.py Updates delivery assertions to the shared model.
tests/​test_telemetry_export.py Tests export operations and non-retried test requests.
tests/​test_telemetry_export_deliveries.py Tests delivery filtering, counts, and redelivery behavior.
tests/​test_openapi.py Adds contract calls and documented-map support.
src/​hotcodepush/​resources/​webhooks.py Returns Delivery and updates enablement documentation.
src/​hotcodepush/​resources/​webhook_deliveries.py Uses shared delivery and status types.
src/​hotcodepush/​resources/​telemetry_export.py Implements telemetry export configuration and testing.
src/​hotcodepush/​resources/​telemetry_export_deliveries.py Implements delivery listing, counting, and redelivery.
src/​hotcodepush/​resources/​organizations.py Exposes the nested telemetry export resource.
src/​hotcodepush/​models.py Adds telemetry models and updates webhook and notification fields.
src/​hotcodepush/​__init__.py Exports new types and removes WebhookDelivery.
openapi.json Refreshes the snapshot with telemetry endpoints and updated schemas.

Review effort: Balanced

Comment thread src/hotcodepush/models.py Resolved
Comment thread src/hotcodepush/resources/webhooks.py Resolved
@robingenz
robingenz merged commit efa59fb into main Nov 3, 2026
12 of 16 checks passed
@robingenz
robingenz deleted the feat/telemetry-export branch November 3, 2026 14:31
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.

2 participants