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] 개인일정 수정 api #1057 #1087

Merged
merged 6 commits into from
Dec 30, 2024

Conversation

taehyeon3
Copy link
Contributor

@taehyeon3 taehyeon3 commented Dec 30, 2024

📌 개요

  • 개인일정 수정 Dto 추가
  • 개인일정 엔티티 수정 메서드 추가
  • author 검증 로직 추가
  • 개인일정 수정 테스트 추가

💡Issue 번호

  • close#1057

@taehyeon3 taehyeon3 linked an issue Dec 30, 2024 that may be closed by this pull request
Copy link

codecov bot commented Dec 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 74.53%. Comparing base (a71cfc0) to head (0abf0a8).
Report is 12 commits behind head on dev.

Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #1087      +/-   ##
============================================
+ Coverage     74.42%   74.53%   +0.11%     
- Complexity     1227     1231       +4     
============================================
  Files           399      401       +2     
  Lines          5524     5549      +25     
  Branches        440      440              
============================================
+ Hits           4111     4136      +25     
  Misses         1220     1220              
  Partials        193      193              
Flag Coverage Δ
integrationTest 69.58% <100.00%> (+0.19%) ⬆️
unitTest 35.82% <0.00%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@wonies wonies left a comment

Choose a reason for hiding this comment

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

잘보고갑니다! @builder부분에 대해서 생각할 수 있도록 알려주셔서 감사합니다.

Assertions.assertThat(privateSchedule.getGroupId()).isEqualTo(scheduleGroup.getId());
Assertions.assertThat(privateSchedule.isAlarm()).isEqualTo(reqDto.isAlarm());
}

@Test
@Transactional
@DisplayName("일정 그룹이 없는 경우 404")
Copy link
Contributor

Choose a reason for hiding this comment

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

displayname - 404로 쓰신 부분 너무 좋네요. follow하겠습니다.

scheduleGroup);
PrivateScheduleUpdateReqDto reqDto = PrivateScheduleUpdateReqDto.builder()
.eventTag(null)
.techTag(null)
Copy link
Contributor

Choose a reason for hiding this comment

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

성공하는 로직에서 id가 왜 4인지 아직도 궁금하네요.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

저도 궁금합니다


@Builder
public PrivateScheduleUpdateReqDto(EventTag eventTag, JobTag jobTag, TechTag techTag, String title, String content,
Copy link
Contributor

Choose a reason for hiding this comment

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

@builder가 들어간 생성자의 타입을 private으로 통일하기로 해서 수정요청드립니다!

.header("Authorization", "Bearer " + accessToken)
.contentType(MediaType.APPLICATION_JSON)
.content(objectMapper.writeValueAsString(reqDto)))
.andExpect(status().isBadRequest());
Copy link
Contributor

Choose a reason for hiding this comment

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

테스트에서 에러가 났을 경우, 수정이 안일어났으면 안일어났는지 한번 확인하는건 선택사항일 것 같아요

@taehyeon3 taehyeon3 merged commit c358884 into dev Dec 30, 2024
5 checks passed
@taehyeon3 taehyeon3 deleted the 1057-feature-개인일정-수정-api branch December 30, 2024 10:09
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.

✨ [Feature] 개인일정 수정 API
3 participants