Skip to content

Sprint Sections 17 Stage 2 Categories - #8

Merged
Naz1anmak merged 1 commit into
main_svcfrom
main_svc_categories
Oct 16, 2025
Merged

Sprint Sections 17 Stage 2 Categories #8
Naz1anmak merged 1 commit into
main_svcfrom
main_svc_categories

Conversation

@Mult1k33

Copy link
Copy Markdown
Collaborator

Реализовано управление категориями:

  • функции создания, обновления, удаления(Admin);
  • функции получения категорий(Public).

@Naz1anmak
Naz1anmak requested a review from Copilot October 16, 2025 13:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements category management functionality for a Spring-based event management system. It provides complete CRUD operations for categories with both admin and public access endpoints.

  • Implemented category service with create, update, delete, and read operations
  • Added admin endpoints for category management and public endpoints for category retrieval
  • Integrated category functionality into event creation workflow

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
EventServiceImpl.java Integrated category service and removed manual category creation in event workflow
EventRepository.java Added method to check if events exist for a category (for deletion validation)
CategoryServiceImpl.java Full implementation of category service with validation and business logic
CategoryService.java Service interface defining category operations
CategoryRepository.java Repository interface with custom queries for category name operations
Category.java Updated entity model to allow public setters
CategoryMapper.java Added mapping method for category updates
PublicCategoryController.java Public REST endpoints for category retrieval
AdminCategoryController.java Admin REST endpoints for category CRUD operations

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread main-service/src/main/java/ru/practicum/event/service/EventServiceImpl.java Outdated
Comment thread main-service/src/main/java/ru/practicum/category/service/CategoryServiceImpl.java Outdated
Comment thread main-service/src/main/java/ru/practicum/category/service/CategoryServiceImpl.java Outdated
Comment thread main-service/src/main/java/ru/practicum/category/service/CategoryServiceImpl.java Outdated
@Naz1anmak Naz1anmak added the enhancement New feature or request label Oct 16, 2025
@Mult1k33
Mult1k33 force-pushed the main_svc_categories branch from 90fb1c9 to 39a8e98 Compare October 16, 2025 14:56
@Naz1anmak
Naz1anmak merged commit c5d91a5 into main_svc Oct 16, 2025
1 of 2 checks passed
@Naz1anmak
Naz1anmak deleted the main_svc_categories branch October 16, 2025 15:18
@Naz1anmak Naz1anmak changed the title Sprint Sections 17 Stage 2 Sprint Sections 17 Stage 2 Categories Oct 17, 2025
@Naz1anmak Naz1anmak added this to the Sprint 17 Stage 2 milestone Oct 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants