-
Notifications
You must be signed in to change notification settings - Fork 16
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
Add Global mode to TimeSeriesWidget #377
Add Global mode to TimeSeriesWidget #377
Conversation
Co-authored-by: Víctor Velarde <victor.velarde@gmail.com>
This pull request has been linked to Shortcut Story #219452: TimeSeriesWidget - global (remote) mode. |
…sc-219452/timeserieswidget-global-remote-mode
Pull Request Test Coverage Report for Build 2196645397
💛 - Coveralls |
DAYS = 'days', | ||
HOURS = 'hours', | ||
MINUTES = 'minutes' | ||
YEARS = 'year', |
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.
Out of curiosity, why this change?
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.
Because in all the providers, these operations are singular :(
value: | ||
value.filter((_, idx) => idx % 2 === 0).reduce((acc, [val]) => acc + val, 0) / | ||
value.filter((_, idx) => idx % 2 !== 0).reduce((acc, [val]) => acc + val, 0) | ||
})); |
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.
This final part is a bit obscure, can you comment (or use some better variable names)?
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 agree. I'm going to improve it now.
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.
👍🏻
No description provided.