Skip to content

feat(billing): make the default hosted trial 14 days instead of 30 - #678

Merged
artempartos merged 2 commits into
developfrom
artempartos/trial-14-days
Nov 9, 2026
Merged

artempartos merged 2 commits into
developfrom
artempartos/trial-14-days

Conversation

@artempartos

Copy link
Copy Markdown
Contributor

Why

We've been asked for a 14-day free trial by default instead of 30.

What changes

  • TRIAL_DAYS now defaults to 14 (config/settings.yml). Hosted deployments don't set the variable, so this default is what new hosted workspaces get.
  • A trial already under way keeps its length. Trials started after trial lengths were stored (1.9.0) already have trial_hours. Trials started before that have trial_hours = NULL and follow the live default, so the new default would cut them in half, and a company already past day 14 would be stopped at the next hourly Billing::Trial.enforce!. Data migration KeepThirtyDaysForTrialsWithoutLength sets those to 720 hours, the 30 days they were shown. It runs only on hosted (saas) and only for companies currently trialing. down is a no-op, because clearing the value would also clear a length an operator set afterwards.
  • Docs and copy: the public "Plans and limits" page and its search entry, the configuration reference (both copies), docs/product/self-serve-signup.md, and the comment in Billing::Trial. The signup form and How it works page read the number from the setting and needed no change.
  • Changelog entry under Unreleased → Changed.

Verification

Targeted backend tests ran locally against a private Postgres: the trial unit tests, the new migration test, the trial and billing prop tests, the admin trial tests, signup, How it works and the changelog test. No failures. The admin page tests could not render locally because the Vite test build was stale (entrypoints/admin.css missing from the manifest), which has nothing to do with this change. CI runs the full suite.

🤖 Generated with Claude Code

artempartos and others added 2 commits November 9, 2026 22:58
A trial that began before trials kept their length has no trial_hours and
follows the live default, so it would be cut to 14 days and, once past day
14, stopped at the next hourly check. A data migration pins those to the
30 days they were shown.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Artem Petrov <[email protected]>
@artempartos
artempartos merged commit c7f6ae2 into develop Nov 9, 2026
17 checks passed
aixle-com Bot pushed a commit that referenced this pull request Nov 10, 2026
Conflicts resolved:
- Files touched on staging only by the pre-squash branches of task #209 (PR #669)
  and task #211 (PRs #667/#668) take develop's version, which carries the
  reviewed, merged form of the same work (#670, #671, #672).
- test/integration/web/company/billing_test.rb: keeps the billing redesign's
  (#646) test body with develop's 14-day trial values (#678).
- CHANGELOG.md: develop's 1.11.0 entry for the 14-day trial; the billing
  redesign entry already present above is kept once.

Signed-off-by: Alex <[email protected]>
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