[refactor] SupabaseDBRequestBuilder 구조 개선 및 SRP/ISP에 맞게 리팩토링#91
Open
kelly-chui wants to merge 10 commits intodevfrom
Open
[refactor] SupabaseDBRequestBuilder 구조 개선 및 SRP/ISP에 맞게 리팩토링#91kelly-chui wants to merge 10 commits intodevfrom
kelly-chui wants to merge 10 commits intodevfrom
Conversation
- case let 사용 - 리터럴 분리해서 관리
- 쿼리를 옵셔널이 아닌 빈 딕셔너리로 처리했습니다.
- 문법 에러 수정
- 요청의 메소드에 따라 빌더를 분리했습니다. - 이제 Insert에서 setQuery를 하거나 delete에서 setData를 하는 것과 같은 문제를 방지할 수 있습니다.
- 분리된 빌더를 통합해서 적용했습니다. - SceneTest에서 Target 버전이 잘못 잡혀있는 것을 수정했습니다.
- 중복된 파일들 제거 - 씬 테스트에서 필요없는 빌드 페이즈 제거
pearhyunjin
approved these changes
Jul 4, 2025
Contributor
pearhyunjin
left a comment
There was a problem hiding this comment.
확실히 파일 분리가 좀 과도한 것 처럼 느껴지는 것 같습니다.
Buildables 파일 만들어서 하나의 파일 안에서 SRP만 잘 지켜지도록 해도 괜찮지 않을까요?
각각 나뉜 파일에서 많은 일을 수행하는 것도 아니니까요..🤔
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔖 Issue Number
close # 90
📙 작업 내역
📝 PR 특이사항
SupabaseDBRequestBuilder 단일 클래스에서 모든 메소드의 쿼리를 만들고 있어서 인터페이스 분리 원칙(ISP) 을 위반하고 있었습니다. 때문에 insert 작업에서 Query를 세팅하고, delete 작업에서 Data를 세팅할 수도 있는 잠재적인 문제가 있었습니다.
SRP/ISP를 지키기 위해 메소드에 따라 빌더 클래스를 각각 분리했습니다.
한 가지 고민되는 점은 단일 파일을 많은 파일로 나눈 것 같아서, 이 부분이 어색하지 않은지 질문하고 싶습니다.

👻 레퍼런스