Skip to content

feat(billing): added upsert response+request messages(REVENG-78)#257

Merged
krithikravi merged 4 commits into
mainfrom
upsert-account-proto
May 14, 2026
Merged

feat(billing): added upsert response+request messages(REVENG-78)#257
krithikravi merged 4 commits into
mainfrom
upsert-account-proto

Conversation

@krithikravi
Copy link
Copy Markdown
Member

https://linear.app/getsentry/issue/REVENG-78/implement-upsert-method-for-accountservice

This PR adds request and response messages for an upsert method for the account service. This method will be the main way to create/update records in the accounts_platformstatus table.

@krithikravi krithikravi requested a review from a team as a code owner May 13, 2026 22:26
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 13, 2026

REVENG-78

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 13, 2026

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

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMay 14, 2026, 8:33 PM

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 41ca379. Configure here.

Status status = 2;
optional string suspension_reason = 3;
OnDemandStatus ondemand_status = 4;
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Request duplicates entity fields instead of embedding message

Medium Severity

UpsertAccountStatusRequest duplicates every field from AccountStatus (same types, tags, and optionality) instead of embedding AccountStatus as a nested message — the pattern already used by GetAccountStatusResponse. If AccountStatus gains a new field in the future, it would need to be manually added to this request message as well, risking silent data loss on upserts when the two definitions fall out of sync.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 41ca379. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

that's okay, we don't want the caller to need to know the shape of the account status proto

@krithikravi krithikravi merged commit e04fd26 into main May 14, 2026
14 checks passed
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.

3 participants