Skip to content

Conversation

@enochtangg
Copy link
Contributor

@enochtangg enochtangg commented Sep 15, 2022

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

@enochtangg enochtangg requested a review from a team as a code owner September 15, 2022 15:35
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Sep 15, 2022
@volokluev
Copy link
Member

This is going to break all the sentry tests

@enochtangg
Copy link
Contributor Author

enochtangg commented Sep 15, 2022

This is going to break all the sentry tests

This is why this PR should not be merged before: getsentry/snuba#3142. That change supports both the old and new endpoints for eventstream and insert tests.

Plan:

  1. Merge feat(mdc): Remove default entity from base Dataset class snuba#3142
  2. Merge this PR to point test to new endpoint
  3. Remove old endpoint in Snuba

@enochtangg enochtangg merged commit 0a640e9 into master Sep 19, 2022
@enochtangg enochtangg deleted the update_evenstream_endpoint branch September 19, 2022 17:15
@github-actions github-actions bot locked and limited conversation to collaborators Oct 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants