feat: 투표 결과 7일 보관 (생성자 전용 접근) - #6
Merged
Merged
Conversation
- Extend Redis TTL by 7 days (RESULT_RETENTION_TTL) so data persists after poll closes - Use expires_at for deadline logic, separate from Redis TTL - Block voting on expired polls (410 Gone) - Require share_token for result access after expiry - Filter expired polls from public /polls listing - Keep expired polls in /my-polls with "Closed" badge - Add i18n messages for poll closed state (ko/en)
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.
Summary
expires_at기준으로 마감 판단, Redis TTL과 분리/polls공개 목록에서 만료 투표 자동 제외/my-polls에서 만료 투표 유지 + "마감됨" 배지 표시Changes
RESULT_RETENTION_TTL추가,is_room_expired()헬퍼, 공개 목록 필터링is_expired필드 응답is_expired타입 추가,getResults에share_token파라미터Test plan
expires_at이후 투표 시도 → 410 응답expires_at이후 share_token 없이 결과 조회 → 410expires_at이후 share_token으로 결과 조회 → 정상/polls목록에서 만료 투표 미노출/my-polls에서 만료 투표 "마감됨" 배지 + 결과 확인 가능