Repository navigation
feat!: the telemetry export resource - #17
Merged
Merged
Conversation
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>
There was a problem hiding this comment.
🟡 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

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(PATCHis_enabled),delete,test(answers the settled deliveries, never retried), anddeliveries.list,count,redeliver, every argument keyword-only as the repo does. The eight methods carry the session-only note, since every operation issessionAuth.TelemetryExport,TelemetrySignal,DeliveryandDeliveryStatus; the notification relations and embeds the snapshot gained (api_token,user_session_client,webhook).headers), the first request body of that shape; an undocumented top-level key is still caught.WebhookDeliveryis replaced by the sharedDelivery, andWebhook.is_enabledbydisabled_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