ALFMOB-83: Wishlist Functionality(Continued)#13
Conversation
7deb9fa to
61b1b47
Compare
61b1b47 to
91ca4a5
Compare
Code Review — ALFMOB-83: Wishlist Functionality (Continued)🔴 High — Silent error swallowing in GetWishlistUseCase
async(Dispatchers.IO) {
var product: Product? = null
productRepository.getProduct(id)
.onSuccess { product = it }
product // null if getProduct failed — silently dropped
}Suggestion: Propagate errors to the UI, or at minimum log warnings and show partial-load indicators. 🔴 High — Error handling removed from WishlistViewModel
Suggestion: Add error handling back. At minimum, wrap 🟠 Medium — Unused imports in AddToWishlistUseCase
🟡 Medium — Missing unit tests (noted as TODO)The PR introduces Recommendation: The error handling issues (silent failure, removed error state) should be addressed before merge. Unit tests are also needed given the complexity of the async product-fetching logic. |
What is here
Demo
Screen_recording_20260119_134311.webm
TODO