Skip to content

chore: Remove unused protobufs from prototyping#168

Merged
markstory merged 2 commits into
mainfrom
chore-cleanup-deprecated-protos
Jan 27, 2026
Merged

chore: Remove unused protobufs from prototyping#168
markstory merged 2 commits into
mainfrom
chore-cleanup-deprecated-protos

Conversation

@markstory

Copy link
Copy Markdown
Member

Remove the unused protobufs that were added back in the early days of this repository. I had to adjust the buf configuration to make this possible, and will revert those changes once this is merged. I've left deprecated protos that did see use in the past as our applications usually use open ended version constraints like sentry_protos>=0.11 and I didn't want to break those old releases.

Remove the unused protobufs that were added back in the early days of
this repository. I had to adjust the `buf` configuration to make this
possible, and will revert those changes once this is merged.
@github-actions

github-actions Bot commented Jan 26, 2026

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 26, 2026, 9:44 PM

@markstory markstory requested review from a team January 26, 2026 21:43

@volokluev volokluev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

🫡 🫡 🫡

@markstory markstory merged commit d5ab3bd into main Jan 27, 2026
9 checks passed
markstory pushed a commit that referenced this pull request Jan 27, 2026
In #168 I removed unused protos and in order to do that I had to
temporarily lift deletion rules. This restores those rules.
markstory added a commit that referenced this pull request Jan 27, 2026
In #168 I removed unused protos and in order to do that I had to
temporarily lift deletion rules. This restores those rules.

Co-authored-by: getsentry-bot <bot@getsentry.com>
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