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: regression - maps and charts are re-rendering [DHIS2-14979] [patch/2.40.0] #2267

Merged
merged 6 commits into from
Mar 23, 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
@jenniferarnesen jenniferarnesen force-pushed the fix/re-rendering-patch/2.40.0 branch from c84207f to ab3382b Compare March 22, 2023 08:42
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 22, 2023

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

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

cypress bot commented Mar 22, 2023

Passing run #3210 ↗︎

0 51 0 0 Flakiness 0

Details:

fix: dedupe
Project: dashboards-app Commit: 9856b19e3b
Status: Passed Duration: 06:26 💡
Started: Mar 23, 2023 8:35 AM Ended: Mar 23, 2023 8:42 AM

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

@jenniferarnesen jenniferarnesen changed the title fix: prevent re-rendering/flashing of maps and charts [DHIS2-14979] [patch/2.40.0] fix: regression - maps and charts are re-rendering [DHIS2-14979] [patch/2.40.0] Mar 22, 2023
@dhis2-bot dhis2-bot temporarily deployed to netlify March 22, 2023 12:15 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 22, 2023 15:45 Inactive
@janhenrikoverland janhenrikoverland enabled auto-merge (squash) March 22, 2023 15:46
@dhis2-bot dhis2-bot temporarily deployed to netlify March 23, 2023 08:32 Inactive
@jenniferarnesen jenniferarnesen merged commit 6b7c695 into patch/2.40.0 Mar 23, 2023
@jenniferarnesen jenniferarnesen deleted the fix/re-rendering-patch/2.40.0 branch March 23, 2023 08:51
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