Skip to content

Conversation

@hyerinhwang-sailin
Copy link
Collaborator

Related issue 🛠

Work Description ✏️

  • RecentPostsResponse에 url 필드를 추가하면서 외부 Playground API로부터 받은 게시물 응답(PlaygroundPostResponse)에 URL을 직접 조립해 추가하는 방식으로 변경했습니다. url 생성은 기존의 convertPlaygroundWebPageUrl를 활용했습니다.
  • 가독성과 책임분리를 위해 hot게시물 조회, 최근게시물 조회, 두 게시물 목록 합치기의 세 과정을 모두 담당하던 기존의 getRecentPosts에서 각 단계를 분리해 private 메소드들을 작성했습니다.
  • 외부 api를 호출하는 특성상 local test 진행이 어려워 test code를 작성했습니다. test는 모두 통과했으니 dev 서버에서 테스트해보면 좋을 듯합니다!

Trouble Shooting ⚽️

Related ScreenShot 📷

Uncompleted Tasks 😅

To Reviewers 📢

@hyerinhwang-sailin hyerinhwang-sailin added ✨ Feat 새로운 피쳐 생성 🔨 Refactor 코드 개선 labels Mar 24, 2025
@hyerinhwang-sailin hyerinhwang-sailin self-assigned this Mar 24, 2025
@height
Copy link

height bot commented Mar 24, 2025

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

Copy link
Contributor

@geniusYoo geniusYoo left a comment

Choose a reason for hiding this comment

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

좋습니다! 고생하셨어요 🙆🏻‍♂️ 👍🏻

.build();
}

public RecentPostsResponse withUrl(String url) {
Copy link
Contributor

Choose a reason for hiding this comment

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

요렇게 조합해서 쓰는 방식 좋네요 👍🏻

.toList()).join();
}

private CompletableFuture<RecentPostsResponse> getHotPost(Map<String, String> headers, ExecutorService executor) {
Copy link
Contributor

Choose a reason for hiding this comment

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

기존 메서드가 뚱뚱하다고 생각했는데 메서드 분리해주신 것 좋습니다! :)

@hyerinhwang-sailin hyerinhwang-sailin merged commit d77a4ad into dev Mar 24, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ Feat 새로운 피쳐 생성 🔨 Refactor 코드 개선 size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 플레이그라운드 카테고리별 게시물 조회 api에 url 추가

2 participants