Skip to content

Standardize blogging reminders migration - #17778

Merged
mkevins merged 5 commits into
trunkfrom
issue/17752-standardize-blogging-reminders-migration
Jan 18, 2023
Merged

Standardize blogging reminders migration#17778
mkevins merged 5 commits into
trunkfrom
issue/17752-standardize-blogging-reminders-migration

Conversation

@mkevins

@mkevins mkevins commented Jan 18, 2023

Copy link
Copy Markdown
Contributor

Fixes #17752

Description

This PR updates the blogging reminders migration step, and moves its invocation to the orchestrator so that the data is migrated during the main migration flow (instead of afterwards in response to an onSiteChanged event). This makes the complete flow more robust in the case that a deep link lands in a place where onSiteChanged is not subscribed for the blogging reminders migration to complete (relevant to #17742)

To test:

  1. Install WordPress and log in
  2. Add blogging prompts to one or more sites
  3. Install and run Jetpack using the same variant (e.g. if installed WordPress version was jalapenoDebug, install Jetpack jalapenoDebug) - expect to see the migration welcome screen
  4. Follow the steps to complete the migration
  5. Check if the blogging prompts set on step 2 were set correctly in the site settings
  6. Change the device date/time ahead of the scheduled time of the reminder. A local notification should be triggered, and tapping on it should open the Editor.

Regression Notes

  1. Potential unintended areas of impact
    Migration flow.

  2. What I did to test those areas of impact (or what existing automated tests I relied on)
    Manual and automated tests.

  3. What automated tests I added (or what prevented me from doing so)
    The automated tests for this helper are currently disabled, and re-enabling them is large enough scope for a dedicated PR.

PR submission checklist:

  • I have completed the Regression Notes.
  • I have considered adding accessibility improvements for my changes.
  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

This is useful to provide continuity of type inference through the usage
of the orElse method, allowing it to be used in the middle of a result
chain without obscuring the passed data subtype to downstream success
handlers.
This also moves the blogging reminder migration step to be during the
migration flow, instead of afterwards.
@wpmobilebot

Copy link
Copy Markdown
Contributor
WordPress📲 You can test these changes on WordPress by downloading wordpress-installable-build-pr17778-0d751e3.apk
💡 Scan this QR code with your Android phone to download and install the APK directly on it.
AppWordPress
Build FlavorJalapeno
Build TypeDebug
Commit0d751e3
Note: This installable build uses the JalapenoDebug build flavor, and does not support Google Login.

@wpmobilebot

Copy link
Copy Markdown
Contributor
Jetpack📲 You can test these changes on Jetpack by downloading jetpack-installable-build-pr17778-0d751e3.apk
💡 Scan this QR code with your Android phone to download and install the APK directly on it.
AppJetpack
Build FlavorJalapeno
Build TypeDebug
Commit0d751e3
Note: This installable build uses the JalapenoDebug build flavor, and does not support Google Login.

@ovitrif ovitrif left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👏

Thank you @mkevins for implementing this enhancement to the WP → JP app content migration 👍

The code changes look consistent and valid to me, and the functionality works as described while testing ✅ 🎉

Leaving the merging decision to you 🙇

@mkevins
mkevins merged commit 5fab1cb into trunk Jan 18, 2023
@mkevins
mkevins deleted the issue/17752-standardize-blogging-reminders-migration branch January 18, 2023 22:00
@mkevins

mkevins commented Jan 18, 2023

Copy link
Copy Markdown
Contributor Author

Thanks Ovi for reviewing and testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android - Standardize blogging reminders migration

3 participants