[병합] 챌린지 오류 수정 후 메인서버로 배포 - #239
Closed
cho-ja-young wants to merge 31 commits into
Closed
cho-ja-young wants to merge 31 commits into
cho-ja-young wants to merge 31 commits into
Conversation
feat: github actions CI/CD deploy 자동화 구축
fix: deploy file error
fix: deploy error
fix: deploy cd error
fix: deploy.yml 이름 형식 수정
fix: deploy file 코드 수정
fix: deploy 파일 수정
fix: deploy file
fix: deploy file
fix: deploy ubuntu version fix
[자영] dev 브랜치 main 에 머지 : 배포 테스트 진행
[자영] Dockerfile 수정 후 배포 테스트
[자영] deploy.yml 코드 수정 후 배포 테스트
메인 서버에 배포
스프링 시큐리티 수정 사항 및 open ai 누수 해결 코드 병합
fix: redis 접속 관련 정보 수정
deploy: 토큰 관련 에러 로그 사항 세부적으로 남기도록 수정 후 재배포
[병합] 월별 누적 포인트 조회 API & 토큰 쿠키로 전송
main deploy: dev -> main merge
fix: dockerfile venv 사용방식으로 수정
dev 수정 사항을 main 으로 배포
[병합] 메인서버에 배포
docs: 리드미 수정 후 재배포
[재배포] dev 수정사항 main 에 반영
[병합] dev 수정사항 main 에 배포
fix: 공통 챌린지 쿼리 관련 파일 전부 삭제
[병합] 투자성향기능 메인 서버에 배포
[병합] 챌린지 응답 수정, 재테크 수정 메인에 배포
[병합] dev 수정사항을 main 에 배포
[병합] dev 브랜치 작업 사항 main 브랜치에 병합 - 재배포
fix: 챌린지 rank 예약어 오류, 스키마 오류
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.
📌 Pull Request
👀 작업 요약
SQLSyntaxErrorException near 'rank'발생 이슈 긴급 패치rank) 이스케이프 처리 및 스키마 정합성(challenge_rank.actual_value) 맞춤📖 작업 내용
1) SQL 예약어 충돌 해결
모든 랭킹 관련 쿼리에서 컬럼명
rank→`rank`(백틱) 처리src/main/resources/org/scoula/challenge/rank/mapper/ChallengeRankMapper.xmlsrc/main/resources/org/scoula/challenge/rank/mapper/ChallengeCoinRankMapper.xmlORDER BY,SELECT,INSERT,ON DUPLICATE KEY UPDATE구문 전부 반영2) 스키마 정합성(코드 ↔ DB) 맞춤
challenge_rank.actual_value컬럼 추가 및 백필progress_rate제거 – 이번 핫픽스 범위 밖(추후 정리)3) 보조 점검
challenge_rank.user_challenge_id에 UNIQUE 인덱스 존재(uk_user_challenge)VALUES(col)문법 유지(8.0.20+에서 비권장 경고 가능). 추후AS new ... UPDATE col = new.col로 이행 예정4) 배포(재배포) 순서 / 운영 절차
Zero-downtime 권장 순서
롤백 전략
actual_value컬럼은 남겨도 무방(호환성 영향 없음)5) 스모크 테스트 시나리오
POST /api/challenge/{id}/join→ 200 응답 확인challenge_rank의 해당user_challenge_id행에rank,actual_value갱신되는지 확인GET /api/challenge/{id}/rank(있다면) 또는 현재 매퍼 기반 조회 API로 정렬(rankASC) 및 값 노출 확인SQLSyntaxErrorException near 'rank'미발생 확인✅ 체크리스트
#12)배포 전 체크
운영 DB 백업/스냅샷 확보
아래 마이그레이션 SQL 적용(성공 여부 기록)
(선택) progress_rate 컬럼 제거는 추후 태스크로 분리
배포 후 체크
challenge_rank업서트 정상(중복 호출 시 갱신 확인)near 'rank'미발생)✋ 질문 사항
VALUES(col)→AS new ... UPDATE col=new.col로 변경을 이번 PR에 포함할까요? (경고 제거 목적)progress_rate컬럼은 즉시 제거할지, 추후 스키마 정리 이슈로 분리할지 결정 필요🔗 관련 이슈
closes
rank예약어 충돌 및 스키마 불일치로 공통 챌린지 참여 실패 오류