Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin): add example RPC call for the endpoints missing it (#6615)
this closes getsentry/eap-planning#98 I added an example request to each of the following endpoints that were missing it. ## used to look like <img width="1036" alt="Screenshot 2024-12-04 at 3 37 22 PM" src="https://github.com/user-attachments/assets/441e3428-5e16-42a1-bede-fce430a9ab5f"> ## now it looks like <img width="791" alt="Screenshot 2024-12-04 at 3 37 39 PM" src="https://github.com/user-attachments/assets/e124a3a0-1cc9-4dab-b97f-e238e155ba0d"> I got the example request for each endpoint from one of its unit tests, I tried to pick a basic representative one. Here are all the endpoints I added example requests for, and a link to the test that I got the request from: * [CreateSubscriptionRequest](https://github.com/getsentry/snuba/blob/b03c40e91c7b10af6d9794b576055eb9a6027b22/tests/subscriptions/test_scheduler_consumer.py#L165) * [EndpointTraceItemAttributeNames](https://github.com/getsentry/snuba/blob/b03c40e91c7b10af6d9794b576055eb9a6027b22/tests/web/rpc/v1/test_endpoint_trace_item_attribute_names.py#L89) * [EndpointTimeSeries](https://github.com/getsentry/snuba/blob/b03c40e91c7b10af6d9794b576055eb9a6027b22/tests/web/rpc/v1/test_endpoint_time_series/test_endpoint_time_series.py#L167) * [SpanSamplesRequest](https://github.com/getsentry/snuba/blob/b03c40e91c7b10af6d9794b576055eb9a6027b22/tests/web/rpc/v1alpha/test_span_samples.py#L150) All the new example RPC calls successfully send except for CreateSubscriptionRequest. It has a 400 error due to no meta field: <img width="1014" alt="Screenshot 2024-12-04 at 3 19 48 PM" src="https://github.com/user-attachments/assets/4dc4e998-74d7-42c4-8bd6-9350831d6ede"> This is a bug that has been revealed by this PR but is unrelated to it so I plan to solve this as a follow up in a separate PR. #6617 The PR diff makes it look like the entire file changed but thats just bc I ran a formatter on the JSON. Actually the only real changes are the additions from line 87 to the end.
- Loading branch information