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/#670-피드_이미지_정렬_기능_추가 #674

Merged

Conversation

hyeonjerry
Copy link
Collaborator

#️⃣연관된 이슈

close #670

📝작업 내용

예전에 피드를 구현할 때 피드 이미지를 order 순으로 정렬하는 로직을 빠뜨려 추가했습니다.

예상 소요 시간 및 실제 소요 시간

2시간 / 2시간

@hyeonjerry hyeonjerry added Backend 백엔드 관련 이슈 기능 추가 새로운 기능 추가 및 기존 기능 변경 Low Priority 리뷰 우선순위가 낮은 PR labels Sep 27, 2023
@hyeonjerry hyeonjerry added this to the 6차 스프린트 milestone Sep 27, 2023
@hyeonjerry hyeonjerry self-assigned this Sep 27, 2023
@hyeonjerry hyeonjerry changed the title feat: 피드 이미지 order 순으로 정렬하는 로직 추가 Feature/#670-피드_이미지_정렬_기능_추가 Sep 27, 2023
Copy link
Collaborator

@amaran-th amaran-th left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~~! 코멘트 하나 남겨두었으니 확인 부탁드려요!
미리 approve해두겠습니다!

@@ -104,6 +109,7 @@ public FeedDetailResponse findFeed(final Member member, final Long id) {
final Feed feed = feedRepository.findById(id)
.orElseThrow(() -> new FeedException(FeedExceptionType.NOT_FOUND_FEED));
final List<Image> images = imageRepository.findAllByFeedId(feed.getId());
images.sort(Comparator.comparing(Image::getOrder));
Copy link
Collaborator

Choose a reason for hiding this comment

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

ImageRepository의 findAllByFeedId() 쿼리에 order by구문을 추가해줘도 좋을 것 같아요!

@hyeonjerry hyeonjerry merged commit 6f0073b into backend-main Oct 4, 2023
1 check passed
@chws0508 chws0508 deleted the Feature/#670-피드_이미지_정렬_기능_추가 branch October 11, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend 백엔드 관련 이슈 Low Priority 리뷰 우선순위가 낮은 PR 기능 추가 새로운 기능 추가 및 기존 기능 변경
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants