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

Set initial created subscription plan status to ACTIVE_PAID #963

Merged
merged 4 commits into from
Jun 20, 2024

Conversation

boardend
Copy link
Contributor

When hosting a new QFieldCloud instance, a default subscription plan is created. This change ensures that the status of this plan is ACTIVE_PAID, so that created users can create/use projects on that instance as expected.

This change won't affect existing QFieldCloud instances in any way.

@duke-nyuki
Copy link
Collaborator

@suricactus
Copy link
Collaborator

The mypy error here is because QuerySet cannot take a typing arguments, feel free to fix it (I had to fix it for one of my branches I haven't pushed yet too). The other error in core... I don't know, let's retrigger the checks.

@suricactus suricactus force-pushed the QF-3925-default-subscription branch from 3ef52e0 to ae50051 Compare June 19, 2024 18:53
@boardend
Copy link
Contributor Author

@suricactus thanks for looking into this

Just did a test with a new postgres_data volume, executed the migrations and created an admin via the CLI. When then creating a new user via the admin, the user as a "Active Paid" billing subscription by default 👍

@suricactus suricactus merged commit db5ae13 into master Jun 20, 2024
6 of 8 checks passed
@suricactus suricactus deleted the QF-3925-default-subscription branch June 20, 2024 19:47
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

3 participants