-
Notifications
You must be signed in to change notification settings - Fork 120
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
Error Handling for urlConnection #2902
base: master
Are you sure you want to change the base?
Error Handling for urlConnection #2902
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2902 +/- ##
============================================
- Coverage 62.52% 62.42% -0.11%
- Complexity 1203 1204 +1
============================================
Files 267 267
Lines 6357 6374 +17
Branches 881 885 +4
============================================
+ Hits 3975 3979 +4
- Misses 1831 1841 +10
- Partials 551 554 +3
|
ground/src/main/java/com/google/android/ground/ui/map/gms/mog/UrlInputStream.kt
Outdated
Show resolved
Hide resolved
ground/src/main/java/com/google/android/ground/ui/map/gms/mog/UrlInputStream.kt
Outdated
Show resolved
Hide resolved
We should handle the error upstream where it can actually be addressed: Lines 100 to 113 in 9ef90ad
You would add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A few requests, LG
...main/java/com/google/android/ground/ui/offlineareas/selector/OfflineAreaSelectorViewModel.kt
Outdated
Show resolved
Hide resolved
@@ -62,8 +66,17 @@ class OfflineAreaSelectorFragment : AbstractMapContainerFragment() { | |||
|
|||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { | |||
super.onViewCreated(view, savedInstanceState) | |||
viewModel.isDownloadProgressVisible.observe(viewLifecycleOwner) { | |||
showDownloadProgressDialog(it) | |||
viewLifecycleOwner.lifecycleScope.launch { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add tests for this logic?
} | ||
downloadProgress.postValue(progressValue) | ||
} | ||
offlineAreaRepository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also add tests for this logic as well?
…-timeout-exception' into anandwana001/2683/prevent-socket-timeout-exception
Fixes #2683
@shobhitagarwal1612 PTAL?