Skip to content

feat: the audience schedule and the app's default channel - #23

Merged
robingenz merged 2 commits into
mainfrom
feat/audience-progression
Nov 20, 2026
Merged

robingenz merged 2 commits into
mainfrom
feat/audience-progression

Conversation

@robingenz

@robingenz robingenz commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Summary

Two additions that follow the live API document, mirroring the Node client:

  • The audience preview can be asked about a release's schedule.
  • The app read can embed the app's default channel.

The schedule on the audience preview

apps.channels.audience.get takes progression_rollout_percent and progression_step_minimum_update_count. One is valid only beside the other. With both, the API adds the warning progression_step_too_small when a step adds fewer devices than the applied updates it waits for.

  • models.py: AudienceWarning.code accepts progression_step_too_small, and a new contract test holds its values to the snapshot.
  • _http.py: a list of integers is typed and sent as a repeated query parameter, as a list of strings is.

The default channel on the app read

apps.get takes relations=["defaultChannel"] and then answers the app with default_channel set. AppRelation names the value and is exported.

The snapshot

openapi.json follows the live API document and stays identical to the Node client's snapshot.

Verification

  • ruff format, ruff check and mypy pass
  • the 647 tests pass
  • a second model reviewed both parts, and its findings are applied

🤖 Generated with Claude Code

`apps.channels.audience.get` takes `progression_rollout_percent` and
`progression_step_minimum_update_count`. With both, the API adds the
warning `progression_step_too_small` when a step adds fewer devices than
the applied updates it waits for. `AudienceWarning.code` accepts the new
code, and a contract test holds its values to the snapshot.

A list of integers now goes out as a repeated query parameter, as a list
of strings does.

The snapshot follows the live API document. It also brings the
`defaultChannel` embed of the app read, so `App` gains `default_channel`.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@robingenz
robingenz marked this pull request as ready for review November 20, 2026 20:07
`apps.get` takes `relations=["defaultChannel"]` and then answers the app
with `default_channel` set. `AppRelation` names the value.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@robingenz robingenz changed the title feat: send the schedule to the audience preview feat: send the schedule to the audience preview and ask the app read for its default channel Nov 20, 2026
@robingenz robingenz changed the title feat: send the schedule to the audience preview and ask the app read for its default channel feat: the audience schedule and the app's default channel Nov 20, 2026
@robingenz
robingenz merged commit 1c83437 into main Nov 20, 2026
20 checks passed
@robingenz
robingenz deleted the feat/audience-progression branch November 20, 2026 20:27
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