Commit graph

48 commits

Author SHA1 Message Date
Daniel Roth
47de308bf3 reformatting 2026-02-20 10:39:16 +00:00
Daniel Roth
cb55338f39 handle all plans having null cost 🟩 2026-02-20 10:38:29 +00:00
Daniel Roth
0e279b15ce handle all plans having zero cost 🟩 2026-02-20 10:36:22 +00:00
Daniel Roth
a8d3ce599d handle all plans having zero cost 🟥 2026-02-20 10:11:31 +00:00
Daniel Roth
6dcb4d1d92 additional logging 2026-02-19 17:03:40 +00:00
Daniel Roth
63bef436d0 do batch update per portfolio not per property 2026-02-19 12:44:41 +00:00
Daniel Roth
dae74d2f8b Fix bug where default plans were not being unset if they weren't included in scenarios to be considered 2026-02-19 12:18:22 +00:00
Daniel Roth
b715a60d4a typo in log 2026-02-19 09:25:55 +00:00
Daniel Roth
5ffa729078 rename variable in invoke local lambda 2026-02-18 17:35:31 +00:00
Daniel Roth
c1aa5716be priority list is scenarios not plans 🟩 2026-02-18 17:26:22 +00:00
Daniel Roth
ce8c1d23e6 priority list is scenarios not plans 🟥 2026-02-18 17:24:17 +00:00
Daniel Roth
475b3d0e13 input is list of scenarios to consider not list of plans 2026-02-18 17:19:38 +00:00
Daniel Roth
490c8946d7 Unset existing default before setting new one 2026-02-18 17:11:00 +00:00
Daniel Roth
478947b8da move docker compose back to categorisation directory and define simple invoke script 2026-02-18 16:12:23 +00:00
Daniel Roth
b4e3dc9f42 add example request body 2026-02-18 15:19:36 +00:00
Daniel Roth
3dbe118b38 additional logs in handler for local testing 2026-02-18 13:29:16 +00:00
Daniel Roth
cc901d999b option to only consider a specific list of plans 2026-02-18 11:54:55 +00:00
Daniel Roth
bfb0d79da6 Cheapest compliant plan selected even when not in the priority list 🟩 2026-02-18 11:27:09 +00:00
Daniel Roth
b916551921 allow plan priority to be specified for plans with identical ouput 🟩 2026-02-18 11:20:08 +00:00
Daniel Roth
508f3f2859 make choose cheapest relevant plan method public as it's called from outside the module 2026-02-18 10:40:50 +00:00
Daniel Roth
9a177065b6 allow plan priority to be specified for plans with identical ouput 🟥 2026-02-18 10:06:40 +00:00
Daniel Roth
3a5df1a1f3 Better logging 2026-02-18 09:05:41 +00:00
Daniel Roth
fac418adbe Don't re-get scenarios for every plan 2026-02-17 15:25:51 +00:00
Daniel Roth
0218c169c2 missing import in dockerfile 2026-02-17 12:38:12 +00:00
Daniel Roth
36db25d5e4 hopefully the last missing import 2026-02-17 12:07:04 +00:00
Daniel Roth
f834d9497e undo typos 2026-02-17 11:55:57 +00:00
Daniel Roth
87e5d05936 revert accidental pushed changes 2026-02-17 11:46:51 +00:00
Daniel Roth
cb864c161f import entirity of backend/app/db 2026-02-17 11:45:50 +00:00
Daniel Roth
e0f133073b fix import errors 2026-02-17 11:12:10 +00:00
Daniel Roth
35f7738160 implement handler 2026-02-17 09:33:31 +00:00
Daniel Roth
68c3a20d0a typehint correction 2026-02-16 12:04:49 +00:00
Daniel Roth
b99fb686dd only write to db if is_default value has changed 2026-02-16 11:59:03 +00:00
Daniel Roth
3349edda89 initial definition of trigger request object 2026-02-16 10:03:07 +00:00
Daniel Roth
53cfd9ee8c start setting up lambda deployment code 2026-02-16 09:57:00 +00:00
Daniel Roth
bd9e553e35 bulk update of plans 2026-02-13 14:50:48 +00:00
Daniel Roth
e0e50d696a fixes so it runs (as far as the database update), plus some temp prints 2026-02-13 12:26:31 +00:00
Daniel Roth
561594a6ca consistent use of Tuple 2026-02-13 09:45:15 +00:00
Daniel Roth
f34a6269f7 Move updating of is_default to domain rather than database layer 2026-02-13 09:39:25 +00:00
Daniel Roth
bf0fce8ca5 Check whether plan with EPC goal is compliant (and change goal_value back to required)🟩 2026-02-12 16:08:37 +00:00
Daniel Roth
080000123f cater for goal_value being NULL 🟥 2026-02-12 15:40:03 +00:00
Daniel Roth
70fd417c4a Check whether plan with EPC goal is compliant 🟥 2026-02-12 15:04:02 +00:00
Daniel Roth
f955184260 refactor processor 2026-02-12 14:25:35 +00:00
Daniel Roth
b3fa7c3051 rename Plan and Scenario to PlanModel and ScenarioModel 2026-02-12 12:01:39 +00:00
Daniel Roth
e7f941d5e4 use sqlalchemy 2.0 typing in recommendations , and write processing logic 2026-02-12 10:00:47 +00:00
Daniel Roth
598a612b40 define db methods 2026-02-12 09:23:47 +00:00
Daniel Roth
9faba4af42 set up postgres class 2026-02-11 17:22:00 +00:00
Daniel Roth
c67e4644e4 define processor and local runner 2026-02-10 18:11:50 +00:00
Daniel Roth
b2f1190066 create categorisation directory 2026-02-10 17:45:49 +00:00