Repository navigation
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
| @field:NotBlank | ||
| val content: String, | ||
| @field:Schema(description = "카드 썸네일 이미지 URL. 없으면 기본 그라데이션 노출.", example = "https://...", nullable = true) | ||
| val thumbnailUrl: String? = null, |
There was a problem hiding this comment.
URL이 이대로 박히면 CDN 적용도 가능 한가염??
기존에 File 쪽 썻던 코드랑 다른 것 같아서염
There was a problem hiding this comment.
좋은 지적 감사합니다 🙏 기존 File 컨벤션(storageKey 저장 → FileAccessUrlPort.resolve()로 조회 URL 변환)과 어긋나 있었습니다. 다음과 같이 반영했습니다 (9164e06):
- 엔티티는 전체 URL이 아니라
thumbnailStorageKey(S3 키)를 저장 - 요청은 다른 이미지 업로드와 동일하게
FileSaveRequest(thumbnail)로 받음 - 응답의
thumbnailUrl은FileAccessUrlPort.resolve()로 변환 → CDN 적용/도메인 교체 가능 - 마이그레이션(V23) 컬럼도
thumbnail_storage_key로 변경
덕분에 File 쪽과 일관되게 맞췄습니다. 감사합니다!
전체 URL 대신 storageKey를 저장하고 FileAccessUrlPort로 변환해 CDN 적용이 가능하도록 기존 File 컨벤션에 맞춤 (리뷰 반영) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
| fun toListResponse(profiles: List<UserProfileResponse>): UserProfilesResponse = UserProfilesResponse(profiles) | ||
| fun toListResponse( | ||
| profiles: List<UserProfileResponse>, | ||
| platformRole: PlatformRole? = null, |
There was a problem hiding this comment.
여기에서 얘를 반환해줘야하는 이유가 있나여??
다른 쪽까지 다 나갈 것 같은데
There was a problem hiding this comment.
확인해봤는데 me/profiles 한 군데에서만 쓰여서 다른 유저들한테는 새진 않는다고 합니다...! 근데 프로필 목록 응답에 계정 필드 끼는게 조금 어색한 것 같아서 유저 단위 응답으로 빼는 게 깔끔할 것 같은데 선호하는 위치가 있으실까요?_?
📌 Summary
서비스 전역 업데이트 소식(릴리즈 노트)을 작성·조회하는 API 구현 — 공개 조회(비로그인 포함) +
DEVELOPER전용 백오피스.📝 Changes
What
PlatformRole { DEVELOPER }+User.platformRole,GET /api/v4/users/me/profiles응답에platformRole노출publish/unpublish/update· 리포지토리 · 요약 추출기)GET /api/v4/release-notes(목록, keyword 검색, size 12),GET /api/v4/release-notes/{id}(상세) — 항상PUBLISHED만,DRAFT는 404DEVELOPER전용):/api/v4/admin/release-notes목록/상세(DRAFT 포함)·작성·수정(PUT)·상태변경(PATCH)·삭제FileOwnerType.RELEASE_NOTE추가(기존 presigned URL 재사용) · FlywayV23/V24/V25Why
clubId를 두지 않고, 동아리 단위Role(LEAD/ADMIN) 대신 플랫폼 권한(platformRole) 으로 작성 권한을 판단How
PlatformPermissionValidator)에서 수행: JWT가 토큰 타입만 authority로 싣는 구조라 Spring SecurityhasRole로 불가 → 기존 admin 패턴(ClubPermissionPolicy.requireAdmin)과 동일하게 처리. 미로그인 401 / 권한 없음 403SecurityConfig에서 GET만 permitAll,DRAFT는 어떤 경로로도 노출 안 함(404)summary는 외부 HTML 파서 의존성 없이 태그 제거 후 앞 100자. content 서버 sanitize는 작성자가 신뢰된DEVELOPER뿐이라 1차 범위에서 생략COALESCE(releasedAt, publishedAt) DESC, 백오피스createdAt DESC📸 Screenshots / Logs
💡 Reviewer 참고사항
V23~V25적용됩니다(기존 최신 V22).file.owner_type은 네이티브 MySQL ENUM이라RELEASE_NOTE추가 마이그레이션(V25)이 포함됩니다.DEVELOPER권한 부여 화면은 1차 범위 밖 → 운영에서는 DB로 직접 지정합니다.✅ Checklist
🤖 Generated with Claude Code