Commit graph

136 commits

Author SHA1 Message Date
a3c0a2701e Removed redundant code from master and route to new submodules 2025-10-18 17:52:02 +11:00
f51c90f922 - [x] Wire routers in main with minimal app code
- [x] Create api/deps module for get_db, cookie_person, and error_response
- [x] Use settings.py (DOOF_DB) for DB path in main and deps
2025-10-18 17:14:03 +11:00
53b07343d1 API extractions 2025-10-18 17:05:48 +11:00
2bbed57313 Persons api extraction 2025-10-18 17:00:01 +11:00
edfc341b4b extract recipes 2025-10-18 16:54:35 +11:00
3d7afa3765 Scaffolding 2025-10-18 16:50:43 +11:00
1b76ea44b6 Initial plan and strategy 2025-10-18 16:48:32 +11:00
4c3f370ddc Squashed commit of the following:
commit 4189d9f824f681b480f797b109e963762eb22e9c
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 16:41:57 2025 +1100

    Openapi complete

commit bebf8c30cba0b85a889198fe44879614065a0c34
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 16:35:39 2025 +1100

    Removed unversioned api

commit dd9cc2eae75d66fceebe14c918c3ed8498376ee6
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 16:07:03 2025 +1100

    Spec updates

commit b993c4530688f79ea983278283f984e9d8e83860
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 16:01:50 2025 +1100

    docs(spec): update doof-back-spec with v1 RFC7807 422, reusable Problem* responses, and shopping/current aliasing; tests passing; openapi.json refreshed

commit 30bac7e57367b14ce924667a7955845de949d779
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 16:00:13 2025 +1100

    openapi polish

commit eb7f7f224f7085fa5b3fadc7716db0ebb7f47eb0
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:54:52 2025 +1100

    OpenAPI reusable responses: Added components.responses for `Problem400`, `Problem404`, and `Problem422`; v1 routes reference these consistently.
     - Units enum: Exposed advisory enum in schema for `Ingredient.unit` using existing units list (no runtime enforcement).

commit 037037e17d684a89b264f2406377970a0de7ec99
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:43:01 2025 +1100

    Add `total` counts to v1 page responses for recipes/persons; push persons name filter into SQL for v1 when `q` is provided.

commit 07e7735076aae8cbd04bb10f9aa324c1a3d80ae4
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:40:17 2025 +1100

    Add parameter descriptions for `cursor`, `limit`, and `q` on v1 list endpoints; include example `Page` envelopes in 200 responses.

commit e5bf9396b0fe870501d1b4712cba2555dd2ef9b1
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:36:27 2025 +1100

    DB pagination

commit 782315cd2a0c18cc50e4deaf28e7ec6e4b58c6e2
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:29:38 2025 +1100

    camelcase tests

commit b207c33e2844c00fc9e531fb9cf8c07a3f5cd543
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:24:57 2025 +1100

    OpenAPI enrichment, Error responses

commit dc84681ab743008e5cd8bec7f3ccb0d05b557518
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:16:39 2025 +1100

    v1 tests: Added basic tests to assert `Page` envelopes and RFC7807 responses for v1 endpoints without affecting legacy tests.

commit 1524b7a98ffe04af11c2731c8125ac9348751cff
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:14:51 2025 +1100

    Pagination

commit 92e91d7acf15c09b14bc76f7b16a7a47e65129ec
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:03:50 2025 +1100

    Use middleware for naming case changes

commit c68f964f9b8e3d8f8ef020661e747e0990459c81
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Oct 18 15:00:09 2025 +1100

    Openapi gen
2025-10-18 16:44:36 +11:00
18f784665f Added ruff, black and mypy 2025-10-18 14:26:42 +11:00
255ebd4613 Squashed commit of the following:
commit 1c707260a4059cbdebb3e2720d3899b8773a1c37
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 22:03:48 2025 +1000

    Sync tests

commit 5a71077121921a2cea9f3be9c1d1f7770691520a
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 21:57:00 2025 +1000

    minor refactorings

commit 0bafec1b40bf5cf6f1554f6e5ec6e8f4e043d1cc
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 21:39:52 2025 +1000

    Remove ids from shopping list

commit c1ee30d1b591b241dfa152d8a0fa9af1f6aaaed1
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 21:04:48 2025 +1000

    Added more cases to shopping tests

commit ad3d598bdb574b1aeaabc354bb825ee428aaaa41
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 20:26:36 2025 +1000

    Added 404 response when list not found

commit 336538dc47e12736f7f57d2c80252a700dc1e83b
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 20:15:52 2025 +1000

    Tests for main

commit 238c0f89b2671348091a162ee519e5f1bf2cd66c
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 20:07:12 2025 +1000

    Meals tests

commit b92f2432ee13f5384b6f1a9b8efe76bec9dbd920
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 19:57:45 2025 +1000

    Shopping tests

commit b3c7ae20e6207cf0f9f04bdec5cb6145b04638d9
Author: jableader <jacobdunk@gmail.com>
Date:   Wed Jul 30 19:40:19 2025 +1000

    product tests passing
2025-07-30 22:05:29 +10:00
2a66ff39be Vibe coded some tests -_- 2025-07-30 18:55:51 +10:00
54f0dcbbb9 Remove request when meal purchased 2025-07-30 18:25:07 +10:00
410b097d5c Fixed purchased item matching 2025-07-30 18:19:20 +10:00
4fa88335d1 Fixed async generator crash 2025-07-29 17:15:38 +10:00
1706809458 Allowed for null products, move ingredient spreading server-side (#1)
Reviewed-on: #1
Co-authored-by: jableader <jacobdunk@gmail.com>
Co-committed-by: jableader <jacobdunk@gmail.com>
2025-07-28 23:23:09 +00:00
b17bb1d687 Catch a broader exception type in scrapers 2024-10-28 17:14:16 +11:00
05d6cd9c01 Coles dynamic get api version with cookies 2024-10-24 22:14:05 +11:00
a0c2b88a55 Include shops from upcoming meals in shopping list 2024-10-16 18:51:04 +11:00
3d2d681a7d Found more datetimes to update 2024-10-14 17:36:56 +11:00
809de13ed8 Use iso format date stamps 2024-10-14 16:59:05 +11:00
ff2d348ec9 Fixed duplicate overlapping shops 2024-10-14 16:01:47 +11:00
9afe89b983 Unrequest meals on delete 2024-10-13 19:31:37 +11:00
78e94a3503 Squashed commit of the following:
commit 2cf565c8c42387cdc57fd7ec7922e6d9e173322c
Author: jableader <jacobdunk@gmail.com>
Date:   Sun Oct 13 19:15:03 2024 +1100

    Fixed bug when saving own ingredients

commit 3ff1204a2fe88da65864109218c0a6de2130f7cc
Author: jableader <jacobdunk@gmail.com>
Date:   Sun Oct 13 18:02:04 2024 +1100

    First successful save

commit 2620e2c899c145df1c4a941d1eaaef7b01087791
Author: jableader <jacobdunk@gmail.com>
Date:   Fri Oct 4 17:53:21 2024 +1000

    Change shopping list to be post-able
2024-10-13 19:19:57 +11:00
0fdd0d10c2 improved scraper 2024-10-01 20:02:32 +10:00
979499602f Add support for coles, and tests 2024-09-29 15:04:10 +10:00
bc93fc81ba Soft-delete meals 2024-09-28 15:04:12 +10:00
e2a59536b1 Squashed commit of the following:
commit a63d4740d5594fb603ba13fbf1515e8b7081d370
Author: jableader <jacobdunk@gmail.com>
Date:   Sat Sep 28 12:41:37 2024 +1000

    Impl
2024-09-28 14:54:54 +10:00
1da1b0e097 Fixed saving recipe 2024-09-22 12:26:49 +10:00
676378b4fb Fixed recipe parsing for py3.11 2024-09-22 12:09:52 +10:00
6ae7036ca7 Fixed recipe parsing 2024-09-22 07:11:01 +10:00
191168335a Get db name from environment variable 2024-09-21 11:22:30 +10:00
b1905cc03a Proxy the frontend site, use api prefix 2024-09-21 10:34:13 +10:00
bc83e3c3d3 Fixed requirements.txt 2024-09-20 20:12:46 +10:00
407d649d99 Consumed meal fixes 2024-05-27 21:55:47 +10:00
dc83b0da9b Added consumed functionality 2024-05-25 12:33:41 +10:00
d6b667463b meal_date to suggested_date 2024-05-25 12:09:32 +10:00
7882b16bd4 Added Readme 2024-05-23 22:00:13 +10:00
c098cd8fd0 Paste product link straight in 2024-05-21 22:12:09 +10:00
72a705140b Show purchased date 2024-05-21 09:57:56 +10:00
ba55f8a00a Created by id is optional when creating recipes 2024-05-20 21:50:04 +10:00
d277c95895 Fixed product_id 2024-05-20 20:23:53 +10:00
e0b643bfec Turns out zero is a valid id 2024-05-20 20:09:57 +10:00
6d7a8fb7b8 Parse quantity from product 2024-05-19 22:35:37 +10:00
a4639a79fd Fixed recipe dupe bug 2024-05-19 22:11:58 +10:00
a5ad6b7af3 Test data tweaks 2024-05-19 21:58:39 +10:00
c1375d8d52 Added num serves to recipe 2024-05-19 21:22:30 +10:00
6b684fadd8 Working 'found' 2024-05-19 13:43:06 +10:00
be1d2b75ad Many misc changes for shopping pages 2024-05-18 17:05:01 +10:00
ac34da7824 Shopping list db functionality 2024-05-17 19:09:03 +10:00
947dc21da7 Moved tests into folder 2024-05-17 19:07:17 +10:00