-
Notifications
You must be signed in to change notification settings - Fork 1
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
[feat] 멱등성키 적용을 통한 중복 결제 문제 해결 #153
The head ref may contain hidden characters: "feature/118_Dr-KoKo_Hyeon-Uk_\uBA71\uB4F1\uC131\uD0A4_\uC801\uC6A9"
Commits on Aug 22, 2024
-
[feat] redis를 이용하여 cart를 저장/조회/삭제하도록 구현 (#134)
* [feat] Redis 환경설정 파일 생성 - port 와 host를 받아 connection을 생성 - redisTemplate에 직렬화 도구로 key : string, value = GenericJackson2JsonRedisSerializer 로 설정 * [fix] Cart의 생성자를 protected에서 public으로 변경 * [fix] CaartService에서 customerId의 cart를 가져오는 로직을 supplier로 변경 * [feat] Redis전용 CartEntity와 CartItemEntity를 생성 * [feat] Redis를 이용해서 Cart를 영속하는 레포지토리 구현 * [test] Redis를 이용해서 Cart를 영속하는 레포지토리 테스트 * [fix] ContainerSettingTest 삭제 여러개의 test-container를 구동시키면 포트 충돌로 일단 삭제 * [fix] testcode 가 돌아갈 수 있도록 환경변수 추가, inmemory cart repository를 primary로 수정
Configuration menu - View commit details
-
Copy full SHA for c2cf4d6 - Browse repository at this point
Copy the full SHA c2cf4d6View commit details -
* [fix] 카트 도메인 엔티티 수정 * [feat] 카트 영속성 엔티티 구현 * [feat] DB를 사용하는 CartRepository 구현체 * [fix] CartService 오류 수정 Transactional 적용 orElse -> orElseGet : 데이터가 존재함에도 불구하고 저장되는 오류 수정 * [fix] 도메인 엔티티로 변환시 id값도 추가 * [refactor] 변수명 변경 * [fix] 생성자 접근제어자 protected * [test] JpaCartRepository 테스트 코드 작성
Configuration menu - View commit details
-
Copy full SHA for 8d43c2f - Browse repository at this point
Copy the full SHA 8d43c2fView commit details
Commits on Aug 23, 2024
-
[feat] 구매자는 카트를 조회할 수 있다 (#137)
* [feat] 조회하고자 하는 카트가 없을 때 발생시킬 예외 구현 * [feat] 구매자의 카트를 조회하는 Dao * [feat] 카트 조회 앤드포인트 * [feat] 카트를 조회할 수 있는 Dao를 Redis를 이용해서 구현 (#135) * [test] menu 더미를 저장하고 반환하는 메서드 추가 및 상점을 24시간 열려있도록 수정 * [feat] getter 및 생성자 추가 * [feat] redis용 dao를 임시로 inMemoryCartRepository를 이용해서 구현 * [test] RedisCartDao 테스트코드 추가 * [feat] CartItemInfo에도 getter 추가 * [fix] 테스트 이후 데이터를 롤백시키기 위해 @transactional 추가 * [fix] CartResponse의 amount를 Integer로 수정 * [feat] Jpa를 이용한 카트 조회 dao --------- Co-authored-by: 김현욱 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0c1986e - Browse repository at this point
Copy the full SHA 0c1986eView commit details -
Configuration menu - View commit details
-
Copy full SHA for d9c9816 - Browse repository at this point
Copy the full SHA d9c9816View commit details -
Configuration menu - View commit details
-
Copy full SHA for 32ecb91 - Browse repository at this point
Copy the full SHA 32ecb91View commit details -
[fix] CartItemEntity에 id가 null로 갱신되는 문제 해결
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bc161c8 - Browse repository at this point
Copy the full SHA bc161c8View commit details -
[fix] 의존 주입할 Bean을 application.yml에서 관리할 수 있도록 수정
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f393d9c - Browse repository at this point
Copy the full SHA f393d9cView commit details -
[feat] 중복 주문에 대한 Exception 생성 및 error code 갱신
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 24d8ccc - Browse repository at this point
Copy the full SHA 24d8cccView commit details -
[test] 중복 주문 동시성 테스트에 사용할 더미데이터 만드는 메서드 추가
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 833fa6c - Browse repository at this point
Copy the full SHA 833fa6cView commit details -
[test] 중복 주문 방지에 대한 동시성 테스트 시나리오 추가
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e534e18 - Browse repository at this point
Copy the full SHA e534e18View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14edb4c - Browse repository at this point
Copy the full SHA 14edb4cView commit details
Commits on Aug 24, 2024
-
[fix] OneToMany 관계에서 cascade를 사용하기 위해 mappedBy 사용
@joincolumn만 이용하면 CartEntity를 통해CartItemEntity를 영속화시키지 못한다.
Configuration menu - View commit details
-
Copy full SHA for 8d70ebf - Browse repository at this point
Copy the full SHA 8d70ebfView commit details
Commits on Aug 25, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 04bb3a0 - Browse repository at this point
Copy the full SHA 04bb3a0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 898034c - Browse repository at this point
Copy the full SHA 898034cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a308456 - Browse repository at this point
Copy the full SHA a308456View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d998a5 - Browse repository at this point
Copy the full SHA 9d998a5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93e994d - Browse repository at this point
Copy the full SHA 93e994dView commit details
Commits on Aug 26, 2024
-
[feat] 주문 시점에 배타락을 적용해서 문제를 해결 (#148)
* [feat] 카트 조회시 X-lock 적용 * [test] TransactionTemplate를 통해서 Cart를 조회
Configuration menu - View commit details
-
Copy full SHA for a2b0da5 - Browse repository at this point
Copy the full SHA a2b0da5View commit details -
[feat] 주문 시점에 분산락을 적용해서 문제를 해결한 버전 (#147)
* [feat] cartRepository의 findByCustomerId에 분산락을 적용한 버전 임시 * [feat] 분산락을 잡지 못했을 경우에 던지는 exception을 커스텀해서 던질 수 있도록 수정. * [fix] wait time 을 0초로 변경 - 중복 결제 요청들이 락을 다시 획득하기 위해서 기다릴 필요가 없음 --------- Co-authored-by: donghar <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ddf9c3b - Browse repository at this point
Copy the full SHA ddf9c3bView commit details -
Revert "[feat] 주문 시점에 배타락을 적용해서 문제를 해결 (#148)"
This reverts commit a2b0da5.
Configuration menu - View commit details
-
Copy full SHA for fa6980e - Browse repository at this point
Copy the full SHA fa6980eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 21f03ce - Browse repository at this point
Copy the full SHA 21f03ceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cbb09a - Browse repository at this point
Copy the full SHA 1cbb09aView commit details
Commits on Aug 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 7247757 - Browse repository at this point
Copy the full SHA 7247757View commit details -
- 기존 테스트환경에서 redis connection 오류를 수정한 main 브랜치를 머지하며 생긴 conflict 해결
Configuration menu - View commit details
-
Copy full SHA for ef4694a - Browse repository at this point
Copy the full SHA ef4694aView commit details
Commits on Aug 28, 2024
-
[feat] 멱등성키에 대한 확인을 할 수 있는 aop 구현
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for be96bc4 - Browse repository at this point
Copy the full SHA be96bc4View commit details -
[fix] 키의 prefix로만 값을 가져오는 오류 수정
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 54fd89b - Browse repository at this point
Copy the full SHA 54fd89bView commit details -
[feat] 멱등성키가 존재하지 않은 경우에 던지는 exception 생성 및 ErrorCode 생성
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8c73dfb - Browse repository at this point
Copy the full SHA 8c73dfbView commit details -
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dc9f51e - Browse repository at this point
Copy the full SHA dc9f51eView commit details -
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ff29834 - Browse repository at this point
Copy the full SHA ff29834View commit details -
[feat] 이미 완료된 주문을 다시 요청했을 때의 exception 추가
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 123f606 - Browse repository at this point
Copy the full SHA 123f606View commit details -
[feat] 멱등한 요청에 대해 exception을 던질지, 기존의 응답을 던질지 선택할 수 있도록 어노테이션 파라미터 추가…
… 및 적용 Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 075f2a3 - Browse repository at this point
Copy the full SHA 075f2a3View commit details -
[fix] 기존 같은 응답을 검증하는 테스트코드를 이미 완료된 주문이라는 응답을 검증하는 테스트코드로 수정
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6155a5e - Browse repository at this point
Copy the full SHA 6155a5eView commit details -
[feat] 결제 진행중, 이미 완료된 결제에 대한 모달 추가
Co-authored-by: Dr-KoKo <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eccaccc - Browse repository at this point
Copy the full SHA eccacccView commit details