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

fix: prevent re-rendering/flashing of maps and charts [DHIS2-14979] [v40] #2266

Merged
merged 4 commits into from
Mar 22, 2023

Conversation

jenniferarnesen
Copy link
Collaborator

Fixes https://dhis2.atlassian.net/browse/DHIS2-14979

Visualizations were re-rendering/flashing, causing extra api requests which could be a performance issue on slower connections

  • when expanding the interpretations panel
  • resize the window
  • in edit mode resizing an item

* fix: solve most unwanted re-renders of dashboard items

This is basically reverting a change I added to solve a DV Highchart's
cutoff issue.
I think I found another approach for that issue which does not require
to pass style to the plugin, which is a problem because of course it
changes any time the dashboard item container changes size (window
resize, resize of other dashboard items, interpretation panel toggle,
etc...).

* chore: bump cli-app-scripts to solve no-service-worker issue
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 22, 2023

🚀 Deployed on https://pr-2266--dhis2-dashboard.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify March 22, 2023 08:48 Inactive
@cypress
Copy link

cypress bot commented Mar 22, 2023

Passing run #3195 ↗︎

0 51 0 0 Flakiness 0

Details:

fix: use chrome in e2e tests
Project: dashboards-app Commit: 373b28d657
Status: Passed Duration: 08:02 💡
Started: Mar 22, 2023 11:56 AM Ended: Mar 22, 2023 12:04 PM

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings.

@jenniferarnesen jenniferarnesen requested a review from edoardo March 22, 2023 10:38
@dhis2-bot dhis2-bot temporarily deployed to netlify March 22, 2023 10:42 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 22, 2023 11:54 Inactive
@jenniferarnesen jenniferarnesen merged commit dbd7cb8 into v40 Mar 22, 2023
@jenniferarnesen jenniferarnesen deleted the fix/re-rendering-v40 branch March 22, 2023 12:10
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.

3 participants