Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #1355 #1932

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix for #1355 #1932

wants to merge 3 commits into from

Conversation

meden
Copy link
Contributor

@meden meden commented Oct 20, 2023

This PR should fix the #1355, by allowing the future creation of add-ons only compatible with a pending plan.

The implemented solution opens a new bug for a corner case: if an add-on gets created for a pending base plan, and the pending operation gets canceled, the new add-on does not get canceled, ending with having an add-on incompatible with the active base plan.

I think this could be solved by applying on undo changes checks similar to the ones used when changing the base subscription (leading to the cancellation of the incompatible add-ons, see DefaultSubscriptionBaseApiService::doChangePlan). The last commit of this PR adds a (disabled) test to check this behavior.

This new method allows to evaluate the actual plan in a future date, by
looking at future transitions.
This allows the creation of subscriptions to add-on plans only
compatible with a base plan pending activation.
This test checks if pending  incompatible add-ons are canceled when
undoing a change plan. See GH#1135.

The test is currently disabled, as it is failing because the needed
logic has not been implemented yet.
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.

None yet

1 participant