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

[Bug] performance improvement #1176

Conversation

ramneet-persistent
Copy link
Contributor

Description

Multiple re-renders in case of update chart fixed

Issues Resolved

Bug #1163

Please note

Fix is only tested for event analytics for now. This pr may require fixes from PR #1147. Once #1147 is merged and these changes are approved will update this PR

Signed-off-by: Ramneet Chopra <ramneet_chopra@persistent.com>
@ramneet-persistent ramneet-persistent requested a review from a team as a code owner October 21, 2022 17:23
Signed-off-by: Ramneet Chopra <ramneet_chopra@persistent.com>
@codecov-commenter
Copy link

codecov-commenter commented Oct 21, 2022

Codecov Report

Merging #1176 (27f9763) into main (e486d06) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #1176      +/-   ##
============================================
- Coverage     53.70%   53.65%   -0.05%     
  Complexity      291      291              
============================================
  Files           279      279              
  Lines          9490     9469      -21     
  Branches       2244     2231      -13     
============================================
- Hits           5097     5081      -16     
+ Misses         4223     4218       -5     
  Partials        170      170              
Flag Coverage Δ
dashboards-observability 47.77% <ø> (-0.09%) ⬇️
opensearch-observability 71.87% <ø> (ø)

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

Impacted Files Coverage Δ
...lorer/visualizations/config_panel/config_panel.tsx 64.40% <0.00%> (-3.13%) ⬇️
...ublic/components/visualizations/charts/bar/bar.tsx 47.82% <0.00%> (-0.60%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Collaborator

@mengweieric mengweieric left a comment

Choose a reason for hiding this comment

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

you may remove loggings/comments next time before committing or merge these in one commit that only contains logging/comments removed version so it could help to remove noice in PR review

console.log('IN FETCH DATA TEST@@@@ ===EXPLORER ======== updatedQuery', updatedQuery);
const curQuery = updatedQuery.query;
console.log('curQuery====', curQuery, 'appBasedRef.current', appBasedRef.current);
// const rawQueryStr = buildQuery(appBasedRef.current, curQuery![RAW_QUERY]);
Copy link
Collaborator

Choose a reason for hiding this comment

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

you may remove loggings/comments next time before committing or merge these in one commit that only contains logging/comments removed version so it could help to remove noice in PR review

@mengweieric mengweieric self-requested a review October 21, 2022 20:08
@mengweieric mengweieric merged commit af3b3d3 into opensearch-project:main Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants