android / android/architecture-samples

[main]TasksRepository.refreshTasks() might throw an exception

Open
#858 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.