Skip to content

feat(discover/issue search) Move all aggregates and aliases to functions#17392

Merged
evanh merged 5 commits into
masterfrom
evanh/feat/add-full-function-support
Mar 3, 2020
Merged

feat(discover/issue search) Move all aggregates and aliases to functions#17392
evanh merged 5 commits into
masterfrom
evanh/feat/add-full-function-support

Conversation

@evanh

@evanh evanh commented Feb 28, 2020

Copy link
Copy Markdown
Member

Consolidate all the aggregates and field aliases into functions in event_search,
and add a shim to discover to translate any old queries into the new syntax.

Consolidate all the aggregates and field aliases into functions in event_search,
and add a shim to discover to translate any old queries into the new syntax.
@evanh evanh requested a review from a team February 28, 2020 22:08
Comment thread src/sentry/api/event_search.py
Comment thread src/sentry/api/event_search.py
Comment thread src/sentry/api/event_search.py
Comment thread src/sentry/snuba/discover.py
["argMax", ["id", "timestamp"], "latest_event"],
["max", "timestamp", "last_seen"],
["apdex(duration, 300)", None, "apdex"],
["apdex(duration, 300)", None, "apdex_transaction_duration_300"],

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to update the front-end alias generation to reflect this change?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, these two alias functions will need to be kept in sync. Right now if I map old functions to new functions, I also map the results back to the original alias passed in by the frontend.

@evanh evanh merged commit 74af850 into master Mar 3, 2020
@evanh evanh deleted the evanh/feat/add-full-function-support branch March 3, 2020 15:43
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants