Skip to content

fix(billing): Exclude trial budgets in product select analytics #93446

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

Merged
merged 1 commit into from
Jun 12, 2025

Conversation

isabellaenriquez
Copy link
Member

When setting previously_enabled for a selectable product, we only checked that they had a reserved budget for that product above 0, but this didn't take into account reserved budgets from trial plans. This led to false positives when checking for Seer Disabled events, as these were orgs who were on trial plans who upgraded to a paid plan but didn't buy Seer.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jun 12, 2025
Copy link

codecov bot commented Jun 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #93446      +/-   ##
==========================================
- Coverage   88.00%   78.24%   -9.76%     
==========================================
  Files       10287    10287              
  Lines      593304   593304              
  Branches    23034    23034              
==========================================
- Hits       522126   464245   -57881     
- Misses      70746   128627   +57881     
  Partials      432      432              

@isabellaenriquez isabellaenriquez marked this pull request as ready for review June 12, 2025 17:17
@isabellaenriquez isabellaenriquez requested a review from a team as a code owner June 12, 2025 17:17
@isabellaenriquez isabellaenriquez merged commit b09039a into master Jun 12, 2025
43 checks passed
@isabellaenriquez isabellaenriquez deleted the isabella/no-trial-budgets branch June 12, 2025 20:59
billyvg pushed a commit that referenced this pull request Jun 18, 2025
When setting `previously_enabled` for a selectable product, we only
checked that they had a reserved budget for that product above 0, but
this didn't take into account reserved budgets from trial plans. This
led to false positives when checking for Seer Disabled events, as these
were orgs who were on trial plans who upgraded to a paid plan but didn't
buy Seer.
andrewshie-sentry pushed a commit that referenced this pull request Jun 19, 2025
When setting `previously_enabled` for a selectable product, we only
checked that they had a reserved budget for that product above 0, but
this didn't take into account reserved budgets from trial plans. This
led to false positives when checking for Seer Disabled events, as these
were orgs who were on trial plans who upgraded to a paid plan but didn't
buy Seer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants