-
Notifications
You must be signed in to change notification settings - Fork 121
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.25% 62.14% -0.11%
- Complexity 1202 1203 +1
============================================
Files 265 265
Lines 6416 6433 +17
Branches 890 894 +4
============================================
+ Hits 3994 3998 +4
- Misses 1866 1876 +10
- Partials 556 559 +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?