Skip to content

Feat: 관리자 대시보드 #235

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

Merged
merged 7 commits into from
May 14, 2025
Merged

Feat: 관리자 대시보드 #235

merged 7 commits into from
May 14, 2025

Conversation

joungGo
Copy link
Collaborator

@joungGo joungGo commented May 13, 2025

🔎 작업 내용

관리자 대시보드

  • ⚡️ 새로운 기능 추가
  • 🐛버그 수정
  • 💄 코드에 영향을 주지 않는 변경사항(오타 수정, 탭 사이즈 변경, 변수명 변경)
  • ♻️️ 코드 리팩토링(성능, 기능 메서드)
  • 📈 주석 추가 및 수정
  • 📝 문서 수정
  • ✅ 테스트 추가, 테스트 리팩토링
  • 🔧 빌드 부분 혹은 패키지 매니저 수정
  • 💚 파일 혹은 폴더명 수정
  • 🔥 파일 혹은 폴더 삭제

✅ PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다.
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트).

@joungGo joungGo self-assigned this May 13, 2025
@joungGo joungGo added the feat 기능 label May 13, 2025
@joungGo joungGo linked an issue May 13, 2025 that may be closed by this pull request
@joungGo joungGo requested review from ohnoesganj and cjw0324 May 14, 2025 03:46
@Emokido
Copy link
Collaborator

Emokido commented May 14, 2025

알림 기능 문제 없어보입니다!

List<Purchase> purchases = purchaseRepository.findAllByEventId(eventId);
log.debug(">> 이벤트 구매자 조회 완료: eventId={}, 구매자 수={}", eventId, purchases.size());

// 모든 구매자에게 행사 취소 알림 전송
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

행사 취소 이전, 구매한 티켓이 존재한다면 해당 티켓들에 대한 취소가 우선적으로 이루어져야 할 듯 합니다.
취소와 티켓 환불을 함께 고려한 로직은 구현되지 않아, 해당 로직은 리펙토링 진행 시 반영하도록 하겠습니다.

Copy link
Collaborator Author

@joungGo joungGo May 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다. 해당 로직 구현 후 알림 주시면 관리자 대시보드에도 반영하겠습니다.
추가 첨언 없으시면 반응 달아주세요.


try {
// 삭제된 이벤트 조회
List<Event> events = eventRepository.findAllByIsDeletedTrue();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

삭제 대기 중인 이벤트 목록 조회 -> isDeleted 값이 true 인 이벤트의 목록을 조회하는게 맞을까요?
삭제 대기 중 이라는 말이 조금 어색하게 보여지는 듯 합니다...!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

현재 관리자 대시보의 이벤트 관리 페이지를 보면 이벤트 목록 조회 탭과 삭제된 이벤트 탭으로 나뉘어 있습니다. isDelete값이 true인 이벤트의 경우 삭제된 이벤트 탭으로 이동하게 되고, 여기서 복구 버튼을 누르면 다시 이벤트 목록 조회 탭으로 되돌아오게 됩니다. 해서, 위와 같이 구현하였습니다.
때문에 isDeleted가 true 값의 경우 삭제된 이벤트에서 조회되기 때문에 문제가 없을 것으로 보이는데 다른 의견 있으실까요?
image
image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

삭제 되어 대기중이라는 의미라는 말씀이신거죠??
삭제 대기 중이라는 의미를 저는 "삭제 요청 -> 삭제 대기 -> 삭제 승인 -> 최종 삭제" 라는 플로우로 느껴서 어색했던 것 같습니다!
복구 가능하다 라는 의미에서의 "삭제 대기 중" 이라면 합당해 보입니다!

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

맞습니다. 추가로, 삭제된 이벤트 탭에서도 완전히 지울 수 있도록하는 기능을 추가해야 겠네요.
재확인차 질문합니다만 DB에서는 관련 데이터는 어떤 경우에서도 지워지지 않도록 하는게 맞는건지 확인부탁드립니다.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

맞습니다. DB 에서는 한번 저장된 이벤트는 실제 데이터 삭제가 이루어 지지 않는 것이 맞습니다.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다 .
감사합니다.

Copy link
Collaborator

@cjw0324 cjw0324 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

리뷰 확인 부탁드립니다! 감사합니다

@joungGo joungGo merged commit 2d8609b into develop May 14, 2025
3 checks passed
@joungGo joungGo deleted the feat/관리자-대시보드 branch May 14, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat 기능
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feat: 관리자 - 대시보드 추가 구현
3 participants