Closed hichamboushaba closed 1 month ago
1 Warning | |
---|---|
:warning: | This PR is assigned to the milestone 20.8. The due date for this milestone has already passed. Please assign it to a milestone with a later deadline or check whether the release for this milestone has already been finished. |
1 Message | |
---|---|
:book: | This PR contains changes to Tracks-related logic. Please ensure (author and reviewer) the following are completed:
|
Generated by :no_entry_sign: Danger
App Name | WooCommerce-Wear Android | |
Platform | ⌚️ Wear OS | |
Flavor | Jalapeno | |
Build Type | Debug | |
Commit | 05655fc9871be01ec1b1084fd1f059510ba28587 | |
Direct Download | woocommerce-wear-prototype-build-pr12792-05655fc.apk |
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
App Name | WooCommerce Android | |
Platform | 📱 Mobile | |
Flavor | Jalapeno | |
Build Type | Debug | |
Commit | 05655fc9871be01ec1b1084fd1f059510ba28587 | |
Direct Download | woocommerce-prototype-build-pr12792-05655fc.apk |
Attention: Patch coverage is 77.77778%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 40.86%. Comparing base (
c0d7adb
) to head (05655fc
). Report is 10 commits behind head on trunk.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Closes: #12789 Closes: #12790
Depends on #12788
Description
This PR adds logic to fetch the site status from the WCPom endpoint on app launch to determine if the site is suspended or not, and then update the corresponding flags, this will ensure two cases:
Steps to reproduce
Testing information
Important: the Jetpack upsells might not show exactly on first launch if the fetch took a little bit long, but they will appear when changing the screen and going back, I think that this is fine for this use case and that listening to the preference to update the UI would be an overkill, a site being suspended or unsuspended wouldn't be a frequent change anyway, let me know what you think.
The tests that have been performed
^
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: