LITE-33042 Support monthly_trial billing period#246
Draft
pcaro wants to merge 2 commits into
Draft
Conversation
Add monthly_trial to the allowed BILLING_PERIOD values so products with items using this period can be cloned without errors. Commitments are restricted to '-' only (no long-term commitment for trial periods). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Pablo Caro seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Cover the _get_billing_period pass-through for monthly_trial to meet SonarCloud coverage threshold on new code. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
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.


Summary
monthly_trialto theBILLING_PERIODtuple inconstants.pymonthly_trial: ('-',)toALLOWED_COMMITMENTS(trial periods allow no long-term commitment)_get_billing_period()to passmonthly_trialthrough as-is (prevents crash on space-split for multi-year conversion)Test plan
poetry run pytest tests/plugins/product/sync/test_items.py -x -q— all passtest_validate_wrong_period_reservationexpected error message to includemonthly_trialtest_validate_monthly_trial_period_wrong_commitmentcovers commitment restrictionmonthly_trialitems and confirm 0 errorsCloses LITE-33042
🤖 Generated with Claude Code