Repository navigation
chore: actualize main from dev - #189
Merged
Merged
Conversation
Feat/openapi: fix Box status according to userflow and design
Feat/server: add API server
Feat/16: docker-compose
- GitHub Actions: lint (golangci-lint), test, build - OpenAPI: ServiceErrorResponse (errors[]), 401/403, описание формата ошибок - apierrors: HTTPStatus, Messages, WriteError для единого формата ответов - models: ErrUnauthorized, ErrForbidden, ErrCache - Репозитории: только доменные ошибки (без SQL), checkError пробрасывает 401/403 - user_repository: BeginTxx, GetContext в IsAdmin, поля password_hash/role/status под миграции - Тесты: config skip без конфига, metrics init и services в booking_test, user_test в pkg repository, миграции (goose Up), исправление бакетов metrics, сохранение CreatedAt в session - Конфиг: get_updates_timeout, RUN_MODE api_only, скрипты и docker-compose Made-with: Cursor
- go.mod: go 1.25.6 → 1.22 для совместимости с golangci-lint в CI - migrations: в Down добавлен явный DROP INDEX для всех индексов (idx_users_telegram_id, idx_available_slots_service_date, idx_bookings_*), чтобы откат миграций был симметричным - internal/apierrors: комментарии про вызов из middleware (HTTPStatus/WriteError предполагаются в middleware) - internal/shutdown: замена wg.Go на sync.WaitGroup Add/Done, сохранён сбор всех ошибок через errChan и errors.Join Made-with: Cursor
- internal/shutdown: снова wg.Go() вместо Add/Done (API Go 1.25) - cmd/bot: wg.Go() для API-сервера и апдейтов, u := update в цикле - CI: golangci-lint version: v2.4.0 (собран с Go 1.25, под проект go 1.25+) Made-with: Cursor
Новые файлы: - migrations/20260227092307_create_applications_table.sql: ENUM-типы и таблица applications - internal/database/repository/application_repository.go: CreateApplication и GetApplications - internal/database/repository/application_repository_test.go: интеграционные тесты через testcontainers - internal/api/application_handler.go: POST /api/v1/applications, GET /api/v1/applications Изменения в существующих файлах: - internal/models/models.go: Application-типы, структуры и DTO - cmd/bot/main.go: запуск API-сервера (был TODO-комментарий) Made-with: Cursor
Новые файлы: - migrations/20260227092307_create_applications_table.sql: ENUM-типы и таблица applications - internal/database/repository/application_repository.go: CreateApplication и GetApplications - internal/database/repository/application_repository_test.go: интеграционные тесты через testcontainers - internal/api/application_handler.go: POST /api/v1/applications, GET /api/v1/applications Изменения в существующих файлах: - internal/models/models.go: Application-типы, структуры и DTO Made-with: Cursor
Made-with: Cursor
feat/74: before clean - add authentication, migrations
Resolve all cherry-pick conflicts: align package names (service vs api), add missing types (RefreshToken, CORSConfig, LoginRequest/Response), consolidate model imports (dbmodels -> models), fix apierrors mappings. Made-with: Cursor
Made-with: Cursor
feat/pprof: add pprof, db conn pool
Fix/openapi: oas and scalar
feat/176: add Grafana
fix docker compose
feat/176: del networks
fix/scripts: add creationg grafana folders to script
feat/pprof: add port in prod docker compose
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR актуализирует main до текущей стабильной версии приложения.