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

346 Undefined denominators return No data #410

Merged
merged 2 commits into from
Apr 24, 2020

Conversation

nick-beyondessential
Copy link
Contributor

@nick-beyondessential nick-beyondessential commented Apr 20, 2020

Issue #:

346 - Some denominator values display as "undefined" in Disaster Response dashboard group report

Changes:

Added a check in formatter that if denominator is undefined return 'No data'.
Not sure if this is the correct place to do this? Could just return value (or at least check value is non-zero), but if we are expecting a fraction and denominator isn't supplied then we can assume something has gone wrong and better to display 'No data' than incorrect data?

Screenshots:

Relevant screenshots for this PR can be found here: https://github.com/beyondessential/tupaia-backlog/issues/346#issuecomment-682310694

Copy link
Collaborator

@rohan-bes rohan-bes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a fine change to me. Nice work! 😄

@nick-beyondessential
Copy link
Contributor Author

merge in latest dev to feature branch
@edmofro edmofro merged commit ebb0d78 into dev Apr 24, 2020
@edmofro edmofro deleted the 346-disaster-response-display-undefined branch April 24, 2020 01:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants