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

hotfix [#81] ArtistResolver 수동으로 매핑하는 방법으로 변경 #82

Merged
merged 2 commits into from
Jan 17, 2025

Conversation

ch1hyun
Copy link
Collaborator

@ch1hyun ch1hyun commented Jan 17, 2025

✨ Issue Number ✨

closes #81

✨ To-do ✨

  • ArtistResolver 수동으로 매핑하는 방법으로 변경

✨ Description ✨  

기존 리플렉션을 사용하는 방법은 확장성을 고려해서 선택했지만 구현에 실패했습니다.
따라서 조회 대상 클래스에 따라 조회하는 방법을 지정한 함수를 연결하는 방법으로 바꿨습니다.

image

타겟이 리스트일 경우 순회하며 탐색하고, 아닐 경우 기존에 등록된 클래스인지 확인합니다.
이후 기존에 등록된 클래스일 경우 지정된 함수를 실행해 아티스트 아이디를 모으고, 아티스트 아이디와 객체를 매퍼에 등록해 SpotifyAPIHandler에서 정보를 조회한 후 주입될 수 있도록 합니다.

@ch1hyun ch1hyun added the 🐞 BugFix 버그 수정 label Jan 17, 2025
@ch1hyun ch1hyun self-assigned this Jan 17, 2025
Copy link
Collaborator

@Ivoryeee Ivoryeee left a comment

Choose a reason for hiding this comment

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

어푸푸 수고 많으셨습니다!!!

@ch1hyun ch1hyun merged commit 4a6ea57 into develop Jan 17, 2025
1 check passed
@ch1hyun ch1hyun deleted the hotfix#81/artistResolver branch January 17, 2025 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 BugFix 버그 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[hotfix] ArtistResolver 아티스트 아이디 수집 로직 수정
2 participants