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] #1826

Merged
merged 12 commits into from
Jun 22, 2021

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Jun 17, 2021

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 <div> 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).

Screenshot 2021-06-19 at 08 19 08

In print mode - the link is not displayed:
Screenshot 2021-06-19 at 08 19 29

chart-invalid-filter.mov

@jenniferarnesen jenniferarnesen enabled auto-merge (squash) June 22, 2021 09:31
@jenniferarnesen jenniferarnesen merged commit 2aa5f6b into master Jun 22, 2021
@jenniferarnesen jenniferarnesen deleted the fix/empty-chart-when-analytics-req-fails branch June 22, 2021 10:22
dhis2-bot added a commit that referenced this pull request Jun 22, 2021
## [31.16.3](v31.16.2...v31.16.3) (2021-06-22)

### Bug Fixes

* add onError callback to handle failed chart from DV plugin [DHIS2-11303] ([#1826](#1826)) ([2aa5f6b](2aa5f6b))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 31.16.3 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

jenniferarnesen added a commit that referenced this pull request Jul 8, 2021
…#1864)

Fixes [DHIS2-11303]
Backport of #1826

Add callback for errors from DataVisualizerPlugin. The implementation is based on the sketch from DHIS2-2839.
jenniferarnesen added a commit that referenced this pull request Jul 8, 2021
Fixes DHIS2-11303

Backport of #1826

Add callback for errors from DataVisualizerPlugin. The implementation is based on the sketch from DHIS2-2839.
jenniferarnesen added a commit that referenced this pull request Aug 11, 2021
…#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: #1826
dhis2-bot added a commit that referenced this pull request Aug 12, 2021
## [31.17.1](v31.17.0...v31.17.1) (2021-08-12)

### Bug Fixes

* bump dv plugin and ui to latest ([#1892](#1892)) ([89dd128](89dd128))
* set correct item height when adding dashboard items in edit mode ([#1868](#1868)) ([41575f4](41575f4)), closes [#1826](#1826)
* the response code for PUT userDataStore has been changed from 201 to 200 ([#1896](#1896)) ([ced4258](ced4258))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants