Skip to content

chore: Revert buf exceptions#169

Merged
markstory merged 1 commit into
mainfrom
revert-buf
Jan 27, 2026
Merged

chore: Revert buf exceptions#169
markstory merged 1 commit into
mainfrom
revert-buf

Conversation

@markstory

Copy link
Copy Markdown
Member

In #168 I removed unused protos and in order to do that I had to temporarily lift deletion rules. This restores those rules.

In #168 I removed unused protos and in order to do that I had to
temporarily lift deletion rules. This restores those rules.
@markstory markstory requested review from a team January 27, 2026 15:09
@github-actions

Copy link
Copy Markdown

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped✅ passed✅ passedJan 27, 2026, 3:09 PM

@markstory markstory merged commit 28bfb56 into main Jan 27, 2026
9 checks passed
armcknight pushed a commit that referenced this pull request Jun 12, 2026
…stead of removing

The previous attempt (commit 67ce9cf) removed fields 7 (``refunded``) and
8 (``amount_refunded``) and replaced them with ``reserved 7, 8;`` so the
field numbers couldn't be re-used. That tripped buf's ``FIELD_NO_DELETE``
rule, which sentry-protos enables deliberately: PR #168 lifted it once
to clean up unused prototype protos, and PR #169 immediately restored
it as a permanent guardrail.

Restoring the fields with ``[deprecated = true]`` so:

- buf is happy (no field deletion).
- Consumers get a deprecation marker steering them toward
  ``refunds[*].amount_cents`` as the source of truth.
- No drift risk in practice: the getsentry-side producer
  (``_charge_to_proto``) is already not populating these fields
  (getsentry#20611 commit ``96fd005``), and a search confirms no
  getsentry code reads ``PlatformCharge.refunded`` /
  ``PlatformCharge.amount_refunded`` -- the proto is internal to the
  billing platform service.

This matches the spirit of Noah's review feedback (don't carry a cache
that can drift from the rows) while respecting the repo's field-
deletion policy.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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