fix(plans): Enable downgrade to Micro including Email Hosting#1746
Merged
castaway merged 2 commits intorunbox:masterfrom Jan 14, 2026
Merged
Conversation
c32969b to
37f2b6c
Compare
Contributor
Author
|
Notes for testing/thinking: This uses the users current virtual domain usage (number of domains actually used) to indicate+add some addons to the shopping cart if selecting a product with fewer included domains. It does not take into account if the user already has any email hosting addons - should it? what happens then? |
Contributor
Author
37f2b6c to
3761625
Compare
Contributor
Author
3761625 to
af542b0
Compare
af542b0 to
ad665a7
Compare
Contributor
Author
antoniskalou
reviewed
Jan 6, 2026
| @@ -327,6 +327,9 @@ END:VCALENDAR | |||
| case '/rest/v1/account_product/available': | |||
Contributor
There was a problem hiding this comment.
are we keeping this if its not used anymore?
Contributor
Author
There was a problem hiding this comment.
Hmm, I thought it was still used somewhere, else I would have just changed it...
antoniskalou
reviewed
Jan 6, 2026
antoniskalou
approved these changes
Jan 14, 2026
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.





Example is the "test" user on dev - they could downgrade to the micro plan, if they bought 2x email hosting. (However its still greyed out because they are using more disk quota.) Clicking the button (when enabled) adds Micro and 2x email hosting to the cart, "remove" removes both again.
Code to integrate the usage data into the product objects has been moved to the API (upgrades endpoint)
Fix for https://github.com/runbox/private-issues/issues/222