-
Notifications
You must be signed in to change notification settings - Fork 12.4k
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
Google Cloud Monitor: Fix mem usage for dropdown #67683
Conversation
Previously the Metric name dropdown would attempt to load _all_ the available metric names into the Select which would eventually crash the browser if the dataset was large enough. We can fix this by using AsyncSelect and making another query once a Service is selected _and_ the user types a few characters.
Hello @asimpson!
Please, if the current pull request addresses a bug fix, label it with the |
1 similar comment
Hello @asimpson!
Please, if the current pull request addresses a bug fix, label it with the |
Backend code coverage report for PR #67683 |
Frontend code coverage report for PR #67683
|
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.
So I pulled this down to test locally and couldn't get any metric names to show up in the list :/ I don't see the API call in network requests to filter the data, only the initial metric descriptors request.
@aangelisc Oh, I think this is because I didn't set |
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.
Leggo 💯
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new branch
git switch --create backport-67683-to-v9.4.x origin/v9.4.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x b2e1b3ad91456fc70b407a52c552b718cfa7890c
# Push it to GitHub
git push --set-upstream origin backport-67683-to-v9.4.x
git switch main
# Remove the local backport branch
git branch -D backport-67683-to-v9.4.x Then, create a pull request where the |
* Google Cloud Monitor: Fix mem usage for dropdown Previously the Metric name dropdown would attempt to load _all_ the available metric names into the Select which would eventually crash the browser if the dataset was large enough. We can fix this by using AsyncSelect and making another query once a Service is selected _and_ the user types a few characters. * fix: update tests for AsyncSelect * fix lint * fix: add subset of metrics on initial load (cherry picked from commit b2e1b3a)
Google Cloud Monitor: Fix mem usage for dropdown (#67683) * Google Cloud Monitor: Fix mem usage for dropdown Previously the Metric name dropdown would attempt to load _all_ the available metric names into the Select which would eventually crash the browser if the dataset was large enough. We can fix this by using AsyncSelect and making another query once a Service is selected _and_ the user types a few characters. * fix: update tests for AsyncSelect * fix lint * fix: add subset of metrics on initial load (cherry picked from commit b2e1b3a) Co-authored-by: Adam Simpson <adam@adamsimpson.net>
Previously the Metric name dropdown would attempt to load _all_ the available metric names into the Select which would eventually crash the browser if the dataset was large enough. We can fix this by using AsyncSelect and making another query once a Service is selected _and_ the user types a few characters. * fix: update tests for AsyncSelect * fix lint * fix: add subset of metrics on initial load
Previously the Metric name dropdown would attempt to load _all_ the available metric names into the Select which would eventually crash the browser if the dataset was large enough. We can fix this by using AsyncSelect and making another query once a Service is selected _and_ the user types a few characters. * fix: update tests for AsyncSelect * fix lint * fix: add subset of metrics on initial load
Previously the Metric name dropdown would attempt to load all the available metric names into the
Select
which would eventually crash the browser if the dataset was large enough.We can fix this by using
AsyncSelect
and making another query once a Service is selected and the user types a few characters.Which issue(s) does this PR fix?:
#67682