Conversation
Currently used to fetch or get site's scan state from the ScanStore.
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteViewModel.kt # WordPress/src/test/java/org/wordpress/android/ui/mysite/MySiteViewModelTest.kt
|
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. |
Great question! I'd consider asking this question on slack and share the summary of our discussion here. I'd personally vote for making a consistent change across all the jetpack features within the app. We might want to always redirect the user to the .com login flow when they access a jetpack feature and they are using a self-hosted login (if we are sure the site has jetpack installed). If the site doesn't have jetpack installed it's a bit more tricky, but I think it's a different discussion. |
|
Summary of our discussion from Slack: 2d, 2f - Since scan is accessible only with a paid plan and we don’t know what plan users are on if they're are not using wp.com login, we should keep scan menu hidden on My Site for self-hosted login. Updated the table in the description. |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteViewModel.kt # WordPress/src/test/java/org/wordpress/android/ui/mysite/MySiteViewModelTest.kt # build.gradle
|
Thanks @ashiagr for working on this PR. Sorry I didn't review it sooner. I marked the notification as read so it slipped through my filters. I have a couple of points for discussion. I'm not sure which approach is better but I thought I'd share my thoughts. 💡 I'm wondering if we need a service for this task.
Update: This comment is related to this discussion. Let's continue the discussion there and come back here when we decide on an approach. |
|
Thanks @ashiagr! As we discussed on the call you can ignore the above comment. I didn't realize the RewindStatusService uses this approach. I agree we should keep them consistent and refactor all of them later. I tested all the cases described above and I noticed a possible issue. When I
There is also a version conflict with |
# Conflicts: # WordPress/src/main/java/org/wordpress/android/ui/mysite/MySiteViewModel.kt # WordPress/src/test/java/org/wordpress/android/ui/mysite/MySiteViewModelTest.kt
…ady present in db for a site
Great catch ! Fixed in 0603320. Also included unit test for it. |
❤️
I think it'd be fine if we showed the "Scan" item once after you switch to the site. However, I noticed I can see the animation every time I select the site. It's not a huge issue, but feels weird. Could we perhaps delete the item from the database on Authorization Error? |
# Conflicts: # build.gradle
Yes I think we can do that. Added to backlog (#13326) as it will require fluxc changes:
I'll link it here once it is done. Can we merge this one as we've other PRs ready to merged built upon this one? |
malinajirka
left a comment
There was a problem hiding this comment.
Sounds good to me, thank you! ;)

Parent #13326
It displays scan menu on My Site for sites with scan capability for a user.
To test
Prerequisite: Make sure both Scan feature flag and MySiteImprovements flag are set to on in the App settings.
(Changes applied only to MySiteImprovements flow)
Test that scan menu is shown on My Site only when the user has scan feature unlocked.
Questions
2d, 2e - Scan state rest API gives
authorization_requirederror for self-hosted login for a Jetpack site. Should we always display scan menu via this flow? - Answered in #13555 (comment)Not in scope
Scan menu icon fine-tuning
Click action
PR submission checklist:
RELEASE-NOTES.txtif necessary.