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: fix a crash when row totals is enabled (DHIS2-17297) #1660

Merged
merged 1 commit into from
May 6, 2024

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented May 2, 2024

Implements DHIS2-17297

Relates to dhis2/data-visualizer-app#3042


Key features

  1. fix crash in PT in certain circumstances

Description

More info in the ticket.
In short, a bug was introduced with the cumulative values feature with this commit.
The bug only happens in specific circumstances, which seem to be the following:

  1. column totals option is enabled in DV
  2. the visualization type is Pivot Table
  3. the Data dimension (dx) must be the first of the list of selected dimensions in Rows
  4. there must be a 2nd dimension in Rows
  5. one column must have all empty values

With these conditions I was able to reproduce the crash.


Screenshots

Here's a screenshot of the layout in DV which triggers the crash; once column totals is enabled and Update is clicked, the app crashes:

Screenshot 2024-05-02 at 11 39 22

@edoardo edoardo force-pushed the fix/pt-totals-crash branch from 98f32c6 to 8cf9f3f Compare May 6, 2024 08:37
@edoardo edoardo merged commit be6ea56 into master May 6, 2024
2 checks passed
@edoardo edoardo deleted the fix/pt-totals-crash branch May 6, 2024 11:21
dhis2-bot added a commit that referenced this pull request May 6, 2024
## [26.6.8](v26.6.7...v26.6.8) (2024-05-06)

### Bug Fixes

* fix a crash when row totals is enabled (DHIS2-17297) ([#1660](#1660)) ([be6ea56](be6ea56))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 26.6.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

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