Repository navigation
Conversation
…age snapshot service The endpoint takes contract ids and returns the ids that have a usage snapshot. It reads no snapshot, so a caller can check many contracts in one call. It has the same shape as GetOrganizationsAwaitingPayment. getsentry needs it to find, for a page of receipts, which closed contracts have a usage snapshot, with protobuf input and output. The Rust bindings and the Cargo.lock version line come from `make build-rust`.
|
The latest Buf updates on your PR. Results from workflow ci / buf-checks (pull_request).
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bottom line: This PR adds
GetContractIdsWithUsageSnapshotto the contract usage snapshot service (billing.v1.services.contract_usage_snapshot.v1). It takes contract ids and returns the ids that have a usage snapshot. It adds only new messages, so it breaks no client.getsentry/billing/platform/AGENTS.md, rules 2 and 3) require protobuf input and output and@service_method.contract.v1.GetOrganizationsAwaitingPayment: a list of ids goes in, and the subset comes out, in no particular order. The method reads no snapshot. It does not filter by organization, so the caller passes only its own contract ids.Checks:
buf lint,buf formatandbuf breakingagainst main;make build-rust(the bindings and theCargo.lockversion line are in this PR);cargo checkandcargo clippy; 64 Python tests.