Skip to content

Conversation

@wmak
Copy link
Member

@wmak 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
@wmak wmak requested a review from a team as a code owner July 26, 2024 15:27
@wmak wmak requested a review from a team July 26, 2024 15:27
@wmak wmak requested a review from a team as a code owner July 26, 2024 15:27
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Jul 26, 2024
assert response.status_code == 400, response.data
assert response.data == {
"detail": ErrorDetail(
"You cannot view events from multiple projects.",
Copy link
Member Author

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?

Comment on lines +109 to +114
@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
Copy link
Member Author

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
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

Attention: Patch coverage is 70.83333% with 7 lines in your changes missing coverage. Please review.

Project coverage is 78.12%. Comparing base (0a4f773) to head (5c35a8f).
Report is 30 commits behind head on master.

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     
Files Coverage Δ
src/sentry/api/bases/organization_events.py 95.39% <100.00%> (-0.30%) ⬇️
src/sentry/profiles/flamegraph.py 82.80% <100.00%> (ø)
src/sentry/profiles/profile_chunks.py 100.00% <100.00%> (ø)
...y/api/endpoints/organization_profiling_profiles.py 85.10% <66.66%> (+2.12%) ⬆️
src/sentry/search/events/types.py 91.02% <63.63%> (-2.08%) ⬇️

... and 5 files with indirect coverage changes

@wmak wmak enabled auto-merge (squash) July 29, 2024 15:26
@wmak wmak merged commit 8cbfd1b into master Jul 29, 2024
@wmak wmak deleted the wmak/ref/profiling-profiles-snuba-params branch July 29, 2024 15:58
@github-actions github-actions bot locked and limited conversation to collaborators Aug 14, 2024
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