-
-
Notifications
You must be signed in to change notification settings - Fork 61
feat(mdc): Remove default entity from base Dataset class #3142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
35df546 to
2687ad1
Compare
2687ad1 to
02a0f28
Compare
Codecov ReportBase: 92.78% // Head: 92.77% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #3142 +/- ##
==========================================
- Coverage 92.78% 92.77% -0.01%
==========================================
Files 677 678 +1
Lines 30968 31007 +39
==========================================
+ Hits 28733 28768 +35
- Misses 2235 2239 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
9c20561 to
91c4d0f
Compare
2bd8a9c to
e45d32c
Compare
e45d32c to
14dcb99
Compare
This PR is responsible for updating the Snuba eventstream and insert
test endpoints
* From: `POST /tests/{dataset}/eventstream` To: `POST
/tests/{entity}/eventstream`
* From: `POST /tests/{dataset}/insert` To: `POST
/tests/entities/{entity}/insert`
This change is required due to the removal of the `default_entity`
attribute in the Dataset class in Snuba. As a result, every request sent
to Snuba (e.g. query, eventstream, etc.) must specify both a dataset and
entity.
The changes to the server endpoint is specified here:
getsentry/snuba#3142
Now that all queries sent to Snuba specify an Entity, we want to remove the legacy
default_entityattribute in a Dataset.This PR is responsible for the following:
default_entityfrom base Dataset class and its get method.allsub-property.all_entitiesattribute to dataset base class and pass entity keys to child initializationget_default_entityoccurrences in tests and added support where neededdefault_entityand dataset parameter altogether. Plan to re-route to new endpoints are specified here: ref(MDC): Update Snuba eventstream and insert endpoints sentry#38877