Closed halucinor closed 1 year ago
In GitLab by @halucinor on Feb 16, 2023, 13:23
requested review from @rkdud1108
In GitLab by @halucinor on Feb 16, 2023, 17:41
added 1 commit
In GitLab by @halucinor on Feb 16, 2023, 17:51
added 1 commit
In GitLab by @rkdud1108 on Feb 17, 2023, 10:52
Commented on src/main/java/com/gabia/bshop/controller/ItemController.java line 28
final 키워드 추가 부탁드립니다~
In GitLab by @rkdud1108 on Feb 17, 2023, 11:24
Commented on src/main/java/com/gabia/bshop/entity/ItemOption.java line 96
이 부분 merge가 잘못된 거 같아요ㅠ
추가된 코드부분이 삭제 되어야 되고 this.stockQuantity -= orderCount;
이게 맞는 코드입니다.
In GitLab by @rkdud1108 on Feb 17, 2023, 11:32
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 31
ITEMOPTION 사이의 _는 빼는 게 맞을 것 같습니당
In GitLab by @rkdud1108 on Feb 17, 2023, 11:35
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 35
위에 삭제된 에러메세지는 제가 작성한 에러메세지 같은데..
주문 생성할 때 item과 itemoption id값 모두 검증해서 이름을 저렇게 사용했던 건데
혹시 수정하신 에러메세지를 아이템 로직쪽에서도 사용하는 부분이 있으신 걸까요?
In GitLab by @rkdud1108 on Feb 17, 2023, 13:46
Commented on src/test/java/com/gabia/bshop/service/ItemServiceTest.java line 130
동사형으로 변경 부탁드립니다.
In GitLab by @rkdud1108 on Feb 17, 2023, 13:52
Commented on src/main/java/com/gabia/bshop/dto/response/ItemOptionResponse.java line 5
카멜케이스가 적용되지 않았습니당
In GitLab by @rkdud1108 on Feb 17, 2023, 14:54
Commented on src/main/java/com/gabia/bshop/dto/request/ItemImageCreateRequest.java line 11
@Builder
public record ItemImageDto(
@NotNull(message = "이미지 ID는 필수 입니다.")
Long id,
@NotNull(message = "url 은 필수 입니다.")
String url) {
}
ItemImageDto는 url값이 Not Null인데 List에 대해서는 null체크를 하지 않은 이유가 있나요?
In GitLab by @halucinor on Feb 17, 2023, 16:20
added 7 commits
In GitLab by @halucinor on Feb 17, 2023, 16:21
marked the checklist item Item CRUD 기능 개선 as completed
In GitLab by @halucinor on Feb 17, 2023, 16:21
marked the checklist item ItemOption CRUD 기능 구현 as completed
In GitLab by @halucinor on Feb 17, 2023, 16:21
marked the checklist item ItemImage CRUD 기능 구현 as completed
In GitLab by @halucinor on Feb 17, 2023, 16:21
marked the checklist item imageupload 기능 구현 as completed
In GitLab by @halucinor on Feb 17, 2023, 16:21
marked the checklist item 인증/인가 기능 추가 as completed
In GitLab by @halucinor on Feb 17, 2023, 16:30
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 35
optionId
Not found 에러를 처리하기 위해 excepion을 작성했는데 말씀하신 기능을 적용하기 위해 필요할거 같네요
제가 지운부분은 복구해놓고 ITEM_ITEMOPTION_NOT_FOUND_EXCEPTION
을 사용하는 부분도 다시 복원해 놓겠습니다
In GitLab by @halucinor on Feb 17, 2023, 16:33
Commented on src/main/java/com/gabia/bshop/dto/request/ItemImageCreateRequest.java line 11
NotNull 이 누락된거 같습니다 수정해서 반영하겠습니다
In GitLab by @halucinor on Feb 17, 2023, 16:39
Commented on src/main/java/com/gabia/bshop/entity/ItemOption.java line 96
changed this line in version 5 of the diff
In GitLab by @halucinor on Feb 17, 2023, 16:39
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 35
changed this line in version 5 of the diff
In GitLab by @halucinor on Feb 17, 2023, 16:39
added 4 commits
In GitLab by @rkdud1108 on Feb 18, 2023, 14:45
Commented on src/main/java/com/gabia/bshop/service/ItemOptionService.java line 72
변경 감지 기능을 이용하면 save를 하지 않아도 될 거 같아요.
public OrderUpdateStatusResponse updateOrderStatus(final OrderUpdateStatusRequest orderUpdateStatusRequest){
final Order order = findOrderById(orderUpdateStatusRequest.orderId());
order.updateOrderStatus(orderUpdateStatusRequest.status());
return OrderMapper.INSTANCE.orderToOrderUpdateStatusResponse(order);
}
참고 코드 남겨 놓겠습니다.
In GitLab by @halucinor on Feb 20, 2023, 09:39
Commented on src/main/java/com/gabia/bshop/controller/ImageController.java line 23
이미지 업로드 시 일반사용자도 업로드가 가능해야함
In GitLab by @halucinor on Feb 20, 2023, 09:45
Commented on src/main/java/com/gabia/bshop/dto/request/ItemChangeRequest.java line 16
공백 제거
In GitLab by @halucinor on Feb 20, 2023, 09:51
Commented on src/main/java/com/gabia/bshop/entity/Item.java line 64
생성자에서 false 로 넣어주기
In GitLab by @halucinor on Feb 20, 2023, 09:54
Commented on src/main/java/com/gabia/bshop/repository/ItemOptionRepository.java line 16
id -> itemId
TODO : N + 1 query
In GitLab by @halucinor on Feb 20, 2023, 10:56
added 1 commit
In GitLab by @halucinor on Feb 20, 2023, 10:57
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 31
네 수정해서 반영하겠습니다.
In GitLab by @halucinor on Feb 20, 2023, 11:15
Commented on src/main/java/com/gabia/bshop/repository/ItemOptionRepository.java line 16
In GitLab by @halucinor on Feb 20, 2023, 11:17
Commented on src/test/java/com/gabia/bshop/service/ItemServiceTest.java line 130
changed this line in version 7 of the diff
In GitLab by @halucinor on Feb 20, 2023, 11:17
Commented on src/main/java/com/gabia/bshop/dto/response/ItemOptionResponse.java line 5
changed this line in version 7 of the diff
In GitLab by @halucinor on Feb 20, 2023, 11:17
Commented on src/main/java/com/gabia/bshop/controller/ImageController.java line 23
changed this line in version 7 of the diff
In GitLab by @halucinor on Feb 20, 2023, 11:17
Commented on src/main/java/com/gabia/bshop/dto/request/ItemChangeRequest.java line 16
changed this line in version 7 of the diff
In GitLab by @halucinor on Feb 20, 2023, 11:17
Commented on src/main/java/com/gabia/bshop/entity/Item.java line 64
changed this line in version 7 of the diff
In GitLab by @halucinor on Feb 20, 2023, 11:17
added 1 commit
In GitLab by @haaeee on Feb 20, 2023, 11:31
Commented on src/main/java/com/gabia/bshop/controller/ImageController.java line 25
final 키워드 추가욥!
In GitLab by @haaeee on Feb 20, 2023, 11:31
Commented on src/main/java/com/gabia/bshop/controller/ItemImageController.java line 48
requestBody에 itemId가 담기는 것이 아닌 PathVariable로 뺴는 것이 RESTFul 에 더 적합한 것 같습니다!
In GitLab by @halucinor on Feb 20, 2023, 12:07
Commented on src/main/java/com/gabia/bshop/controller/ItemImageController.java line 48
In GitLab by @halucinor on Feb 20, 2023, 13:53
Commented on src/main/java/com/gabia/bshop/exception/ErrorCode.java line 31
changed this line in version 8 of the diff
In GitLab by @halucinor on Feb 20, 2023, 13:53
Commented on src/main/java/com/gabia/bshop/repository/ItemOptionRepository.java line 16
changed this line in version 8 of the diff
In GitLab by @halucinor on Feb 20, 2023, 13:53
Commented on src/main/java/com/gabia/bshop/controller/ImageController.java line 25
changed this line in version 8 of the diff
In GitLab by @halucinor on Feb 20, 2023, 13:53
added 2 commits
In GitLab by @halucinor on Feb 20, 2023, 13:54
Commented on src/main/java/com/gabia/bshop/controller/ImageController.java line 25
확인 감사합니다~ 수정했습니다 :)
In GitLab by @halucinor on Feb 20, 2023, 13:54
Commented on src/main/java/com/gabia/bshop/controller/ItemImageController.java line 48
해당 내용 적용해서 컨트롤러 수정했습니다.
In GitLab by @halucinor on Feb 20, 2023, 13:55
Commented on src/main/java/com/gabia/bshop/service/ItemOptionService.java line 72
참고해서 update
에 관련된 내용들 더티채킹을 사용할 수 있도록 수정했습니다.
In GitLab by @halucinor on Feb 20, 2023, 13:55
Commented on src/main/java/com/gabia/bshop/dto/response/ItemOptionResponse.java line 5
확인 감사합니다. 적용 후 수정했습니다.
In GitLab by @halucinor on Feb 20, 2023, 13:55
Commented on src/test/java/com/gabia/bshop/service/ItemServiceTest.java line 130
변경했습니다!
In GitLab by @halucinor on Feb 20, 2023, 15:33
added 1 commit
In GitLab by @halucinor on Feb 20, 2023, 16:07
added 1 commit
In GitLab by @haaeee on Feb 20, 2023, 16:56
Commented on src/main/java/com/gabia/bshop/controller/ItemImageController.java line 48
확인하였습니다!
In GitLab by @halucinor on Feb 16, 2023, 13:23
_Merges feature/item_curd2 -> develop
작업 내용
주의사항
인증/인가 TBDIssues #20 #21 #22 #37 #36