Skip to content

Conversation

@Jeongminyooa
Copy link
Collaborator

@Jeongminyooa Jeongminyooa commented Jun 8, 2025

#️⃣연관된 이슈

#81

📝작업 내용

  • thumbnailUrl 필드 추가
    • 배포 이후 thumbnail_url 데이터 필드 값 수정 필요 (DB)
  • 꾸미기 탭 진입 시(/reward/edit) 수정
  • 미사용 owned 필드 삭제
  • isHidden 필드 추가(히든 아이템일 때 true)
  • 획득한 아이템에 대해서 최신순 정렬
  • 기록 조회 시, 기록이 없는 케이스에서 꾸미기 아이템 response 누락 수정
  • userEquippedItem이 여러개 일때 최신 기록을 불러오도록 수정

추가 사항

- 꾸미기 아이템 저장 시, 여러개의 데이터가 저장되거나 userItem이 중복으로 저장되는 이슈 해결해야 함.
=> 우선 예상되는 원인은 네트워크 등 알 수 없는 원인으로 userEquippedItem에 대한 최초 요청으로 동시 요청이 들어왔을 때, userEquippedItemRepository.findTopByUserAndSavedAtInCurrentMonth의 결과가 잡히지 않고 중복 데이터가 들어오게 됨..

  • locks 맵에 userKey별로 락 오브젝트를 만들어 동시성 제어
  • 여러 사용자 요청 동시 처리 가능, 각 사용자는 별도 락으로 보호

        1. 미사용 owned 필드 삭제
        2. isHidden 필드 추가(히든 아이템일 때 true)
        3. 획득한 아이템에 대해서 최신순 정렬
@Jeongminyooa Jeongminyooa requested a review from k906506 June 8, 2025 10:55
@Jeongminyooa Jeongminyooa self-assigned this Jun 8, 2025
@Jeongminyooa Jeongminyooa added the bug Something isn't working label Jun 8, 2025
@github-actions
Copy link

github-actions bot commented Jun 8, 2025

Unit Test Results

1 tests   1 ✔️  0s ⏱️
1 suites  0 💤
1 files    0

Results for commit 9f47a8e.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@k906506 k906506 left a comment

Choose a reason for hiding this comment

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

고생하셨습니당 👍

@Jeongminyooa Jeongminyooa merged commit 89a0f2d into dev Jun 8, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants