Skip to content

docs: an upgrade note for the unified TTL defaults - #25

Merged
AlexeyShalaev merged 1 commit into
masterfrom
docs/upgrading-ttl-defaults
Sep 6, 2026
Merged

AlexeyShalaev merged 1 commit into
masterfrom
docs/upgrading-ttl-defaults

Conversation

@AlexeyShalaev

Copy link
Copy Markdown
Member

#22 made core/constants.py the single source for the TTL defaults, which moved two of them: the default TTL from 30 minutes to 60, and the ceiling from a day to thirty. Its commit said so with a BREAKING CHANGE: footer, and the squash merge threw the footer away because the squash message was the pull request title with an empty body. My mistake, not the author's.

The result is visible in the open release pull request: release-please read the merge as a plain fix: and proposed 0.1.2, with nothing in the changelog about a service built with no arguments now keeping records twice as long.

This puts the footer back, so the pending release recomputes as a minor with a breaking-changes section. The change earns its place in the docs too: the constants section listed the three names without their values, which is the one thing a reader wants from it. It now gives the numbers, says the settings model takes its defaults from the same place, and carries the upgrade paragraph with the exact keywords to pass to keep the old behaviour.

Signature checked rather than remembered: IdempotencyDomainService(*, default_ttl_minutes=60, min_ttl_seconds=60, max_ttl_seconds=2592000).

The squash merge of #22 dropped the breaking-change footer its commits carried,
so release-please read the release as a patch and the changelog would not have
mentioned the change in defaults. This restores the note and gives the constants
their values in the user guide, with the line to add to keep the old behaviour.

BREAKING CHANGE: DEFAULT_TTL_MINUTES is 60 (was 30) and MAX_TTL_SECONDS is
2592000 (was 86400), so IdempotencyDomainService() built without arguments now
keeps records for an hour and accepts a TTL of up to 30 days. Pass
default_ttl_minutes=30 and max_ttl_seconds=86400 to keep the old values.
@codecov

codecov Bot commented Sep 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@AlexeyShalaev
AlexeyShalaev merged commit bb90e84 into master Sep 6, 2026
7 checks passed
@AlexeyShalaev
AlexeyShalaev deleted the docs/upgrading-ttl-defaults branch September 6, 2026 18:53
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