Skip to content

Feature#94 : 데모데이 참여 api 추가#95

Merged
seokhwan-an merged 7 commits intodevelopfrom
feature/add_apply_demoday_api
May 5, 2025
Merged

Feature#94 : 데모데이 참여 api 추가#95
seokhwan-an merged 7 commits intodevelopfrom
feature/add_apply_demoday_api

Conversation

@seokhwan-an
Copy link
Copy Markdown
Collaborator

📝 작업 내용

이번 PR에서 작업한 내용을 간략히 설명(이미지 첨부 가능)

  • 데모데이에 신청하는 기능 api를 추가한다.

💬 작업 시 고민사항

기능을 추가하거나 수정하는 상황에서 의문이 생긴 점이나 배운점 추가

고민사항

  • 현재 Ticket의 capacity를 감소시키는 메소드는 thread safe하지 않을 것으로 파악된다. (해당 동기화 처리는 다음 이슈에서 처리한다.)

#️⃣ 연관된 이슈

연관된 이슈 번호를 모두 작성

@seokhwan-an seokhwan-an self-assigned this May 5, 2025
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 5, 2025

Test Results

163 tests   163 ✅  14s ⏱️
 57 suites    0 💤
 57 files      0 ❌

Results for commit c35a5cb.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Collaborator Author

@seokhwan-an seokhwan-an left a comment

Choose a reason for hiding this comment

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

수정 및 추가로 반영해야할 부분 추가

Comment on lines +12 to +13
DEMO_DAY_IS_CLOSED(HttpStatus.BAD_REQUEST, 5005, "데모데이가 종료되었습니다."),
DEMO_DAY_OWNER_NOT_APPLY_ONESELF(HttpStatus.BAD_REQUEST, 5005, "자신이 등록한 데모데이에는 신청할 수 없습니다."),
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

error code의 값이 같은데 수정 필요

Comment on lines +108 to +118
if (this.status == Status.CLOSED) {
throw new DemoDayException(DemoDayErrorCode.DEMO_DAY_IS_CLOSED);
}

if (Objects.equals(user.getId(), this.userId)) {
throw new DemoDayException(DemoDayErrorCode.DEMO_DAY_OWNER_NOT_APPLY_ONESELF);
}

if (ticket.getCapacity() == 0) {
throw new DemoDayException(DemoDayErrorCode.DEMO_DAY_IS_FULL);
}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

동일한 사람이 같은 demo day에 여러번 신청하더라도 문제가 발생하지 않는 상황이 존재하고 그 부분에 대한 예외처리가 필요

@seokhwan-an seokhwan-an merged commit ec9bdb6 into develop May 5, 2025
3 checks passed
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.

[FEAT] demoday 참여 기능 추가하기

1 participant