Skip to content

CHORE: Импорт кодовой базы и истории из командного репозитория#1

Merged
impatient0 merged 85 commits intomainfrom
import-old-origin
Sep 2, 2025
Merged

CHORE: Импорт кодовой базы и истории из командного репозитория#1
impatient0 merged 85 commits intomainfrom
import-old-origin

Conversation

@impatient0
Copy link
Owner

Описание

Этот Pull Request переносит всю кодовую базу и полную историю коммитов из предыдущего командного репозитория (java-explore-with-me-plus) в данный дипломный репозиторий (java-plus-graduation).

Процесс переноса:

  1. Старый репозиторий был добавлен как временный remote (old-origin).
  2. Ветка main из old-origin была слита в промежуточную ветку import-old-origin с использованием флага --allow-unrelated-histories.
  3. В процессе слияния были вручную разрешены конфликты для файлов, существовавших в обоих репозиториях (например, README.md, ewm-main-service-spec.json).

Важные моменты:

  • Сохранена вся история Git из старого проекта.
  • Сохранены критически важные файлы из нового репозитория, в частности, содержимое директории .github с настроенными workflows для автоматических проверок.

После мержа этого PR ветка main будет содержать финальный объединенный код и полную историю коммитов, готовые для дальнейшей работы над дипломным проектом.

impatient0 and others added 30 commits May 5, 2025 18:52
Ознакомительный файл структуры базы schema.sql
Ознакомительный файл структуры базы schema.sql
Ознакомительный файл структуры базы schema.sql
Ознакомительный файл структуры базы schema.sql
Ознакомительный файл структуры базы schema.sql
Ознакомительный файл структуры базы schema.sql
Добавление классов DTO
Добавление README и локальной конфигурации запуска
Создание stub-имплементации контроллера
SergikF and others added 29 commits May 22, 2025 23:43
# Conflicts:
#	main-service/src/main/java/ru/practicum/explorewithme/main/controller/priv/PrivateEventController.java
Получение запросов на участие в событии текущего пользователя #53
…54 (#75)

* PRIVATE-EVENTS: Изменение статуса заявок (подтверждение/отклонение) #54

* Исправление ошибок стиля

* Исправление ошибок кода

* Исправление ошибок кода

* Исправление ошибок кода

* Исправление ошибок кода

* Исправление ошибок кода выявленных при помощи постмана

* изменение кода по замечаниям и не только
Изменение способа отказа заявок в случае отсуствия свободных мест
List<ParticipationRequest> updatePendingRequestsToRejected(Long eventId)

* Изменена логика "свободных мест"

* Исправление стиля

* Изменение логики отказа при отсутствии свободных мест

* Изменение логики отказа при отсутствии свободных мест

* Изменение логики отказа при отсутствии свободных мест
* проба

* реализовала get /complications and get/complications{compd}

* стиль

* правки

* добавила аннотацию билдер

* закомментила тест

* стиль

* добавила админ контроллер

* добавила еще один контроллер

* это кошмар

* :)

* откат изменений

* ошибки 7, 8, 10, 11

* ошибка1

* ошибка2

* ошибка4

* ошибки56

* откат изменений

* пробую исправить дату

* откат изменений

* правки на pom.xml

* правки1

* правки2

* правки3

* удалила изменения в statService

* разбираюсь с датой

* test now passes with correct date format

* reset "stats-service" to main branch version

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* create the hit logging aspect

* apply the stat aspect to relevant controller methods

* change logging level for local config

* change the way StatsClient is pulled

* add unit tests for hit logging aspect

* fix hit stat aspect to correctly process the IP header

* add PublicEventController tests

* fully implement view & request stats in EventServiceImpl

* remove stubbings from mapper

* add more unit tests for EventServiceImpl

* sort by views manually as DB doesn't have views data

* add more EventService integration tests

* update EventMapper tests

* remove redundant argument from service methods

* improve onlyAvailable filtering efficiency

* set views and confirmedRequests in getEventsAdmin

* switch to @formula for confirmedRequests

* add validation to DTOs because tests expect 400 even though API contract clearly states 409

* update EventMapper tests

* cleanup

* fix test not persisting entities for some reason

* cleanup

* update README.md

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* make repository methods return pages instead of lists

* remove redundant field

* cleanup

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
Этап 2: Реализация основного сервиса (Explore With Me)
* add the "commentsEnabled" flag to Event

* create Comment entity

* create Comment DTOs

* add comment repository and mapper

* create CommentMapper unit tests

* checkstyle

* add empty postman collection to pass checks

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* COMMENTS-PUBLIC: Получение комментариев к событию
#85
Первичное исполнение без тестов.

* Исправление стиля.

* Исправление замечаний и добавление тестов

* Исправление стиля
… #86 (#97)

* COMMENTS-PRIVATE: Создание комментария пользователем

* COMMENTS-PRIVATE: Обновление своего комментария

* fixiki

* fixiki

* правки

* правки

* fixiki
Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* COMMENTS-PRIVATE: Получение списка своих комментариев

* правки
…#103)

* fix comment update timestamp in server response

* might as well

* update tests to interact with correct repository method

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* добавила эндпоинты на удаление коммента

* стиль

* правки

* стиль
* add admin search params and update service interface

* implement admin comment search

* add/refactor integration tests for CommentServiceImpl

* fix interaction with null predicate (also in EventService)

* update CommentServiceImpl unit tests

* implement the admin comment search endpoint

* create unit tests for event admin controller

* fix stats-local launch config

* add `@Positive` constraints to request parameters

* remove explicit empty list check

* remove explicit empty list check

* cleanup

* uncomment service unit tests

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* create admin dto for comments

* add new mappings

* update mapper tests

* make service return admin dto for admin methods

* make controller respond with admin dto for admin endpoints

* update tests to use correct dto

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
* create tests for comments endpoints

* add more test for 400 Bad Request scenarios

---------

Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
Co-authored-by: Pepe Ronin <ivanpetrovskiy98@gmail.com>
Этап 3: Реализация дополнительной функциональности "Комментарии к событиям"
update specs links
# Conflicts:
#	.github/workflows/api-tests.yml
#	ewm-main-service-spec.json
#	pom.xml
@impatient0 impatient0 merged commit 318f9f1 into main Sep 2, 2025
2 of 4 checks passed
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.

5 participants