-
Notifications
You must be signed in to change notification settings - Fork 89
Correctly show all modes in ServicePerModeChart #611
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
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #611 +/- ##
===========================================
- Coverage 43.46% 15.67% -27.80%
===========================================
Files 323 323
Lines 17603 16421 -1182
Branches 5368 4989 -379
===========================================
- Hits 7652 2574 -5078
- Misses 8676 11830 +3154
- Partials 1275 2017 +742
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
| if (column[mode] > 0) { | ||
| modes[mode] = true | ||
| } | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just do this check for modes with value > 0 in the filter below after the this._getData call? The way it currently is feels a little obfuscated. Alternatively, if you decide to keep it this way, the modes key could use a more descriptive name e.g., modesWithData or something.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up doing the check in the filter as you recommended.
landonreed
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a few non-blocking comments on code style.
Checklist
devbefore they can be merged tomaster)Description
fixes #610