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] [Data Explorer] Allow render from View directly, not from Data Explorer #6959

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport b792242 from #6167.

…er (#6167)

* [Discover] Remove double render

This PR avoids re-rendering the entire AppContainer when data services update.
The re-render is caused by history object which is in AppMountParameters. This
history object is part of the application's routing context and can change frequently
as the url is updated by query, filter or time range. Each change in the history object
could potentially trigger a re-render of the AppContainer and its child components.

With this PR, the AppContainer will not be re-loaded. Instead each component, like Canvas
and Panel, will be updated.

Signed-off-by: Anan Zhuang <ananzh@amazon.com>

* fix PR comment

Signed-off-by: Anan Zhuang <ananzh@amazon.com>

---------

Signed-off-by: Anan Zhuang <ananzh@amazon.com>
(cherry picked from commit b792242)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Jun 6, 2024

❌ 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 Jun 6, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 4 lines in your changes missing coverage. Please review.

Project coverage is 67.50%. Comparing base (c0d0b7e) to head (0d39353).

Files Patch % Lines
.../data_explorer/public/components/app_container.tsx 66.66% 3 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##              2.x    #6959   +/-   ##
=======================================
  Coverage   67.49%   67.50%           
=======================================
  Files        3444     3445    +1     
  Lines       67939    67949   +10     
  Branches    11043    11046    +3     
=======================================
+ Hits        45858    45866    +8     
- Misses      19416    19418    +2     
  Partials     2665     2665           
Flag Coverage Δ
Linux_1 33.08% <ø> (ø)
Linux_2 55.20% <ø> (ø)
Linux_3 45.25% <80.00%> (+0.01%) ⬆️
Linux_4 34.96% <ø> (ø)
Windows_1 33.10% <ø> (ø)
Windows_2 55.15% <ø> (ø)
Windows_3 45.26% <80.00%> (+<0.01%) ⬆️
Windows_4 34.96% <ø> (ø)

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.

@ananzh ananzh merged commit 4b9dd67 into 2.x Jun 7, 2024
69 of 71 checks passed
@github-actions github-actions bot deleted the backport/backport-6167-to-2.x branch June 7, 2024 00:52
@zhyuanqi zhyuanqi added the enhancement New feature or request label Jun 11, 2024
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 data explorer Issues related to the Data Explorer project discover for discover reinvent distinguished-contributor enhancement New feature or request failed changeset v2.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants