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

add debounce for GSelect and RemoteSelect #2466

Merged
merged 4 commits into from
Jul 11, 2023

Conversation

maskin25
Copy link
Contributor

@maskin25 maskin25 commented Jul 7, 2023

What this PR does

Fix performance Issue in GSelect component when searching

Which issue(s) this PR fixes

#1628

Checklist

  • Unit, integration, and e2e (if applicable) tests updated
  • Documentation added (or pr:no public docs PR label added if not required)
  • CHANGELOG.md updated (or pr:no changelog PR label added if not required)

@maskin25 maskin25 requested a review from a team July 7, 2023 13:04
@joeyorlando joeyorlando added the pr:no public docs Added to a PR that does not require public documentation updates label Jul 7, 2023
e2e tests + bump e2e test workers to 3
Copy link
Contributor

@joeyorlando joeyorlando left a comment

Choose a reason for hiding this comment

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

niceee 🤘

Comment on lines -130 to +127
defaultOptions={options}
defaultOptions
Copy link
Contributor

Choose a reason for hiding this comment

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

what is this change for?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

from specs

defaultOptions | When specified as boolean the loadOptions will execute when component is mounted

it exactly what we need

Copy link
Contributor

Choose a reason for hiding this comment

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

gotcha, thanks for clarifying 👍

@joeyorlando joeyorlando enabled auto-merge July 11, 2023 13:46
@joeyorlando joeyorlando added this pull request to the merge queue Jul 11, 2023
Merged via the queue into dev with commit b951b6b Jul 11, 2023
@joeyorlando joeyorlando deleted the 1628/maxim-add-debounce-for-gselect branch July 11, 2023 13:55
brojd pushed a commit that referenced this pull request Sep 18, 2024
# What this PR does

Fix performance Issue in GSelect component when searching

## Which issue(s) this PR fixes

#1628

## Checklist

- [ ] Unit, integration, and e2e (if applicable) tests updated
- [ ] Documentation added (or `pr:no public docs` PR label added if not
required)
- [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)

---------

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants