-
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
Disable Migrate Guru install when the white labeled plugin is used #94677
Disable Migrate Guru install when the white labeled plugin is used #94677
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 |
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
f81fa80
to
569474b
Compare
} = config.isEnabled( 'migration-flow/enable-white-labeled-plugin' ) | ||
? usePrepareSiteForMigrationWithMigrateToWPCOM( siteId ) // eslint-disable-line react-hooks/rules-of-hooks -- Temporary workaround until we completely replace the migrate guru hook. | ||
: usePrepareSiteForMigrationWithMigrateGuru( siteId ); // eslint-disable-line react-hooks/rules-of-hooks |
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.
This is somewhat hacky but I don't think it can break the hook call order because the condition is a constant. Let me know if there's a better solution.
Note that this is expected to be cleaned up once the Migrate Guru hook is no longer used.
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.
I would suggest creating a ticket as soon as possible because it may affect the code with the feature off.
I already had an issue caused by it that was very hard to detect. I can help with possible solutions.
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.
Oh, thanks for pointing that out, Gabriel. I'm also sorry for any trouble it may have caused.
We're planning to clean this up in the following week or two. Should we prioritize fixing it before that? Is it causing any bugs right now?
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.
I've created a card for it: #94750.
@m1r0 A couple of things.
So we may need a little coordination between you and @sixhours. |
That's correct! The front-end change for the migration key is ready for review in #94503 So this PR only needs to disable the Migrate Guru installation piece (and the software part of the progress indicator). |
Got it! That makes sense. The unit test will still need to be fixed temporarily though. Or maybe it's enough to just rebase once that other PR is merged? |
687dc5c
to
ab800d5
Compare
Just noting that I rebased and the test still fails. I probably won't have time to try and fix today so I'll leave it to you @m1r0 for tomorrow. |
ab800d5
to
ee655db
Compare
Thanks for catching that Mark!
I've added the migration key logic back. It now works as before. |
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.
LGTM!
Resolves #94576
Proposed Changes
Installing the required plugins
andGetting the migration key
.Testing Instructions
&flags=migration-flow/enable-white-labeled-plugin
to the URL and reload.Pre-merge Checklist