Commit graph

64 commits

Author SHA1 Message Date
Daniel Roth
bb51d16f7f get the task statuses to update 2026-02-26 16:38:44 +00:00
Daniel Roth
add53a1949 Correct maths and prepare to trigger sqs from api 2026-02-26 12:58:33 +00:00
Daniel Roth
a962105436 udpate example payload in local lambda invoker 2026-02-25 10:55:26 +00:00
Daniel Roth
b9640d1894 delete commented out lines from dockerfile 2026-02-24 16:10:10 +00:00
Daniel Roth
1c8be836ab FIx imports in dockerfile 2026-02-24 16:00:12 +00:00
Daniel Roth
2ffd09bdd2 update subtask when processor completes 2026-02-24 15:28:18 +00:00
Daniel Roth
5646376d1e pass min and max IDs to consider to processor and db functions 2026-02-24 09:59:42 +00:00
Daniel Roth
2a4fb23f5f Define new plan route and modify trigger request object 2026-02-23 17:40:06 +00:00
Daniel Roth
31cfa47d8f dont worry about default scenarios 2026-02-20 17:10:53 +00:00
Daniel Roth
325e7f65e0 make sure Plan object is instantiated correctly. Additional logging 2026-02-20 16:13:30 +00:00
Daniel Roth
96fbd7f24c ensure all defaults are unset before setting new ones, refactor of processor 2026-02-20 15:26:40 +00:00
Daniel Roth
ec01e1d190 only get most recently added plans for scenario 2026-02-20 13:39:07 +00:00
Daniel Roth
ce94fb0573 handle some plans having zero cost 🟩 2026-02-20 11:35:12 +00:00
Daniel Roth
678de56def handle some plans having zero cost 🟥 2026-02-20 11:24:17 +00:00
Daniel Roth
b4583d3c8b put test portfolio back in local runner 2026-02-20 10:42:03 +00:00
Daniel Roth
481bd1197a put test portfolio back into invoke lambda script 2026-02-20 10:40:33 +00:00
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