Repository navigation
feat(billing): make the default hosted trial 14 days instead of 30 - #678
Merged
Merged
Conversation
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]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
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]>
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.
Why
We've been asked for a 14-day free trial by default instead of 30.
What changes
TRIAL_DAYSnow defaults to 14 (config/settings.yml). Hosted deployments don't set the variable, so this default is what new hosted workspaces get.trial_hours. Trials started before that havetrial_hours = NULLand 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 hourlyBilling::Trial.enforce!. Data migrationKeepThirtyDaysForTrialsWithoutLengthsets those to 720 hours, the 30 days they were shown. It runs only on hosted (saas) and only for companies currentlytrialing.downis a no-op, because clearing the value would also clear a length an operator set afterwards.docs/product/self-serve-signup.md, and the comment inBilling::Trial. The signup form and How it works page read the number from the setting and needed no change.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.cssmissing from the manifest), which has nothing to do with this change. CI runs the full suite.🤖 Generated with Claude Code