Skip to content

Conversation

@tape4
Copy link
Member

@tape4 tape4 commented Jul 8, 2025

No description provided.

tape4 added 2 commits July 8, 2025 03:50
- enable Spring Retry (`@EnableRetry`) and Async processing (`@EnableAsync`)
- extend `ProfileImageUpdatedEvent` to include `memberId`
- implement `ProfileImageUpdateListener`:
  * annotate `afterCommit` with `@Async`, `@Retryable(maxAttempts=3, backoff=2000)` and `@Transactional(propagation=REQUIRES_NEW)`
  * log current attempt/count via `RetrySynchronizationManager`
  * copy S3 object from `tempKey` → `fixedKey`, delete `tempKey`, then update member’s `profileImageKey`
  * add `@Recover` to record permanent failures in `ProfileImageDlqRepository` and emit error logs (Discord alert TODO)
  * add `afterRollback` listener to clean up orphan `tempKey` on transaction rollback
- create `ProfileImageDlq` JPA entity and `ProfileImageDlqRepository` for DLQ persistence
- refactor `FileServiceImpl`:
  * remove inline member update
  * stage upload to S3 under `tempKey`, save metadata with `fixedKey` placeholder
  * publish `ProfileImageUpdatedEvent` for AFTER_COMMIT promotion
  * enhance logging and add method-level Javadoc
- update `RegistrationController` to defer member onboarding until after file upload event
- refactor `MemberUpdateService` interface to accept `memberId` instead of `Member` object
- adjust unit test container to remove `MemberUpdateService` from `FileServiceImpl` builder
- Remove uploadProfileImage API and service method references
- Delete ProfileImageUpdatedEvent DTO and ProfileImageUpdateListener listener
- Remove uploadProfileImage/ getProfileImageUrl methods from CloudStorageService/AmazonS3BucketService
- Strip out profileImageKey fields from Member domain, entity, DTOs, controllers, tests
- Clean up DevTokenInitializer default profileImageKey initialization
- Update integration and unit tests to remove profile image upload and URL assertions
- Simplify MemberController/ProfileController/RegistrationController to no longer expect multipart file handling
@tape4 tape4 requested a review from SiwonHae as a code owner July 8, 2025 13:20
@tape4 tape4 merged commit e0c1e42 into develop Jul 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants