-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create the SITE_MIGRATION_FALLBACK_CREDENTIALS step #96898
Conversation
Jetpack Cloud live (direct link)
Automattic for Agencies live (direct link)
|
This PR modifies the release build for the following Calypso Apps: For info about this notification, see here: PCYsg-OT6-p2
To test WordPress.com changes, run |
Here is how your PR affects size of JS and CSS bundles shipped to the user's browser: App Entrypoints (~99 bytes added 📈 [gzipped])
Common code that is always downloaded and parsed every time the app is loaded, no matter which route is used. Sections (~647 bytes added 📈 [gzipped])
Sections contain code specific for a given set of routes. Is downloaded and parsed only when a particular route is navigated to. Legend What is parsed and gzip size?Parsed Size: Uncompressed size of the JS and CSS files. This much code needs to be parsed and stored in memory. Generated by performance advisor bot at iscalypsofastyet.com. |
Hi @andregardi, Will you update the name of the step as part of this PR? |
e4a500e
to
a8dbd0f
Compare
This is working for me! Editing because I'm getting some inconsistent results the more I test. I think it might be due to caching, because it takes a little while between the time I activate/deactivate the Disable Application Passwords plugin on my test site for the API to recognize the change. I disabled Edge Cache on my test site and that did not seem to help, so I'm thinking maybe something in our local application storage in Stepper? Probably not a huge issue for users who won't be going back and forth through the flow multiple times and changing their site's application password status, but something to consider. |
...ternals/steps-repository/site-migration-fallback-credentials/components/credentials-form.tsx
Outdated
Show resolved
Hide resolved
...ternals/steps-repository/site-migration-fallback-credentials/hooks/use-form-error-mapping.ts
Outdated
Show resolved
Hide resolved
...ternals/steps-repository/site-migration-fallback-credentials/hooks/use-form-error-mapping.ts
Outdated
Show resolved
Hide resolved
...ternals/steps-repository/site-migration-fallback-credentials/hooks/use-form-error-mapping.ts
Outdated
Show resolved
Hide resolved
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.
Overall is looking good for me, I just a left a few nit comments.
...internals/steps-repository/site-migration-fallback-credentials/hooks/use-credentials-form.ts
Outdated
Show resolved
Hide resolved
...clarative-flow/internals/steps-repository/site-migration-fallback-credentials/test/index.tsx
Outdated
Show resolved
Hide resolved
This Pull Request is now available for translation here: https://translate.wordpress.com/deliverables/17044681 Some locales (Hebrew, Japanese) have been temporarily machine-translated due to translator availability. All other translations are usually ready within a few days. Untranslated and machine-translated strings will be sent for translation next Monday and are expected to be completed by the following Friday. Thank you @andregardi for including a screenshot in the description! This is really helpful for our translators. |
Translation for this Pull Request has now been finished. |
Proposed Changes
As part of application passwords integration on migrations, we are introducing the new the SITE_MIGRATION_FALLBACK_CREDENTIALS step.
It is shares some behavior with the current credential steps, but does not prompt the user for url and does no offer the back file as alternative method.
We present this step to the user when:
automated-migration/application-password
feature flag is enabled.We are making a request to
/automated-migration/application-passwords/authorization-url
, that will be used to check if the site has application passwords available.SITE_MIGRATION_FALLBACK_CREDENTIALS
step.SITE_MIGRATION_APPLICATION_PASSWORDS_APPROVAL
step, and adding theauthorizationUrl
as a parameter to be used on next step.Testing Instructions
The
automated-migration/application-password
feature flag is already on localhost environment.Testing the
authorization-url
endpoint call and logic.We are using the Disable Application Passwords plugin to test the scenario in which applications password is not available.
Start a Do it for me migration until you reach the
/site-migration-credentials
step.Click on Continue button.
SITE_MIGRATION_APPLICATION_PASSWORDS_APPROVAL
step. This is still a placeholder step, don't expect any functionality to be implemented. Check that the ``authorizationUrl` parameter is added to the url.SITE_MIGRATION_FALLBACK_CREDENTIALS
step.Testing SITE_MIGRATION_FALLBACK_CREDENTIALS step
Try to input a wrong username and password.
Click on Continue button.
You should get the following error.
The button label should change to Continue anyway.
Clicking on it should create a migration ticket on Zendesk.
Close the Zendesk ticket and hit the back button.
This time use the right username and password.
It should also create a Zendesk ticket. This time with the quickforget link to the credentials.
Pre-merge Checklist