Commit graph

604 commits

Author SHA1 Message Date
Hayden
476aefeeb0
refactor(backend): ♻️ cleanup HTTP service classes and remove database singleton (#687)
* refactor(backend): ♻️ cleanup duplicate code in http services

* refactor(backend): ♻️ refactor database away from singleton design

removed the database single and instead injected the session into a new Database class that is created during each request life-cycle. Now sessions no longer need to be passed into each method on the database

All tests pass, but there are likely some hidden breaking changes that were not discovered.

* fix venv

* disable venv cache

* fix install script

* bump poetry version

* postgres fixes

* revert install

* fix db initialization for postgres

* add postgres to docker

* refactor(backend): ♻️ cleanup unused and duplicate code in http services

* refactor(backend): remove sessions from arguments

* refactor(backend): ♻️ convert units and ingredients to use http service class

* test(backend):  add unit and food tests

* lint

* update tags

* re-enable cache

* fix missing fraction in db

* fix lint

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-19 15:31:34 -08:00
hay-kot
c0e3f04c23 fix(frontend): 🐛 add sortablejs types 2021-09-14 12:36:46 -08:00
hay-kot
58f758b6c1 fix(frontend): 🐛 fix login page setup script 2021-09-14 12:26:28 -08:00
Hayden
b542583303
feat(backend): rewrite mealplanner with simple api (#683)
* feat(backend):  new meal-planner feature

* feat(frontend):  new meal plan feature

* refactor(backend): ♻️ refactor base services classes and add mixins for crud

* feat(frontend):  add UI/API for mealplanner

* feat(backend):  add get_today and get_slice options for mealplanner

* test(backend):  add and update group mealplanner tests

* fix(backend): 🐛 Fix recipe_id column type for PG

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-12 11:05:09 -08:00
Hayden
bdaf758712
feat(backend): start multi-tenant support (WIP) (#680)
* fix ts types

* feat(code-generation): ♻️ update code-generation formats

* new scope

* add step button

* fix linter error

* update code-generation tags

* feat(backend):  start multi-tenant support

* feat(backend):  group invitation token generation and signup

* refactor(backend): ♻️ move group admin actions to admin router

* set url base to include `/admin`

* feat(frontend):  generate user sign-up links

* test(backend):  refactor test-suite to further decouple tests (WIP)

* feat(backend): 🐛 assign owner on backup import for recipes

* fix(backend): 🐛 assign recipe owner on migration from other service

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-09 08:51:29 -08:00
Hayden
3c504e7048
feat(backend): migrate site-settings to groups (#673)
* feat(frontend):  add user registration page (WIP)

* feat(backend):  add user registration (WIP)

* test(backend):  add validator testing for registration schema

* feat(backend):  continued work on user sign-up

* feat(backend):  add signup flow and user/group settings

* test(backend):  user-creation tests and small refactor of existing tests

* fix(backend):  fix failing group tests

* style: 🎨 fix lint issues

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-05 22:05:29 -08:00
Hayden
e179dcdb10
refactor(frontend): ♻️ split user profile/management (#670)
* refactor(frontend): ♻️ major rewrite/improvement of use-profile pages

* refactor(frontend): ♻️ split webhooks into their own page

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-04 20:24:32 -08:00
Hayden
3d87ffc3a5
refactor(backend): ♻️ refactor backend services (#669)
* refactor(backend): ♻️ refactor backend services

* refactor(backend): ♻️ move user model folder into own directory for future expansion

* fix overriding results

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-04 12:28:49 -08:00
Hayden
b550dae593
refactor(backend): ♻️ change error messages to follow standard pattern to match locals on frontend (#668)
Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-02 21:33:18 -08:00
Hayden
abc0d0d59f
refactor(♻️): update 'about' page to new composition API (#667)
* test-commit

* Remove PR Name Checker

* refactor(backend): ♻️ split unrelated routes into clearer router paths

Add an /app and /admin router base paths to split previously grouped public/admin data into different paths. Part of a longer migration to move 'admin' operations under the admin path.

* refactor(backend): ♻️ rename imports

* refactor(frontend): ♻️ refactor frontend API and Pages to refelect new API design

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-02 11:24:17 -08:00
hay-kot
c7f8c96287 ci(backend): 💚 add conventional pr naming check 2021-09-01 21:44:59 -08:00
Hayden
990244e37e
Refactor/group page (#666)
* refactor(backend): ♻️ Refactor base class to be abstract and create a router factory method

* feat(frontend):  add group edit

* refactor(backend):  add group edit support

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-09-01 21:39:40 -08:00
Hayden
9b1bf56a5d
[Feat] Migrate from Pages to Cookbooks (#664)
* feat:  Add Description to Cookbooks

* feat(frontend):  Cookbook view page

* feat(frontend): 💄 Add final UI touches

* fix(backend): 🐛 Add get by slug or id

* fix linting issue

* test(backend):  Update tests from pages -> cookbooks

* refactor(backend): 🔥 Delete old page files

Co-authored-by: hay-kot <hay-kot@pm.me>
2021-08-31 18:51:34 -08:00
hay-kot
165fd8efd6 test(backend): add @skip for crf tests that can only run locally 2021-08-31 14:39:54 -08:00
hay-kot
d24e95c091 feat(backend): add initial cookbook support 2021-08-31 14:39:29 -08:00
hay-kot
83ab858e46 feat(frontend): Add Initial CookBook Support 2021-08-31 14:39:02 -08:00
hay-kot
2e6352cfbd update NLP for ingredients 2021-08-29 17:10:51 -08:00
hay-kot
086098899d update dependency injection methods 2021-08-29 17:10:29 -08:00
hay-kot
0b27e8af45 refactor(frontend): 💄 Imrove UI for parser 2021-08-29 17:09:08 -08:00
hay-kot
f78eb4ec39 fix(backend): 🐛 fix error when assigning favorite recipe 2021-08-28 17:42:12 -08:00
hay-kot
4a7f8428c5 refactor(backend): ♻️ rename UserInDb -> PrivateUser 2021-08-28 17:31:05 -08:00
hay-kot
df002c383c add docs string 2021-08-28 16:34:47 -08:00
hay-kot
8e9280efaf refactor(backend): ♻️ align variable names, eliminate dead-code, and finalize recipe services 2021-08-28 16:24:14 -08:00
hay-kot
985ad8017d refactor(backend): ♻️ move router dependencies to mealie.core.dependencies module 2021-08-28 15:36:46 -08:00
hay-kot
e1fb306a92 sort imports 2021-08-28 15:36:06 -08:00
hay-kot
7c936c85ae style(backend): 🎨 add isort to lint and CI/CD 2021-08-28 14:27:56 -08:00
hay-kot
2c80980453 unicode fraction processing 2021-08-28 14:18:56 -08:00
hay-kot
1c11f6a3d7 refactor(backend): ⚗️ experimental dependency injection framework (WIP) 2021-08-28 14:18:38 -08:00
hay-kot
da501adce8 refactor(backend): ♻️ add initial support for global dependency injection 2021-08-28 14:16:00 -08:00
hay-kot
0f6f81eb27 feat(frontend): 🚧 groundwork for user interactive ingredient parsing 2021-08-28 14:14:21 -08:00
hay-kot
f8c2f760bd style(backend): 🎨 2021-08-28 14:13:10 -08:00
hay-kot
20d847ec8e feat(backend): Add NLP Endpoint for Ingredient Parser (WIP) 2021-08-27 20:51:49 -08:00
hay-kot
161618808e refactor(backend): 🔥 Remove Backend Theme Support 2021-08-27 20:47:24 -08:00
hay-kot
dd1b1ad067 initialize food and units 2021-08-27 20:28:54 -08:00
hay-kot
a266a244d9 feat(backend): Add Generic Type Hint Support for Data Access Layer 2021-08-27 20:27:20 -08:00
hay-kot
0675c570ce refactor(backend): ♻️ Split Recipe Schema Code 2021-08-27 20:17:41 -08:00
hay-kot
5ba337ab11 feat(frontend): Fractional Scaling 2021-08-27 20:05:02 -08:00
hay-kot
d1a7ec3b95 fix(backend): 🐛 Fix CI/CD Linting Failures 2021-08-23 15:33:39 -08:00
hay-kot
abb0b84e22 fix auto initialize models 2021-08-23 12:25:16 -08:00
hay-kot
24a4b5b810 feat(frontend): Add Recipe Editor to Assign Units and Foods for Recipe Scaling 2021-08-23 12:24:38 -08:00
hay-kot
04ebc07333 fix restore from backup 2021-08-22 16:15:08 -08:00
hay-kot
234db39cc7 refactor(backend): ♻️ Refactor to make SessionLocal a globally accessible object 2021-08-22 16:08:37 -08:00
hay-kot
a1aad078da feat(frontend): Create CRUD User Interface for Units and Foods 2021-08-22 15:23:45 -08:00
hay-kot
122d35ec09 feat(backend): 🗃️ Add CRUD opertaions for Food and Units 2021-08-22 13:10:18 -08:00
hay-kot
c894d3d880 fix route path 2021-08-22 11:23:14 -08:00
hay-kot
62836e5381 refactor(backend): ♻️ Update tag naming and reorganized some routes. Still WIP 2021-08-21 21:49:14 -08:00
hay-kot
19fb6af050 refactor(backend): ♻️ New tag naming for group router 2021-08-21 15:13:42 -08:00
hay-kot
34a5587add fix auth tags 2021-08-21 15:08:29 -08:00
hay-kot
05f2eab1ea refactor(backend): ♻️ organize and tag user routes by path 2021-08-21 15:05:00 -08:00
hay-kot
7d40f8d74d events api 2021-08-21 14:04:49 -08:00