Skip to content

Conversation

@fpacifici
Copy link
Contributor

snuba.events-queries.enabled option is supposed to be already active in production. This commit activates it by default and fixes the tests that did not support it.
This step is needed in order to remove our dependency on PG events which is useful for issueless
events.

@fpacifici fpacifici requested a review from a team June 14, 2019 23:48
Copy link
Contributor

@mattrobenolt mattrobenolt left a comment

Choose a reason for hiding this comment

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

Why not just remove the switch instead? If it’s defaulted to true, there’s 0 reason for someone to turn it off.

Copy link
Contributor

@mitsuhiko mitsuhiko left a comment

Choose a reason for hiding this comment

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

lgtm but i would indeed remove all the now dead code that hangs on this switch.

@fpacifici
Copy link
Contributor Author

fpacifici commented Jun 16, 2019

I cannot remove the switch yet because there is a handful of tests that force it to False. I will address them in a separate PR.

@fpacifici fpacifici force-pushed the feat/enable_snuba_query branch 2 times, most recently from 24acdb4 to 5d6fb4d Compare June 18, 2019 17:07
min_ago = (timezone.now() - timedelta(minutes=1)).isoformat()[:19]
self.event = self.store_event(
data={
# 'event_id': 'a' * 32,
Copy link
Member

Choose a reason for hiding this comment

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

You could remove this 🚲

# 'event_id': 'a' * 32,
'fingerprint': ['group1'],
'timestamp': min_ago,
# 'tags': {'sentry:release': release.version},
Copy link
Member

Choose a reason for hiding this comment

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

More commented code that could be removed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

weird, I thought I removed all of them. Will fix

snuba.events-queries.enabled option is already active in production. This commit activates it
by default and fixes the tests that did not support it.
This step is needed in order to remove our dependency on PG events which is useful for issueless
events.
@fpacifici fpacifici force-pushed the feat/enable_snuba_query branch from 0643a49 to cbabee5 Compare June 19, 2019 18:29
@fpacifici fpacifici merged commit c2c9761 into master Jun 19, 2019
fpacifici added a commit that referenced this pull request Jun 20, 2019
#13700 changed the way test events are generated. The result is that, in acceptance tests, the time the event is created is not normalized to the day thus the screenshot of the details page is different at every execution breaking the snapshot tests on percy.
This normalizes the creation timestamp thus should make the snapshot consistent.
@evanpurkhiser evanpurkhiser deleted the feat/enable_snuba_query branch July 24, 2019 00:52
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants