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

[Fix] 메뉴판 API 버그 수정 #45

Merged
merged 35 commits into from
Feb 5, 2025
Merged

Conversation

david-parkk
Copy link
Member

@david-parkk david-parkk commented Feb 3, 2025

✏️ 작업 개요

⛳ 작업 분류

  • 메뉴판 등록시 이미지 null 허용
  • 인덱스 조정 버그 수정
  • 메뉴판 수정시 이미지 변경 여부 필드 추가

🔨 작업 상세 내용

💡 생각해볼 문제

  • 생각해볼 내용을 적습니다

- 이미지 인코딩 테스트 API
- 잘못된 커밋 롤백
- convertor 버그 수정
- 이미지 필드 추가
- 캐시 이미지 환경변수 추가
- 메뉴판 삭제시 메뉴판 인덱스 조정
Copy link

github-actions bot commented Feb 3, 2025

Test Results

1 tests   1 ✅  0s ⏱️
1 suites  0 💤
1 files    0 ❌

Results for commit 629c2d8.

♻️ This comment has been updated with latest results.

@david-parkk david-parkk closed this Feb 3, 2025
@david-parkk david-parkk reopened this Feb 3, 2025
david-parkk and others added 3 commits February 4, 2025 11:17
- 메뉴핀(3개)
- 태그(오렌지, 화이트)
- 폴더 아이콘(1개)
Copy link
Contributor

@You-Hyuk You-Hyuk left a comment

Choose a reason for hiding this comment

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

IsImageModified가 노션에 작성되었는지랑 리뷰 확인해주시면 될 것 같아요! 수고하셨습니당

return UpdateMenuFolderResponse.of(menuFolder, menuMenuFolders);
}
if (isImageModified) {
//기존에 있는 이미지는 삭제한다
Copy link
Contributor

Choose a reason for hiding this comment

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

주석 의도적으로 남기신 건가요?? 아니라면 삭제해주셔도 될 것 같습니당

Copy link
Member Author

Choose a reason for hiding this comment

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

로직이 다소 복잡해서 추가했습니다!

Copy link
Member Author

Choose a reason for hiding this comment

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

위 로직은 추후에 리펙토링 또는 코드 변경이 발생했을때, 기존 요구사항을 만족하면서 코드를 변경하기에는 이해하기 어려운 코드라고 생각합니다! 테스트 코드 작성 이전까지는 주석을 유지할게요

menuFolder.updateImg(null);
}

//추가할 이미지가 있으면 추가한다
Copy link
Contributor

Choose a reason for hiding this comment

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

22

Copy link
Member Author

Choose a reason for hiding this comment

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

같은 이유

@@ -10,6 +10,8 @@
public class UpdateMenuFolderRequest {

private MultipartFile menuFolderImg;
//@JsonProperty("isImageModified")
Copy link
Contributor

Choose a reason for hiding this comment

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

33

@david-parkk david-parkk merged commit 42fee82 into develop Feb 5, 2025
5 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.

2 participants