Skip to content

Pre-Calculate Category Percentages#1569

Merged
nsdeschenes merged 4 commits into
masterfrom
service-calculate-percentages
Feb 4, 2021
Merged

Pre-Calculate Category Percentages#1569
nsdeschenes merged 4 commits into
masterfrom
service-calculate-percentages

Conversation

@nsdeschenes
Copy link
Copy Markdown
Contributor

Introduce new function that will take in the categoryTotals of a given summary and calculate the respective percentages, and add them to the summary object for DB insertion.

  • new calculatePercentages function
    • 100% test coverage
  • Update initializeSummaries, updateMonthSummary, and updateThirtyDays functions to use new calculatePercentages function
    • 100% test coverage on updates

@nsdeschenes nsdeschenes merged commit f3ff812 into master Feb 4, 2021
@nsdeschenes nsdeschenes deleted the service-calculate-percentages branch February 4, 2021 10:36
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