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

Refactor mungeSummaryData util function #1206

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

jeremiak
Copy link
Contributor

Note that this PR isn't not against master, but jk-jw-all-composite-charts which is another in-progress feature branch.

The mungeSummary data function was doing quite a bit all in one call which made it require a lot of parameters and was harder to follow. It has been refactored into a series of smaller helper functions that are used at different points in the app. This way the data is reduced into a more usable form that requires no further calculation, just shape manipulation and filtering.

Added tests for all new functions in summary util

The mungeSummary data function was doing quite a bit all in one call
which made it require a lot of parameters and was harder to follow. It
has been refactored into a series of smaller helper functions that are
used at different points in the app. This way the data is reduced into
a more usable form that requires no further calculation, just shape
manipulation and filtering.

Added tests for all new functions in summary util
@jeremiak jeremiak requested a review from jpwentz August 23, 2017 07:44
Copy link
Contributor

@jpwentz jpwentz left a comment

Choose a reason for hiding this comment

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

Def. an improved approach.

@jpwentz jpwentz merged this pull request into jk-jw-all-composite-charts Aug 24, 2017
@jeremiak jeremiak deleted the jk-summary-util branch December 5, 2017 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants