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

Move Calculation off of Calculator #37

Open
cooper-roper opened this issue May 6, 2024 · 2 comments
Open

Move Calculation off of Calculator #37

cooper-roper opened this issue May 6, 2024 · 2 comments

Comments

@cooper-roper
Copy link
Contributor

cooper-roper commented May 6, 2024

Description

We want to move complex logic off of the FE's and into the api, for better separation of concern and access to this logic.

This means we need to replicate the existing logic around the result calculation into the api. Create a service that performs this calculation (homeEnergy.service.js).

Technical Notes

Move this logic, specifically handleCalculation into the back end.

  • Create Unit tests! homeEnergy.service.test.js
  • A stand-alone piece of logic/service
  • DO NOT WIRE INTO ANY ENDPOINT (see below)

Risks

Related Issues Or Discussions

#30 Will be the continuation of this work to wire it together.

@codeexpert74 codeexpert74 self-assigned this May 22, 2024
@rgraue
Copy link
Collaborator

rgraue commented May 22, 2024

Assume that any required material for the calculations will be a) passed in from user request b) lives in the database

@codeexpert74
Copy link
Collaborator

codeexpert74 commented May 22, 2024 via email

@codeexpert74 codeexpert74 removed their assignment Jun 8, 2024
@rgraue rgraue moved this to Ready For Dev in Climate Cooperative Board Aug 14, 2024
@rgraue rgraue closed this as completed by moving to Ready For Dev in Climate Cooperative Board Aug 14, 2024
@rgraue rgraue reopened this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready For Dev
Development

No branches or pull requests

3 participants