-
Notifications
You must be signed in to change notification settings - Fork 1.3k
For #18265 - [Add card] Integrate the credit card storage and handle adding a new credit card #18719
Conversation
b5fbe2c
to
1e93b03
Compare
Codecov Report
@@ Coverage Diff @@
## master #18719 +/- ##
============================================
- Coverage 33.43% 33.40% -0.03%
Complexity 1431 1431
============================================
Files 499 501 +2
Lines 20526 20555 +29
Branches 3099 3102 +3
============================================
+ Hits 6863 6867 +4
- Misses 12816 12838 +22
- Partials 847 850 +3
Continue to review full report at Codecov.
|
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.
This looks okay but something that caught my eye is the use of an Interactor & Controller that indicates we'd want to have this new feature follow our MVI architecture but here there's no MVI loop, no standalone View used by the Fragment so this two classes seem superfluous to me.
If not following the MVI, the Fragment could contain all the business logic and the methods needed to update the UI or maybe it could have just one other class that it could delegate much of the business logic to but at least the Interactor here seems not needed.
…ge and handle adding a new credit card
Thanks for feedback regarding the MVI architecture. On first look, it made sense to me to just follow our current practises. I removed the Interactor for the time being, and kept the Controller to delegate the business logic for time and to ensure it's easily testable. We can revisit the need for having the Interactor as the fragment becomes more complex and whether or not we should delegate more code into a View class. |
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.
Looks good!
Thank you!
Thank you @gabrielluong for making this changes. |
Fixes #18265
Pull Request checklist
To download an APK when reviewing a PR: