-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
feat(CapMan): Tagstore Org IDs passed to Snuba #45454
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
wedamija
left a comment
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.
lgtm, although looks like you need to add tenant ids to sentry.snuba.metrics.get_tag_values
|
|
||
| project_id = issue_list[0].project_id | ||
| item_ids = [g.id for g in issue_list] | ||
| tenant_ids = {"organization_id": issue_list[0].project.organization_id} |
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.
Just noting that we preload group projects here
| prefetch_related_objects(item_list, "project__organization") |
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 new to Django, are you saying I'm causing an extra query by doing .project.organization_id? How can I avoid this if so?
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.
No, just noting for anyone else reading that it won't cause any extra load
Lmk if I'm missing any other query somewhere in this stack 😅 |
This is what's causing the test failure though - something is attempting to pass tenant_ids to |
organization_idtenant_id in the requesttenant_idsto Snuba #44788 for more context