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: add onError callback to handle failed chart from DV plugin [DHIS2-11303] [v36] #1832

Merged
merged 1 commit into from
Jun 23, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Jun 22, 2021

Backport of #1826

Add callback for errors from DataVisualizerPlugin. The implementation is based on the sketch from DHIS2-2839.

Changes to VisualizationItem/Item look like a lot, but the only change was to nest another

so that the error message could be centered vertically.

The key part of the fix is in DataVisualizerPlugin with the error handler, and resetting the error state when either the filter or the visualization type changes (i.e., View As Table).

@jenniferarnesen jenniferarnesen merged commit e1e2782 into v36 Jun 23, 2021
@jenniferarnesen jenniferarnesen deleted the fix/empty-chart-when-ahalytics-req-fails-v36 branch June 23, 2021 10:34
jenniferarnesen added a commit that referenced this pull request Jul 8, 2021
… [v36] (#1869)

Backport of #1868

Remove the nested div that was causing the height for a visualization to not be set during edit mode. Fix was to restore the previous DOM structure, and just add a div around the error message with the needed height.

This bug was introduced by the fix for DHIS2-11303. PR that introduced the bug: #1832
The other change in this PR is to improve the styling of the error message.
jenniferarnesen added a commit that referenced this pull request Jul 8, 2021
… [v36] (#1869)

Backport of #1868

Remove the nested div that was causing the height for a visualization to not be set during edit mode. Fix was to restore the previous DOM structure, and just add a div around the error message with the needed height.

This bug was introduced by the fix for DHIS2-11303. PR that introduced the bug: #1832
The other change in this PR is to improve the styling of the error message.
jenniferarnesen added a commit that referenced this pull request Jul 8, 2021
… [v36] (#1869) (#1870)

Backport of #1868

Remove the nested div that was causing the height for a visualization to not be set during edit mode. Fix was to restore the previous DOM structure, and just add a div around the error message with the needed height.

This bug was introduced by the fix for DHIS2-11303. PR that introduced the bug: #1832
The other change in this PR is to improve the styling of the error message.
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.

2 participants