android / android/architecture-samples
[main]TasksRepository.refreshTasks() might throw an exception
Open
- Dominant language
- Kotlin
- Stars
- 45.8k
- Forks
- 11.9k
- PR merge metrics
- No merged PRs in 30d
Description
The possible exception in DefaultTasksRepository.updateTasksFromRemoteDataSource() is not handled in either repository level or in the VM's that are calling refreshTasks() inside viewModelScope.launch
Contributor guide
Research direction
Read DefaultTasksRepository.updateTasksFromRemoteDataSource() and the ViewModels that call refreshTasks() inside viewModelScope.launch. Trace how the possible exception propagates, then verify that refreshTasks() handles the failure at the repository or ViewModel level without leaking an exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100