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

🔧 chore(slack): don't prefetch assignee options #88641

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

iamrajjoshi
Copy link
Member

this pr will fix a subset of the issues in https://sentry.sentry.io/issues/5392362510/?project=1

get_options_groups made an expensive RPC call which is prone to timeouts

in reality, when we are building the assignee dropdown, we shouldn't be adding option groups since we actually don't need it.

the assignee dropdown is a dynamic field, for which slack sends us webhooks when a user types something. we then respond back with possible options.

i tested that the behavior locally and nothing seems to have broken:

Screen.Recording.2025-04-02.at.2.45.11.PM.mov

@iamrajjoshi iamrajjoshi self-assigned this Apr 2, 2025
@iamrajjoshi iamrajjoshi requested review from a team as code owners April 2, 2025 21:56
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 2, 2025
@iamrajjoshi iamrajjoshi merged commit 7cfd632 into master Apr 3, 2025
49 checks passed
@iamrajjoshi iamrajjoshi deleted the raj/do-not-prefetch-options branch April 3, 2025 14:54
adrian-codecov pushed a commit that referenced this pull request Apr 3, 2025
this pr will fix a subset of the issues in
https://sentry.sentry.io/issues/5392362510/?project=1

`get_options_groups` made an expensive RPC call which is prone to
timeouts

in reality, when we are building the assignee dropdown, we shouldn't be
adding option groups since we actually don't need it.

the assignee dropdown is a dynamic field, for which slack sends us
webhooks when a user types something. we then respond back with possible
options.

i tested that the behavior locally and nothing seems to have broken:


https://github.com/user-attachments/assets/de6b314d-6b00-4b1e-90cb-aeb16cde2b62
andrewshie-sentry pushed a commit that referenced this pull request Apr 8, 2025
this pr will fix a subset of the issues in
https://sentry.sentry.io/issues/5392362510/?project=1

`get_options_groups` made an expensive RPC call which is prone to
timeouts

in reality, when we are building the assignee dropdown, we shouldn't be
adding option groups since we actually don't need it.

the assignee dropdown is a dynamic field, for which slack sends us
webhooks when a user types something. we then respond back with possible
options.

i tested that the behavior locally and nothing seems to have broken:


https://github.com/user-attachments/assets/de6b314d-6b00-4b1e-90cb-aeb16cde2b62
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.

3 participants