Conversation
…ocal configurations
…ocal configurations
Add implementation Dto
# Conflicts: # .run/MainApplication (local).run.xml # .run/StatApplication (local).run.xml # .run/StatApplication.run.xml
…ted: - Private: Events (Closed API for working with events) - Admin: Events (API for working with events) - Public: Events (Public API for working with events) - Admin: Users (API for working with users)
Sprint Sections 17 Stage 2
…ve functionalities
Sprint Sections 17 Stage 2
…ation properties for improved configuration
Sprint Sections 17 Stage 2 Requests
…oved clarity and consistency
…_svc_compilations
…r annotations for consistency
Sprint Sections 17 Stage 2 Compilations
There was a problem hiding this comment.
Pull Request Overview
PR направлен на реализацию функционала Stage 2: управление пользователями, событиями, заявками на участие и подборками, а также унификацию конфигурации и обработку ошибок.
- Добавлены домены, DTO, мапперы (MapStruct), репозитории и сервисы для категорий, событий, заявок и подборок; REST-контроллеры для публичных, приватных и админских API.
- Интеграция со stats-service (StatsClient), правки конфигураций (application.properties, docker-compose), централизованные ErrorHandler’ы.
- Перевод настроек на переменные окружения, добавление профилей test/local и SQL-скрипта схемы.
Reviewed Changes
Copilot reviewed 93 out of 94 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| stats/stats-server/src/main/resources/application.properties | Перевод на env переменные и структурирование блоков |
| stats/stats-server/src/main/resources/application-test.properties | Тестовый профиль с H2 в режиме PostgreSQL |
| stats/stats-server/src/main/resources/application-local.properties | Локальный профиль для stats-server |
| stats/stats-server/src/main/java/ru/practicum/model/EndpointHit.java | Рефакторинг Lombok-аннотаций и equals/hashCode |
| stats/stats-server/src/main/java/ru/practicum/exception/* | Централизованный ErrorHandler и модель ответа |
| stats/stats-server/src/main/java/ru/practicum/controller/StatsController.java | Валидация периода и логгирование |
| stats/stats-dto/src/main/java/ru/practicum/CreateEndpointHitDto.java | Уточнение JsonFormat |
| stats/stats-client/src/main/java/ru/practicum/StatsClient.java | Параметр unique как boolean, правки возврата и сообщения |
| main-service/src/main/resources/* | Переход на env, добавлены test/local профили, schema.sql |
| main-service/src/main/java/** | Добавлены домены, DTO, мапперы (MapStruct), сервисы и контроллеры для пользователей, событий, заявок, категорий и подборок |
| main-service/pom.xml | Добавлен MapStruct и плагин компилятора |
| compose.yaml, compose-local.yaml | Обновление имен сервисов/БД, переменных окружения и зависимостей |
| .run/* | Обновлены конфигурации запуска |
| .github/copilot-instructions.md | Политика комментариев на русском |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
…ging messages and DTOs for consistency
afomkina
suggested changes
Oct 20, 2025
…tants class; update DTOs and services for consistency
afomkina
approved these changes
Oct 21, 2025
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.
No description provided.