Repository navigation
docs(participant): 완료가 곧 완주라는 기준으로 스펙 · ERD · e2e 를 맞춘다 (ZAPP-194) - #600
Merged
Merged
Conversation
DB 구조 · studyclub-engineering:backendbeta @ fad7431 과 같습니다 — DB 구조 변경 없음. |
doxxx93
marked this pull request as ready for review
December 6, 2026 12:22
# Conflicts: # specs/study-participant/spec.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
요약
세은 님이 #597 코멘트에서 완주 기준을 클럽과 같이 「끝까지 남은 사람(
COMPLETED) = 완주」로 다시 정했습니다(ZAPP-194). 결석 때문에 완주를 막아야 하면 캡틴이 참여 중단으로 처리합니다. beta 코드는 이미 이 기준대로 동작합니다. 그래서 이 PR 은 #591 이 스펙 · ERD 에 적은 「일반 스터디는 결석 0회면 완주」 문구를 고치고, #597 에서 새 기준에도 맞는 e2e 단언만 옮깁니다. #597 은 머지하지 않고 닫았습니다. 문구는 세은 님의 정책 PR #599(POL-0002 · share 12-05)의 「완료가 곧 완주」와 맞췄습니다.변경 사항
beta 가 이미 새 기준인 근거
MyStudyQueryService.relation이 명부COMPLETED를relation = COMPLETED로 내려 줍니다. core-front 는 그 카드에 「완주」 배지와 「완주를 축하합니다!」 점수판을 붙이고, 참여 종료 탭에서 먼저 둡니다. MSW 목도 같습니다.findHistoriesByAccountIds가 이 기수를 뺀COMPLETED·WITHDRAWN가운데COMPLETED비율을 셉니다.AdminApplicationIntegrationTest가 50% 로 단언하고 있습니다.문서
specs/study-participant: 「완료와 완주」 절을 새 기준으로 고치고, 12-05 기준을 거둔 이유와 feat(participant): 완주를 결석 0번 기준으로 계산해 내 스터디와 신청자 이력에 담는다 (ZAPP-194) #597 을 머지하지 않았다는 기록을 남겼습니다. 기획 결정 표에 한 줄을 더하고, 미확정에서 「완주 계산」 · 「완료와 완주 나눠 표시」 · 「N06 대상」을 지웠습니다. N06 은 docs(policy): 완료가 곧 완주다 · 종료일은 끝나기 전이면 바꿀 수 있고 모집 마감일보다 뒤 #599 와 같이 POL-0013 그대로COMPLETED가 되면 보낸다고 적었습니다. 끝난 뒤에는 완주를 거둘 방법이 없다는 점은 미확정에 새로 적었습니다(아래 「기획 확인 필요」).specs/domain-events:study_participant.completed행의 「계산 규칙, 아직 없음」과 「완주한 사람에게만 보낼지 미정」을 고쳤습니다.docs/erd/STUDY_PARTICIPANT:COMPLETED행의 완주 설명을 고쳤습니다.docs/erd/STUDY_ATTENDANCE: 「완주율」로 적힌 칸과 공식은 사실 출석률입니다. 공식이 휴가를 분자에 넣고 있어 지금 산식(휴가는 분모에서 뺌)과도 달랐습니다. 출석률 가중치와 attendance 스펙 링크로 고쳤습니다.StudyParticipant.complete()javadoc 한 줄,.prober/tests/participant-completion.md의 CP-MY-01 괄호를 고쳤습니다.COMPLETED= 완주), study-application 스펙의completionRate, POL-0013 N06 행은 이미 새 기준과 맞습니다.e2e
joined-studies.spec.ts: 참여 종료 탭에서 완주 카드가 모두 참여 중단(「종료」 배지) 카드보다 먼저인지 봅니다. PRD 에 있는 규칙인데 테스트가 없었습니다. 고정 응답에도 참여 중단 1건을 더해 두었습니다.page.route고정 응답은 dev 서버의 MSW 서비스 워커에 가려져서, 화면은 목 시드를 그립니다. 이 사실을 파일 머리 주석에 남겼습니다.퍼널 · 계측은 해당 없음입니다. 분석 이벤트를 더하거나 바꾸지 않았습니다.
기획 확인 필요
ENDED·CLOSED)에서는 참여 중단이409 STUDY_ENDED로 막힙니다. 종료일이 지나면 1분 안에 명부가COMPLETED로 바뀌고 완료 행은 반 · 역할도 고칠 수 없어서, 결석을 늦게 알아챈 사람을 완주에서 뺄 방법이 없습니다. 운영 규칙(종료일 전에 처리)으로 둘지, 끝난 뒤에도 완주를 거두는 기능이 필요할지 정해 주세요. 스펙 미확정에 같은 내용을 적었습니다.화면
화면 변경은 없습니다. 참여 종료 탭의 화면 카탈로그 스크린샷(
my-joined--ended--desktop.png)도 지금 beta 화면과 비교해 허용 오차(2%) 안이라 다시 찍지 않았습니다.테스트
joined-studies.spec.ts11개 통과. 참여 종료 탭 정렬을 뒤집으면 새 단언이 실패하는 것을 확인했습니다.my-joined--ended [desktop]통과:domain:spotlessCheck·:domain:compileJava, e2e 파일 prettier · eslint 통과체크리스트
Self Review
/self-review실행 또는 수동)console.log/println/ 디버그 코드를 제거했다테스트
./gradlew test/pnpm test)보안 (PUBLIC 레포)
.env파일이 커밋에 포함되지 않았다기타
V{n}__*.sql마이그레이션을 같이 넣었다 (스키마 변경 없음)01-planning/stories/**또는frontend/apps/playground/**/spec.ts를 건드렸다면pnpm --filter playground export-specs --check통과 확인 (건드리지 않음)capture-screens로 찍은 캡처를01-planning/stories/{story}/screens/에 넣고 본문 「화면」 절에 붙였다 (프로토 변경 없음)