-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
ref(querybuilder): Change profiling profiles to use snuba params #75070
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
wmak
commented
Jul 26, 2024
- This updates the profiling profiles endpoint to use snuba params over the paramstype
- Needed to add quantize_date_params as a param to be compatible
- This updates the profiling profiles endpoint to use snuba params over the paramstype - Needed to add quantize_date_params as a param to be compatible
| assert response.status_code == 400, response.data | ||
| assert response.data == { | ||
| "detail": ErrorDetail( | ||
| "You cannot view events from multiple projects.", |
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.
Based on the name of this test, i think this is the correct error message?
| @property | ||
| def start_date(self) -> datetime: | ||
| # This and end_date are helper functions so callers don't have to check if either are defined for typing | ||
| if self.start is None: | ||
| raise InvalidSearchQuery("start is required") | ||
| return self.start |
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.
I'm not hugely in love with this, might revisit it later to see if i can make it cleaner
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #75070 +/- ##
==========================================
- Coverage 78.12% 78.12% -0.01%
==========================================
Files 6748 6748
Lines 301209 301221 +12
Branches 51833 51838 +5
==========================================
+ Hits 235328 235329 +1
- Misses 59554 59562 +8
- Partials 6327 6330 +3
|