Skip to content
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

✨ [Feature] 42API 받아오는 모니터링 쓰레드 작업 #1149 #1152

Open
wants to merge 4 commits into
base: 8th
Choose a base branch
from

Conversation

seyeon22222
Copy link
Contributor

@seyeon22222 seyeon22222 commented Jan 9, 2025

📌 개요

  • 42API 받아오는 모니터링 쓰레드 작업

💻 작업사항

  • 42API 받아오는 모니터링 쓰레드 작업

✅ 변경로직

  • EventScheduler 파일 작성 (쓰레드풀에 추가됨)
  • Oauth2 토큰을 통해서 accessToken을 얻어오는 과정이 기존의 로직과는 다름 : grant_type -> "client_credentials" 으로 설정
  • 기존 RefreshToken의 로직에서도 MultiValueMap으로 되어있는 부분이 안되는거 같아서 json타입에 맞게 수정했으나 동작테스트 안됐습니다.
  • 42API를 받아오는 서비스 로직을 작성했고, id값이 아닌, 제목과 createAt으로 복합키처럼 사용해서 중복체크 로직 작성
  • JsonProperty를 사용해서 42API의 데이터에서 필요한 부분만을 Parameterized타입으로 변경해서 데이터를 엔티티화 작업
  • 따라서 PublicSchedule에 새로운 생성자 작성
  • BaseTimeEntity를 상속받으면 Auditing 기능이 설정되어있어서 createdAt, modifiedAt을 직접 수정하는것이 불가능해서 PublicSchedule 엔티티만 BaseTime을 상속받는게 아닌 직접적인 필드 관리를 하도록 작성 -> 기존 테스트 코드 통과
  • 이미 지나간 일정 Deactivate로 변경하는 기능 추가
  • PublicSchedule에 연관된 PrivateSchedule의 상태도 변경되도록 수정
  • 개인일정에 알람을 설정해놓은 목록에 대해서 슬랙봇 알림을 보내도록 코드 작성(디데이, 디데이 -1인 일정)

💡Issue 번호

@seyeon22222 seyeon22222 self-assigned this Jan 9, 2025
1. 이미 지나간 일정 Deactivate로 변경하는 기능 추가
2. PublicSchedule에 연관된 PrivateSchedule의 상태도 변경되도록 수정
3. 개인일정에 알람을 설정해놓은 목록에 대해서 슬랙봇 알림을 보내도록 코드 작성(디데이, 디데이 -1인 일정)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant