-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
feat(discover-snql): Use the snql query builder for events-meta #29096
Conversation
- This adds a feature flag so we can try the new query builder for the events-meta endpoint - This also adds a function_alias_map so we can correctly convert the meta results on the discover endpoints
@@ -2261,6 +2262,7 @@ def __init__( | |||
), | |||
SnQLFunction( | |||
"count", | |||
optional_args=[NullColumn("column")], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
support older syntax of count(id)
that's still floating about
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we also add a tag to the issue alert in Sentry to make it obvious from the slack notification that it's an snql issue?
class OrganizationEventsMetaEndpointWithSnql(OrganizationEventsMetaEndpoint): | ||
def setUp(self): | ||
super().setUp() | ||
self.features["organizations:discover-use-snql"] = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh dang, does this actually work? 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hell yeah, gonna use this pattern for the other test cases as we convert
events-meta endpoint
meta results on the discover endpoints