Conversation
Including fixable field in the ThreatItemState will later on facilitate in - getting ids for fixable threats from the Content UiState in the ScanViewModel (only fixable threat ids should be sent to the fix threats use case). - distinguishing between fixable and non-fixable threat list items
|
You can trigger optional UI/connected tests for these changes by visiting CircleCI here. |
|
You can test the changes on this Pull Request by downloading the APK here. |
ParaskP7
left a comment
There was a problem hiding this comment.
👋 @ashiagr !
I have reviewed and tested this PR as per the instruction, great job! 🌟
I have left a couple of minor (🔍) comments. I am going to approve this PR anyway, since none is blocking. Also, I am not going to merge this PR yet to give you some time to apply any of my suggestions. However, feel free to ignore them and merge the PR yourself.
PS: The one thingy that I noticed while testing this PR is that I had to trigger Scan now twice for it to work. It seemed that the first time it gets triggered it returns immediately as green and only a second trigger would actually triggered a scan and show threats. Not sure if this was a timing matter, I just thought I should notice that here in case you experienced the same at some point.
WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/ScanFragment.kt
Outdated
Show resolved
Hide resolved
WordPress/src/test/java/org/wordpress/android/ui/jetpack/scan/ScanViewModelTest.kt
Outdated
Show resolved
Hide resolved
|
Thanks for the review @ParaskP7! I've included your suggestions. Ready for another look 🙇♀️. |
🟢 from me @ashiagr ! Thank you so much. 🙏 Feel free to merge when you are ready. |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/jetpack/scan/ScanViewModel.kt
Parent #13326
This PR triggers fix threats action on scan state screen and handles result from
FixThreatsUseCase.Child PR for
FixThreatsUseCase: #13796As fix threats API is asynchronous, polling for fix status is done in a separate PR: #13798
[PR: #13798 also includes threat fixing flow (web vs mobile) video]
To test
Prerequisite:
xthreats" button on scan state screen with threats(Tests included in
ScanViewModelTest)Notes:
Merge Instructions
Make sure child PR Issue/13326 fix threats usecase #13796 is merged to develop✅Make sure Issue/13326 ignore threat #13768 is merged to develop✅Remove the "Not Ready for Merge" label✅PR submission checklist:
RELEASE-NOTES.txtif necessary.