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

[AN] 놀이터 전체 조회 -> 범위 조회로 변경 #778

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

dpcks0509
Copy link
Contributor

이슈

개발 사항

  • 기존 놀이터 전체 조회에서 화면에 보이는 범위 기반 조회되도록 변경하였습니다.
  • 기존 "새로고침" 버튼 에서 "현 지도에서 검색"으로 버튼 네이밍 수정하였습니다.
  • 기존 Handler 통해서 delay 주었었는데 코루틴 이용해서 delay 되도록 수정하였습니다.

시연 영상

1.1.mp4

@dpcks0509 dpcks0509 added 🤹 enhance 성능 개선 🤖 android android labels Jan 2, 2025
@dpcks0509 dpcks0509 self-assigned this Jan 2, 2025
Copy link

github-actions bot commented Jan 2, 2025

Test Results

77 tests  ±0   77 ✅ ±0   1s ⏱️ ±0s
12 suites ±0    0 💤 ±0 
12 files   ±0    0 ❌ ±0 

Results for commit 956b456. ± Comparison against base commit 3c7d1ca.

♻️ This comment has been updated with latest results.

jinuemong
jinuemong previously approved these changes Jan 3, 2025
Copy link
Contributor

@jinuemong jinuemong left a comment

Choose a reason for hiding this comment

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

@@ -957,7 +976,7 @@ class PlaygroundFragment : Fragment(), OnMapReadyCallback {
companion object {
private const val PLAYGROUND_RADIUS = 150.0
private const val MIN_ZOOM = 7.0
private const val DEFAULT_ZOOM = 15.0
private const val DEFAULT_ZOOM = 14.0
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
Contributor Author

Choose a reason for hiding this comment

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

원래는 놀이터 전체를 한번에 불러와서 지도 줌이 더 많이 되어 있어도 지도 카메라를 이동하면 옆에 있는 놀이터들을 확인할 수 있었어요. 그런데 내가 보고 있는 화면의 범위를 토대로 놀이터를 조회해서 화면에 보여주기 때문에 초기에 사용자가 친구 찾기 기능에 접속했을때 지도 줌을 낮춤으로서 조금 더 많은 놀이터를 확인할 수 있도록 유도하였습니다!

junjange
junjange previously approved these changes Jan 3, 2025
Copy link
Member

@junjange junjange left a comment

Choose a reason for hiding this comment

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

고생하셨습니다~~
주석은 시간이 될 때 제거해주셔도 좋을 것 같아요~~

Comment on lines 27 to 34
suspend fun getPlaygrounds(
startLatitude: Double,
endLatitude: Double,
startLongitude: Double,
endLongitude: Double,
): Result<List<Playground>>

suspend fun getMyPlayground(): DomainResult<MyPlayground, DataError.Network>
Copy link
Member

Choose a reason for hiding this comment

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

getPlaygrounds의 반환타입을 DomainResult로 안하신 이유가 있으실까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

앗 그렇네요 DomainResult로 수정해야하는 걸 빼먹었네요. 수정하겠습니다!

@dpcks0509 dpcks0509 dismissed stale reviews from junjange and jinuemong via 956b456 January 3, 2025 10:15
Copy link
Member

@junjange junjange left a comment

Choose a reason for hiding this comment

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

수고하셨습니다~

Copy link
Member

@gaeun5744 gaeun5744 left a comment

Choose a reason for hiding this comment

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

고생하셨습니당~

@dpcks0509 dpcks0509 merged commit 502620d into develop Jan 6, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤖 android android 🤹 enhance 성능 개선
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

놀이터 전체 조회 -> 범위 조회로 변경
4 participants