-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: switching from table to chart shows wrong data [DHIS2-9599] (#1196)
This commit includes a fair amount of refactoring. The goal of the refactoring was to move functionality out of plugin.js that had nothing to do with the plugins: * extractFavorite was moved to a separate module and renamed getVisualizationFromItem * extracted Map-specific code out of the VisualizationItem/Item to a separate component. This because VisualizationItem/Item is becoming a very large file * ItemHeaderButtons - get d2 from context rather than passing around as a property * extracted a NoVisualizationMessage component that contains its style * moved content height functionality to one place in the file VisualizationItem/Item rather than spread out (no functional changes to that code) * moved function getWithoutId to be together with the only code that actually uses that function * as suggested by the TODO in VisualizationItem/Item, call the apiFetchVisualization directly rather than using the pluginManager. Bug fix: * View as should show the same as what DV would show. This fix is in the file getVisualizationConfig.js - and uses the function getAdaptedUiLayoutByType from @dhis2/analytics.
- Loading branch information
1 parent
b9f5e72
commit ab60389
Showing
21 changed files
with
462 additions
and
347 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.