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(#105) housework info update #117

Merged
merged 10 commits into from
Nov 24, 2023
Merged

Conversation

jusung-c
Copy link
Collaborator

작업내용

  • 수정 Page 호출 API 구현
  • 수정 API 구현

테스트

  • 단건 집안일을 단건 집안일로 변경했을 경우 HouseworkTodo가 수정된다.
  • 단건 집안일을 비단건 집안일로 변경했을 경우 HouseworkTodo가 삭제되고 HouseworkInfo가 생성된다.
  • 비단건 집안일을 단건 집안일로 변경했을 경우 HouseworkInfo가 삭제되고 HouseworkTodo가 생성된다.
  • 비단건 집안일을 비단건 집안일로 변경했을 경우 이전의 HouseworkTodo들이 삭제되고 HouseworkInfo가 수정된다.

관련 이슈

#105

@jusung-c jusung-c linked an issue Nov 19, 2023 that may be closed by this pull request
2 tasks
@jusung-c jusung-c changed the base branch from main to dev November 19, 2023 15:13
@jusung-c
Copy link
Collaborator Author

수정 목록

  • 스프링 시큐리티 권한 "CHEMIST", "CENTER" 제거
  • Housework 애플리케이션에 BaseEntity 인식을 위해 @EnableJpaAuditing 적용

Copy link
Owner

@ghdcksgml1 ghdcksgml1 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!! ㅎㅎ


// houseworkInfo와 일치하는 값들을 삭제한다.
@Transactional
Copy link
Owner

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.

이 메서드를 사용하는 서비스단에 이미 붙어있어서 호출하는 쪽의 트랜잭션에 묶여서 따로 붙여주지 않아도 될 줄 알았어요. 붙여야하는 걸까요??? 😅

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

단순 조회 기능이 아닌 삭제를 하는 메서드라서 안전하게 삭제하려면 붙여줘야 하겠군요!



@Override
public boolean isSameHouseworkMemberIdAndGroupMemberId(HouseworkInfo info, List<Long> groupIdList) {
Copy link
Owner

Choose a reason for hiding this comment

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

Interface의 파라미터명과 일치하지 않네요 ㅋㅋ

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

앗 😅

@jusung-c jusung-c requested a review from ghdcksgml1 November 23, 2023 07:22
@ghdcksgml1 ghdcksgml1 merged commit c6d321c into dev Nov 24, 2023
1 check 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: HOUSEWORK INFO 수정 API 구현
2 participants