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

[Backport 2.x] [discover] fix too many queries sent #8361

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 0882435 from #8347.

Fixes the issue where too many queries were being fired. A number of things were being called because the dependency array was triggering updates and re-calls. Forcing a re-render of elements that had the possibility of updating the query manager.

Includes some tests.

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>

---------

Signed-off-by: Kawika Avilla <kavilla414@gmail.com>
Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
(cherry picked from commit 0882435)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

❌ Invalid Changelog Heading

The '## Changelog' heading in your PR description is either missing or malformed. Please make sure that your PR description includes a '## Changelog' heading with proper spelling, capitalization, spacing, and Markdown syntax.

Copy link

codecov bot commented Sep 26, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 61.00%. Comparing base (c00862a) to head (f6d27e3).

Files with missing lines Patch % Lines
...ta/public/ui/dataset_selector/dataset_selector.tsx 53.33% 3 Missing and 4 partials ⚠️
.../plugins/data/public/ui/dataset_selector/index.tsx 87.50% 0 Missing and 1 partial ⚠️
...tion/view_components/utils/update_search_source.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #8361      +/-   ##
==========================================
- Coverage   61.06%   61.00%   -0.07%     
==========================================
  Files        3742     3747       +5     
  Lines       88843    89002     +159     
  Branches    13847    13886      +39     
==========================================
+ Hits        54253    54294      +41     
- Misses      31239    31349     +110     
- Partials     3351     3359       +8     
Flag Coverage Δ
Linux_1 28.86% <0.00%> (+<0.01%) ⬆️
Linux_2 56.46% <ø> (ø)
Linux_3 37.78% <62.50%> (-0.04%) ⬇️
Linux_4 30.06% <ø> (ø)
Windows_1 28.87% <0.00%> (+<0.01%) ⬆️
Windows_2 56.41% <ø> (ø)
Windows_3 37.78% <62.50%> (-0.04%) ⬇️
Windows_4 30.06% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocut Skip the changelog verification check on backports discover for discover reinvent discover-next distinguished-contributor failed changeset v2.18.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant