-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FIX] 파이어베이스와 서버를 연동하도록 수정 #128
Merged
Merged
Conversation
This file contains 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
jun02160
added
🔥PULL REQUEST
PR 날릴 때
☄️DEPLOY
서버 배포 작업
🧹CHORE
동작에 영향 없는 코드 or 변경 없는 변경사항(주석 추가 등)
✨FEAT
새로운 기능 구현
🧹MODIFY
코드 수정 (기능의 변화가 있을 때)
🐈예준🐈
labels
Mar 2, 2024
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.
📌 관련 이슈
closed #121
✨ 어떤 이유로 변경된 내용인지
Batch 서버 분리 (추가)
스케줄링 작업으로 FB Realtime DB의 데이터를 폴링하는 방식으로 걸음 수 달성 여부를 체크하고자 했습니다.
motivoo-batch
로 명명배포 스크립트 수정
Firebase와 서버의 연동
Insert
온보딩 직후 유저의 ID값을 매핑하여 걸음 수 0으로 초기화한 데이터 값 삽입
Read
주기적으로 폴링하여 유저의 현재 걸음 수와 목표 걸음 수를 비교 -> 달성 여부 체크
*CompletedStatus :
STEP_COMPLETED
ENUM 추가미션의 인증 상태를 다음과 같은 5개 단계로 나누었습니다.
NONE
의 빈 미션 객체 생성IN_PROGRESS
로 변경STEP_COMPLETED
로 변경SUCCESS
로 변경FAIL
로 변경위와 같이 포트포워딩을 하도록 docker-compose.yml 수정, CI/CD 배포 스크립트에 반영
🙏 검토 혹은 리뷰어에게 남기고 싶은 말