Skip to content
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(snuba/replay): bump snuba-sdk ver. and disable sampling in replay tag key queries #78534

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Oct 2, 2024

This lets us query OrganizationTagsEndpoint with dataset=replays.

Ref #78531

-> depends on getsentry/snuba#6378.

@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 2, 2024
@aliu39 aliu39 changed the title chore(snuba/replay): update snuba-sdk to 3.0.40 feat(snuba/replay): bump snuba-sdk ver. and disable sampling in replay tag key queries Oct 3, 2024
@aliu39 aliu39 marked this pull request as ready for review October 3, 2024 18:46
@aliu39 aliu39 requested review from a team as code owners October 3, 2024 18:46
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #78534       +/-   ##
===========================================
+ Coverage   57.39%   78.12%   +20.73%     
===========================================
  Files        7070     7087       +17     
  Lines      311729   312575      +846     
  Branches    50937    51060      +123     
===========================================
+ Hits       178904   244206    +65302     
+ Misses     128086    62003    -66083     
- Partials     4739     6366     +1627     

data.sort(key=lambda val: val["name"])
assert data == [
{"key": "drink", "name": "Drink", "totalValues": 1},
{"key": "fruit", "name": "Fruit", "totalValues": 4},
Copy link
Member

Choose a reason for hiding this comment

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

Is this number of total values, or number of unique values?

Copy link
Member Author

Choose a reason for hiding this comment

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

total times a key appears, regardless of value! see test_simple

@aliu39 aliu39 merged commit a5f498f into master Oct 3, 2024
53 of 54 checks passed
@aliu39 aliu39 deleted the aliu/bump-snuba-sdk-3-0-40 branch October 3, 2024 20:32
aliu39 added a commit that referenced this pull request Oct 3, 2024
Depends on #78534
Closes #78531 🎉

This query is used for the "Tags" section in replay search bar's
suggestions/typeahead. With this, we'll only display tags placed on
replays for that org (not on issues, traces, etc).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Backend Automatically applied to PRs that change backend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants