Skip to content

Conversation

@petrCher
Copy link
Member

@petrCher petrCher commented Dec 7, 2025

Изменения

Добавлены две ручки get и patch для админки граничных случаев тех. поддержки.

Детали реализации

Добавлен в schemas файл admin.py с pydantic схемами UserDebugCardGet и UserDebugCardUpdate для получения и обновления информации о пользователе для админки.
В utils добавлен файл admin.py с функциями, позволяющими обратиться к базе данных source="admin" для получения и обновления информации.
В makefile в make migrate перед alembic upgrade head добавлена активация виртиального окружения

Check-List

  • Вы проверили свой код перед отправкой запроса?
  • Вы написали тесты к реализованным функциям?
    Нет, но все было протестировано локально
  • Вы не забыли применить форматирование black и isort для Back-End или Prettier для Front-End?

@github-actions
Copy link

github-actions bot commented Dec 7, 2025

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
userdata_api
   __main__.py17170%1–26
   exceptions.py19195%18
userdata_api/models
   base.py65592%25–28, 76
   db.py59198%90
userdata_api/routes
   admin.py14379%25, 42–43
   category.py41490%38, 71–73
   exc_handlers.py20195%25
   param.py53885%39, 59, 98–101, 106, 129
   source.py30197%35
userdata_api/schemas
   base.py8450%6–9
   user.py24771%22–28
userdata_api/schemas/types
   scope.py24675%30–32, 37, 40, 42
userdata_api/utils
   admin.py261735%26–35, 52–86
   user.py85396%41, 88, 92
TOTAL5957887% 

Summary

Tests Skipped Failures Errors Time
57 0 💤 0 ❌ 0 🔥 3.365s ⏱️

@github-actions
Copy link

github-actions bot commented Dec 7, 2025

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link

github-actions bot commented Dec 7, 2025

💩 Code linting failed, use black and isort to fix it.

@petrCher petrCher requested a review from Zimovchik December 7, 2025 18:10
@github-actions
Copy link

github-actions bot commented Dec 7, 2025

💩 Code linting failed, use black and isort to fix it.

@github-actions
Copy link

github-actions bot commented Dec 7, 2025

💩 Code linting failed, use black and isort to fix it.

@petrCher petrCher changed the title Информация о пользователе [в процессе разработки] Информация о пользователе для админки тех. поддержки Dec 7, 2025
@petrCher petrCher requested a review from Zimovchik December 7, 2025 19:16
@petrCher petrCher self-assigned this Dec 8, 2025
@github-actions
Copy link

💩 Code linting failed, use black and isort to fix it.

@Zimovchik Zimovchik merged commit 82d1f3d into main Dec 17, 2025
2 checks passed
@Zimovchik Zimovchik deleted the add_prof_userinfo branch December 17, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Добавить GET и PATCH ручку на получение данных о юзере

5 participants