Alejandra
b81cec8ea5
♻️ Add delete_user_me endpoint and corresponding test cases ( #1179 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Esteban Maya
ad72c4d3fd
♻️ Refactor rename ModelsOut to ModelsPublic ( #1154 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Patrick Arminio
dcebccadba
🚨 Enable `ARG001` to prevent unused arguments ( #1152 )
1 year ago
Alejandra
4239d93ea6
♻️ Refactor and tweaks, rename `UserCreateOpen` to `UserRegister` and others ( #1143 )
1 year ago
Salomon Popp
e13d120fd1
✏ Fix typo in variable names in `backend/app/api/routes/items.py` and `backend/app/api/routes/users.py` ( #711 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Alejandra
03eb49aa4d
🐛 Fix allowing a user to update the email to the same email they already have ( #696 )
1 year ago
Alejandra
f67af697eb
♻️ Refactor user update ( #689 )
1 year ago
Dong-hyeon Shin
11fe2a00ed
♻ Update error messages ( #417 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Sebastián Ramírez
b9cbb4f8f4
👷 Add continuous deployment and refactors needed for it ( #667 )
1 year ago
Esteban Maya
a230f4fb2c
🏷️ Add mypy to the GitHub Action for tests and fixed types in the whole project ( #655 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Sebastián Ramírez
d4e35a0dfd
♻️ Refactor email logic to allow re-using util functions for testing and development ( #663 )
1 year ago
Esteban Maya
541dd75ce9
✅ Add tests to raise coverage to at least 90% and fix recover password logic ( #632 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Esteban Maya
8558cf00a2
♻ Move project source files to top level from src, update Sentry dependency ( #630 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Esteban Maya
06766f3cb3
♻ Refactor Python folder tree ( #629 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Alejandra
2d0f77421f
♻️ Refactor old CRUD utils and tests ( #622 )
1 year ago
Esteban Maya
08395759fe
⬆ Upgrade code to support pydantic V2 ( #615 )
1 year ago
Alejandra
2346b81c51
✨ Support delete own account and other tweaks ( #614 )
Co-authored-by: Esteban Maya Cadavid <emaya@trueblue.com>
1 year ago
Sebastián Ramírez
0cc802eec8
🎨 Format files with pre-commit and Ruff ( #611 )
1 year ago
Sebastián Ramírez
73b2884057
🚚 Refactor and simplify backend file structure ( #609 )
1 year ago
Esteban Maya
f41f4432fe
♻ Refactor items and services endpoints to return count and data, and add CI tests ( #599 )
Co-authored-by: Esteban Maya Cadavid <emaya@trueblue.com>
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
1 year ago
Alejandra
176b6fb1c9
♻️ Refactor update endpoints and regenerate client for new-frontend ( #602 )
1 year ago
Alejandra
a88f637ed8
✨ Add delete_user; refactor delete_item ( #594 )
1 year ago
Alejandra
6faa5f66d5
♻️ Re-enable user update path operations for frontend client generation ( #574 )
2 years ago
Alejandra
047e6884be
♻️ Remove type ignores and add `response_model` ( #572 )
2 years ago
Alejandra
6f29eb2438
♻️ Refactor Users API and dependencies ( #561 )
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2 years ago
Sebastián Ramírez
455de4d9a9
♻️ Refactor project generation, discard cookiecutter, use plain git/clone/fork ( #553 )
2 years ago
Sebastián Ramírez
eed33d276d
♻️ Refactor backend, settings, DB sessions, types, configs, plugins ( #158 )
* ♻️ Refactor backend, update DB session handling
* ✨ Add mypy config and plugins
* ➕ Use Python-jose instead of PyJWT
as it has some extra functionalities and features
* ✨ Add/update scripts for test, lint, format
* 🔧 Update lint and format configs
* 🎨 Update import format, comments, and types
* 🎨 Add types to config
* ✨ Add types for all the code, and small fixes
* 🎨 Use global imports to simplify exploring with Jupyter
* ♻️ Import schemas and models, instead of each class
* 🚚 Rename db_session to db for simplicity
* 📌 Update dependencies installation for testing
5 years ago
Stephen Brown II
79631c7619
✨ Use Pydantic BaseSettings for config settings ( #87 )
* Use Pydantic BaseSettings for config settings
* Update fastapi dep to >=0.47.0 and email_validator to email-validator
* Fix deprecation warning for Pydantic >=1.0
* Properly support old-format comma separated strings for BACKEND_CORS_ORIGINS
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
5 years ago
Manu
ab46165387
✨ Add base class to simplify CRUD ( #23 )
6 years ago
Sebastián Ramírez
ecd634e497
✨ Add Items (crud, models, endpoints), utils, refactor ( #14 )
* Update CRUD utils to use types better.
* Simplify Pydantic model names, from `UserInCreate` to `UserCreate`, etc.
* Upgrade packages.
* Add new generic "Items" models, crud utils, endpoints, and tests. To facilitate re-using them to create new functionality. As they are simple and generic (not like Users), it's easier to copy-paste and adapt them to each use case.
* Update endpoints/*path operations* to simplify code and use new utilities, prefix and tags in `include_router`.
* Update testing utils.
* Update linting rules, relax vulture to reduce false positives.
* Update migrations to include new Items.
* Update project README.md with tips about how to start with backend.
6 years ago
Matthew Clarkson
f947ba8749
🐛 fix read_user_by_id docstring ( #4 )
Fix incorrectly documented as "Get a specific user by username (email)". Changed to "Get a specific user by id".
6 years ago
Sebastián Ramírez
cd112bd683
Refactor/upgrade backend and frontend parts ( #2 )
* ♻️ Refactor and simplify backend code
* ♻️ Refactor frontend state, integrate typesafe-vuex accessors into state files
* ♻️ Use new state accessors and standardize layout
* 🔒 Upgrade and fix npm security audit
* 🔧 Update local re-generation scripts
* 🔊 Log startup exceptions to detect errors early
* ✏️ Fix password reset token content
* 🔥 Remove unneeded Dockerfile directives
* 🔥 Remove unnecessary print
* 🔥 Remove unnecessary code, upgrade dependencies in backend
* ✏️ Fix typos in docstrings and comments
* 🏗️ Improve user Depends utilities to simplify and remove code
* 🔥 Remove deprecated SQLAlchemy parameter
6 years ago
Sebastián Ramírez
6fdba19639
✨ Update all for Postgres and new techniques
7 years ago
Sebastián Ramírez
7f8bfc8faa
🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
7 years ago