Skip to content

feat: hardcode legacy_user_permissions has_trialed to be true#1709

Merged
whutchinson98 merged 1 commit intomainfrom
hutch/fix-legacy-user-permissions
Feb 27, 2026
Merged

feat: hardcode legacy_user_permissions has_trialed to be true#1709
whutchinson98 merged 1 commit intomainfrom
hutch/fix-legacy-user-permissions

Conversation

@whutchinson98
Copy link
Copy Markdown
Member

@whutchinson98 whutchinson98 commented Feb 27, 2026

We used to query whether the user has trialed or not via stripe every call. This is no longer needed though as we don't actually support trialing anymore when you go to checkout.

So the slowdown due to stripe + actually using the has_trialed boolean gives us a slow api call and misleading text on the frontend.

If we ever plan to setup trials again, we should store this information on the macro_user or in some join table as that will be a much faster lookup than stripe api.

In dev, when having to check stripe my call is ~200ms. When I ignore stripe it's ~40ms.

Misleading "early member for free text":

image

Actual stripe checkout we get sent to that is not for a free trial:

image

@whutchinson98 whutchinson98 requested a review from a team as a code owner February 27, 2026 13:58
@whutchinson98 whutchinson98 requested a review from synoet February 27, 2026 14:00
@whutchinson98 whutchinson98 merged commit 9b4bbc1 into main Feb 27, 2026
39 checks passed
@whutchinson98 whutchinson98 deleted the hutch/fix-legacy-user-permissions branch February 27, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant