Skip to content

refactor(core): unify exception filter and resolve technical debt#22

Merged
soorq merged 2 commits into
feat/projectsfrom
fix/error-handling
Apr 19, 2026
Merged

refactor(core): unify exception filter and resolve technical debt#22
soorq merged 2 commits into
feat/projectsfrom
fix/error-handling

Conversation

@soorq
Copy link
Copy Markdown
Collaborator

@soorq soorq commented Apr 19, 2026

Closes #17

Что было сделано:

  • Унификация обработки исключений: - Реализован глобальный ExceptionFilter с единой структурой ответа.
    • Все ошибки теперь возвращаются в формате { success, error, details, meta }.
    • Поле retryable автоматически выставляется в true для серверных ошибок (5xx).
  • Валидация конфигурации:
    • Внедрена схема Zod для переменных окружения (.env).
    • Добавлены строгие проверки для JWT-секретов и параметров почтового сервера.
  • Работа с типами:
    • Удалены приведения к any в логике обработки ошибок.
    • Настроено расширение интерфейса FastifyRequest для типизации user без использования as.
    • Исправлены импорты типов напрямую из zod (ZodIssue, ZodError).
  • Технический долг:
    • Решено несколько TODO из кода.
    • Очищены неиспользуемые импорты и поправлена структура мета-данных (добавлен динамический выбор сервиса).

@soorq soorq merged commit b0552be into feat/projects Apr 19, 2026
1 check passed
@soorq soorq deleted the fix/error-handling branch April 19, 2026 21:56
soorq added a commit that referenced this pull request Apr 22, 2026
* chore(projects): initialize module boilerplate

* feat(projects): implement data access layer and database schema

* chore: update dependencies, add tests and enhance swagger styling

* feat(projects): implement CRUD, Swagger documentation and Zod validation

* refactor(teams): restructure team routes and modularize architecture

* refactor: split projects and teams into specialized controllers

* refactor(auth): split access and recovery controllers and fix bug

* refactor(user): separate profile and settings logic / bump bug with imports

* chore: restructure services and use type-only imports

* feat(project): add service logic, update entity and format code

* refactor(core): unify exception filter and resolve technical debt (#22)

* refactor(core): unify exception filter and resolve technical debt

* refactor: finalize unified error handling and sync test suites
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.

1 participant