Skip to content

feat(billing): Add ResetProductTrial engagement protos - #519

Merged
dashed merged 2 commits into
mainfrom
aleal/billing-reset-product-trial
Nov 12, 2026
Merged

dashed merged 2 commits into
mainfrom
aleal/billing-reset-product-trial

Conversation

@dashed

@dashed dashed commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Adds ResetProductTrialRequest and ResetProductTrialResponse, for an EngagementService method that lets an organization start a product trial again after it has used it.

Why

On legacy billing, staff press Allow Trial on the admin page to reset a used product trial. They have done it about 600 times. The billing platform has no way to do this, so the same request returns a 500 for a migrated organization (REVENG-724). ResetSubscriptionTrial (#481) does this for subscription trials only.

What

New file billing/v1/services/engagement/v1/endpoint_reset_product_trial.proto. It is endpoint_reset_subscription_trial.proto with the line item added.

Message Field Meaning
ResetProductTrialRequest organization_id The organization
line_item_uid The product whose ended trials are cleared
ResetProductTrialResponse reset Whether any ended product trial was cleared

Compatibility

New messages only. Nothing that exists changes.

Consumer

getsentry/getsentry#23127 uses it for the admin Allow Trial action. It needs a release that includes this change.

Refs REVENG-724

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedNov 12, 2026, 9:32 PM

@linear-code

linear-code Bot commented Nov 10, 2026

Copy link
Copy Markdown

REVENG-724

@dashed dashed self-assigned this Nov 12, 2026
@dashed
dashed marked this pull request as ready for review November 12, 2026 20:11
@dashed
dashed requested a review from a team as a code owner November 12, 2026 20:11
dashed and others added 2 commits November 12, 2026 16:29
Request and response messages for an EngagementService method that clears
an organization's ended product trials for one line item, so staff can
let it start that product trial again, as Allow Trial does on legacy.

Refs REVENG-724
@dashed
dashed force-pushed the aleal/billing-reset-product-trial branch from 41d8641 to 5bb1df2 Compare November 12, 2026 21:32
@dashed
dashed merged commit 33a0de5 into main Nov 12, 2026
16 checks passed
@dashed
dashed deleted the aleal/billing-reset-product-trial branch November 12, 2026 21:36
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.

2 participants