Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GBS-23 | Implemented category management functionalities #163

Merged
merged 30 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
da60464
feat: Implemented category management functionalities
aleyna-yildizli Oct 4, 2024
1cea198
fix: Corrected typos in various files
aleyna-yildizli Oct 4, 2024
5e995a9
Merge remote-tracking branch 'origin/main' into enhancement/category-…
agitrubard Oct 5, 2024
8fa5480
chore: Apply review suggestions and minor adjustments to category con…
aleyna-yildizli Oct 5, 2024
774ded9
feat: Add category summary endpoint
aleyna-yildizli Oct 12, 2024
f0aabf6
GBS-23 | `category:get:list` Permission Has Been Renamed as `category…
agitrubard Oct 12, 2024
3e659c0
GBS-23 | `category:get:id` Permission Has Been Renamed as `category:d…
agitrubard Oct 12, 2024
3cde984
GBS-23 | Descriptions of Category Permissions Have Been Refactored
agitrubard Oct 12, 2024
7601367
GBS-23 | Category Endpoints Have Been Renamed
agitrubard Oct 12, 2024
94b97ee
GBS-23 | `CategoryController.getCategoryList()` Method Has Been Renam…
agitrubard Oct 12, 2024
36740af
GBS-23 | `CategoryController.getCategorySummary()` Method Has Been Re…
agitrubard Oct 12, 2024
f63d855
GBS-23 | `@Validated` Annotation Has Been Added to `CategoryControlle…
agitrubard Oct 12, 2024
7798878
GBS-23 | `findAllSummary()` Method Has Been Removed Because It's Dupl…
agitrubard Oct 12, 2024
e13c593
GBS-23 | `@Builder` Annotation Has Been Removed from `CategoryRespons…
agitrubard Oct 12, 2024
c7398df
GBS-23 | `parentId` Field Has Been Added to `CategorySummaryResponse`…
agitrubard Oct 12, 2024
502c149
GBS-23 | `createdBy`, `createdAt`, `updatedBy`, `updatedAt` Fields Ha…
agitrubard Oct 12, 2024
3f7d310
GBS-23 | `CategoryServiceImpl.findAll()` Method Has Been Refactored
agitrubard Oct 12, 2024
127672b
GBS-23 | Pagination and Order Have Been Integrated to Category List E…
agitrubard Oct 12, 2024
f2b0c2f
GBS-23 | `slug` Variable Has Been Deleted from `CategoryCreateRequest…
agitrubard Oct 12, 2024
af207e8
GBS-23 | `PostUtil` Class Has Been Renamed as `SlugUtil`
agitrubard Oct 12, 2024
184d9d8
GBS-23 | `SlugUtil` Class Has Been Moved to `common.util` Package
agitrubard Oct 12, 2024
15cc224
GBS-23 | Slug Has Been Generated in Category Create Flow
agitrubard Oct 12, 2024
88a0164
GBS-23 | Slug Has Been Generated in Category Update Flow
agitrubard Oct 12, 2024
669a973
GBS-23 | Unique Constraint Has Been Added to `name` and `slug` Fields…
agitrubard Oct 12, 2024
dcd6895
GBS-23 | `V1__ddl.sql` File Has Been Formatted
agitrubard Oct 12, 2024
a627630
GBS-23 | `CategoryToCategorySummaryResponseMapper` Class Has Been Ren…
agitrubard Oct 12, 2024
273a9f3
GBS-23 | `CategoryEntityToCategoryMapper` Class Has Been Renamed as `…
agitrubard Oct 12, 2024
f56e446
GBS-23 | `CategoryCreateRequestToCategoryEntityMapper` Class Has Been…
agitrubard Oct 12, 2024
739d784
Merge remote-tracking branch 'origin/main' into enhancement/category-…
agitrubard Oct 12, 2024
29e67c4
GBS-23 | `CategoryServiceImpl.findById()` Method Has Been Refactored …
agitrubard Oct 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
GBS-23 | category:get:list Permission Has Been Renamed as `category…
…:list`
  • Loading branch information
agitrubard committed Oct 12, 2024
commit f0aabf63d4f1fce3df82eb22c776cbb90da232c3
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@
import org.gelecekbilimde.scienceplatform.post.model.response.CategorySummaryResponse;
import org.gelecekbilimde.scienceplatform.post.service.CategoryService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

Expand All @@ -26,7 +33,7 @@ class CategoryController {


@GetMapping
@PreAuthorize("hasAuthority('category:get:list')")
@PreAuthorize("hasAuthority('category:list')")
SuccessResponse<List<CategoryResponse>> getCategoryList() {
List<Category> categories = categoryService.findAll();
List<CategoryResponse> categoryResponses = categoryToResponseMapper.map(categories);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/db/migration/V2__dml.sql
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ values ('d7a49ea4-fae1-4dac-8e07-c1d823841b50', 'Kendi Adına Var Olan Rol Başv
'role:application:cancel:self', false, 'gelecekbilimde', current_timestamp);
insert into gb_permission (id, description, name, is_hidden, created_by, created_at)
values ('5a32defb-14c0-44b2-b518-fb482ca768e6', 'Kategori listesini görüntüler',
'category:get:list', false, 'gelecekbilimde', current_timestamp);
'category:list', false, 'gelecekbilimde', current_timestamp);
insert into gb_permission (id, description, name, is_hidden, created_by, created_at)
values ('9e25ae21-9b35-4511-bdd5-c0e2ec96b8d4', 'ID ile kategori bilgilerini görüntüler',
'category:get:id', false, 'gelecekbilimde', current_timestamp);
Expand Down