[fix] 관리자 로그인 브라우저 활동 로그 제외 - #31
Merged
Merged
Conversation
DevDon-iOS
marked this pull request as ready for review
September 16, 2026 07:06
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.
작업 내용
관리자 로그인 여부와 관계없이 접속 활동을 저장하던 문제를 수정합니다. 로그인 성공 시 브라우저에 전용 서명 쿠키를 발급하고
/api/activity에서 DB 접근 전에 제외합니다.검증 내용
npm run lint: 통과npm run typecheck: 통과npm test: 단위 테스트 20개 통과npm run build: production 빌드 통과node --env-file=.env.test --import tsx apps/web/scripts/migrate.ts: 격리 DB 마이그레이션 통과node --env-file=.env.test --import tsx --test apps/web/tests/admin-activity.integration.ts apps/web/tests/activity.integration.ts apps/web/tests/api.integration.ts: API·PostgreSQL 통합 테스트 3개 통과node --env-file=../../.env.test ../../node_modules/@playwright/test/cli.js test tests/browser/admin-activity.spec.ts: 헤드리스 브라우저 테스트 1개 통과git diff --check: 통과. 전체 변경 자체 리뷰 완료위험 및 제한
관련 이슈
Closes #30
운영 배포 결과
a86507231f0eebb83298f60907d8e9a7536acb1964a12ba9-4284-43b8-8748-27bfa33038a2: SUCCESS, healthcheck 통과