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

chore: remove billingLogic from sceneLogic #27622

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

Conversation

joshsny
Copy link
Contributor

@joshsny joshsny commented Jan 16, 2025

Problem

We are hitting billing for every scene that loads in the app. This PR removes it from sceneLogic since it's not necessary there.

We use the includeIntro property to conditionally render the step in onboarding, but we already check for billing there.

Changes

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Checked that it did not render the step when billing was not defined.

@joshsny joshsny requested review from raquelmsmith and a team January 16, 2025 22:35
Copy link
Contributor

@zlwaterfield zlwaterfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally - looks to be working great! Billing is loading as expected for authenticated users, not loading for unauthenticated users and loading when logging in and signing up as expected.

Copy link
Contributor

github-actions bot commented Jan 16, 2025

Size Change: 0 B

Total Size: 1.13 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.13 MB

compressed-size-action

@joshsny joshsny enabled auto-merge (squash) January 16, 2025 22:56
@joshsny joshsny disabled auto-merge January 16, 2025 22:57
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure there's nothing like features etc that we need on all screens that comes from billing? eg feature info

Copy link
Member

@raquelmsmith raquelmsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

address comment before merging please!

Copy link
Member

@raquelmsmith raquelmsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

address comment before merging please!

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 2)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

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.

4 participants