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

[Feat] 챌린지 참가 정보 수정 API, 참가중인 챌린지 조회 API 수정 #270

Merged
merged 6 commits into from
Apr 1, 2023

Conversation

heoboseong7
Copy link
Collaborator

관련 Issue

작업 내용

  • 참가중인 챌린지 조회 API 수정
    • 참가 정보 추가
    • 참가자 수 필드 제거(참가자 수 조회 API와 기능 중복)
  • 챌린지 참가 정보 수정 API 추가
    • 이번 주 남은 day보다 더 많은 인사이트를 작성해야 하는 경우 예외
    • 오늘보다 이전으로 duration을 설정하는 경우 fail

Figma 링크

@heoboseong7 heoboseong7 self-assigned this Mar 26, 2023
@github-actions
Copy link

테스트통과 🤖

Copy link
Collaborator

@Youhoseong Youhoseong left a comment

Choose a reason for hiding this comment

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

LGTM 👍🏽

Comment on lines +129 to +132
participation.getMyTopic(),
participation.getInsightPerWeek(),
participation.getDuration(),
participation.getEndDate().toString(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

이미 존재하는 API같은데, 왜 변경되는거에요?
이 API를 여러곳에서 쓰나요?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

챌린지 홈에서 쓰고 있어요. 참가중인 챌린지 정보를 조회하는데 홈이냐 상세이냐에 따라 API를 구분하는게 이상해서 변경으로 진행했어요.

private String interest;
private String myTopic;
private int insightPerWeek;
private int duration;
Copy link
Collaborator

Choose a reason for hiding this comment

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

duration이 화면의 뭘 의미하는건지 잘 모르겠어요.

Copy link
Collaborator Author

@heoboseong7 heoboseong7 Mar 26, 2023

Choose a reason for hiding this comment

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

화면에서는 참가 기간이에요. 매주 3번 기록 x 4주 여기서 {4}주 에 해당돼요

Comment on lines 169 to 171
ChallengeParticipation participation = challengeParticipateQueryDomainService.getCurrentChallengeParticipation(SecurityUtil.getUser());
ParticipationUpdateDto dto = challengeAssembler.toParticipationUpdateDto(request);
challengeCommandDomainService.updateParticipation(participation, dto);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Dto를 따로 만든김에 participation 정보를 포함해서 뭉치는게 좋지않을까요?

혹은 domain service에서 조회하는 것도 고려할 수 있을거같아요~

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

userId를 포함시키는 방법으로 생각해볼게요

@github-actions
Copy link

테스트통과 🤖

@github-actions
Copy link

github-actions bot commented Apr 1, 2023

테스트통과 🤖

Copy link
Collaborator

@kimyoungi99 kimyoungi99 left a comment

Choose a reason for hiding this comment

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

나에게는 좋아 보인다 👍

@heoboseong7 heoboseong7 merged commit 5765083 into main Apr 1, 2023
@heoboseong7 heoboseong7 deleted the issue-#269 branch April 1, 2023 02:50
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] 참가중인 챌린지 목표 수정
3 participants