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 #1413 ensure plans always have default pricelists attached (regression) #1414

Conversation

chrisjsimpson
Copy link
Contributor

Issue ref: #1413

Fix #1413 ensure plans always have default pricelists attached (regression*)

*Previously all plans were ensured to have default price_lists attached at app start up, causing significantly slow app start-up times (due to sites with 100s of plan revisions (since plans are immutable, each edit creates a new plan id). The app-startup logic to ensure all plans had price_lists was removed (causing the regression). Resolved by ensuring plans have at least default price lists on-access (a crude len(self.price_lists) > 0 check)

Screenshot before:

Screenshot after:

How to run test(s) for this PR see: Testing

TODO: app startup time test?

@chrisjsimpson chrisjsimpson merged commit 6b7b0a9 into master Sep 21, 2024
4 of 5 checks passed
Copy link

🚀 PR was released in v0.1.211 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Could not find price_list for currency: USD. There are 0 connected to this plan
1 participant