-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[E-64] Update the current state of the web application #104
base: development
Are you sure you want to change the base?
Conversation
MrAmfix
commented
Feb 20, 2025
- Interaction with the database has been moved to async mode
- Updated schemas
- Updated_models suggested
- Added logger
- Other small fixes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Помимо предыдущих комментариев еще пара моментов:
- Все измененные файлы нужно покрыть докстрингами. То, что было до этой задачи тоже.
- Почему возникла необходимость такой чистки в requirements?
- Изменения в любом случае будем сливать после обновления CI/CD. Пока не проходят пайплайны мы не можем их пропустить.
@@ -9,6 +9,9 @@ __pycache__/ | |||
.vscode | |||
**/__pycache__ | |||
**/test* | |||
migration | |||
alembic.ini | |||
test_folder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
А для чего нужна эта директория?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test_folder там просто файлы для проверки работы некоторых функций или посылок запросов
alembic_helper.txt
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
По хорошему нужно этот файл добавить в README веб-приложения в раздел инструкции по запуску.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сейчас пытаюсь в E-90 сделать скрипт, чтобы миграции автоматически сразу проводились, тогда этот файл не понадобится
docker-compose-database.yml
Outdated
services: | ||
edulytica_db: | ||
container_name: "EdulyticaDatabase" | ||
image: postgres:14.1-alpine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может повыше версию PG возьмем, 15-16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Поставил 16-alpine
src/edulytica_api/app.py
Outdated
# load_dotenv() | ||
# models.Base.metadata.create_all(bind=engine) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему остался закомментированный код?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Убрал
src/edulytica_api/crud/factory.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Новые и старые методы нужно покрыть докстрингами.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему сейчас осталось без реализации?
Я в requirements ничего не чистил, я просто добавил свои библиотеки и перезаписал файл, из-за этого некоторые библиотеки поменяли вид, например было "pyjwt", стало "PyJWT==2.10.1". |