-
Notifications
You must be signed in to change notification settings - Fork 3
[REFACTOR] 1차 QA #107
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
[REFACTOR] 1차 QA #107
Changes from all commits
1ab0db0
81ed889
0c87615
ba4211d
280fea4
58a58a1
9755565
8053bb4
2d36888
cc276a5
52982b8
b97c811
e61223a
9f60344
3d106e5
5a598ec
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ data class AllFeedResponse( | |
| @Serializable | ||
| data class AllFeedItem( | ||
| @SerialName("feedId") val feedId: Int, | ||
| @SerialName("creatorId") val creatorId: Int, | ||
| @SerialName("creatorId") val creatorId: Long, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chaincreatorId를 Long으로 확장한 변경 적절 — 교차 계층 호환성만 빠르게 점검해 주세요
필요 시 아래 스크립트를 루트에서 실행해 잔존 Int 사용 지점을 빠르게 확인할 수 있습니다. 필요하시면 스크립트 결과 기반으로 후속 패치(diff)까지 정리해 드리겠습니다. 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "=== Int 타입으로 남아있는 ID 필드 정의 검사 ==="
rg -n --type=kt -C2 $'\b(creatorId|userId)\s*:\s*Int\??\b'
echo
echo "=== toInt() 변환 사용 검사 (ID 관련) ==="
rg -n --type=kt -C2 $'\b(creatorId|userId)\b.*\.toInt\('
echo
echo "=== NavType.IntType 사용 검사 ==="
rg -n --type=kt -C3 'NavType\.IntType'
echo
echo "=== Bundle/SavedStateHandle Int 사용 패턴 검사 ==="
rg -n --type=kt -C2 $'\b(putInt|getInt)\(\s*"userId"'
rg -n --type=kt -C2 $'SavedStateHandle.*get<Int>\\("userId"\\)'
echo
echo "=== 함수/파라미터 시그니처에서 Int ID 잔존 검사 ==="
rg -n --type=kt -C2 $'\b(fun|val|var)\b[^\n]*\b(creatorId|userId)\s*:\s*Int\??\b'Length of output: 180 아래 스크립트로 🏁 Script executed: #!/usr/bin/env bash
set -euo pipefail
echo "=== Int 타입으로 남아있는 ID 필드 정의 검사 ==="
rg -n -C2 -g '*.kt' '\b(creatorId|userId)\s*:\s*Int\??\b'
echo
echo "=== toInt() 변환 사용 검사 (ID 관련) ==="
rg -n -C2 -g '*.kt' '\b(creatorId|userId)\b.*\.toInt\('
echo
echo "=== NavType.IntType 사용 검사 ==="
rg -n -C3 -g '*.kt' 'NavType\.IntType'
echo
echo "=== Bundle/SavedStateHandle Int 사용 패턴 검사 ==="
rg -n -C2 -g '*.kt' '\b(putInt|getInt)\(\s*"userId"'
rg -n -C2 -g '*.kt' 'SavedStateHandle.*get<Int>\("userId"\)'
echo
echo "=== 함수/파라미터 시그니처에서 Int ID 잔존 검사 ==="
rg -n -C2 -g '*.kt' '\b(fun|val|var)\b[^\n]*\b(creatorId|userId)\s*:\s*Int\??\b'Length of output: 3450 Int 타입 ID 필드 전부 Long으로 변경 필요 다음 데이터 모델 클래스에 여전히
추가로 아래 부분도 누락 없는지 검토 바랍니다:
위 수정 후 다시 직렬화·내비게이션 동작을 점검해주세요. 🤖 Prompt for AI Agents |
||
| @SerialName("creatorNickname") val creatorNickname: String, | ||
| @SerialName("creatorProfileImageUrl") val creatorProfileImageUrl: String?, | ||
| @SerialName("aliasName") val aliasName: String, | ||
|
|
||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이런 코드 수정이 많아 보이는데 Long으로 바꾼 이유가 있을까요? QA에서는 확인이 안되는디 |
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 에러 필드 수정 고생했습니다.. |
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이게 잘 확인은 안되는데 프로필 이미지를 터치했을 때 해당 유저의 피드 게시글로 이동하는거 맞나요? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
ID Int→Long 전환은 방향성 OK. 잔존 Int 참조/캐스팅 흔적 점검 제안
모델의 ID 타입 확장은 합리적입니다. 다만 호출부·콜백·네비게이션 파라미터에서 Int 시그니처가 남아 있거나 toInt()/toLong() 캐스팅으로 임시 대응한 곳이 없는지 확인 부탁드립니다. 아래 스크립트로 빠르게 훑어볼 수 있어요.
Also applies to: 33-34
🏁 Script executed:
Length of output: 764
추가 검증:
.kt파일 전체에서 Int → Long 변경 후 남아있는Int참조 및 캐스팅 여부 재검색🏁 Script executed:
Length of output: 13674
ID 타입 확장(Int→Long) 추가 반영 필요
모델·콜백·호출부에 여전히
Int필드 및.toLong()캐스팅이 남아 있어, 일관된Long시그니처로 변경하고 불필요한 캐스팅을 제거해주세요.점검 대상 파일 및 필드:
•
@SerializedName("userId") val userId: Int→Long•
val attendanceCheckId: Int,val creatorId: Int→Long•
@SerialName("feedId") val feedId: Int,@SerialName("creatorId") val creatorId: Int→Long•
val creatorId: Int→Long•
@SerialName("creatorId") val creatorId: Int→Long•
val creatorId: Int?,val replyId: Int?등 →Long?commentsViewModel.initialize(postId = feedId.toLong(), …)commentsViewModel.initialize(postId = post.postId.toLong(), …)⇒ 시그니처를
Long으로 변경 후.toLong()제거deleteComment(commentId.toLong()),likeComment(commentId.toLong(), …)등⇒ 파라미터 타입을
Long으로 변경하고 캐스팅 제거※ AdvancedImePadding.kt, SearchBookDetailScreen.kt 등의
toInt()호출은 ID 변환이 아닌 UI 좌표 로직이므로 그대로 두셔도 됩니다.🤖 Prompt for AI Agents