-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Backport: Store legacy sidebars when switching to a block theme #3893
Backport: Store legacy sidebars when switching to a block theme #3893
Conversation
@hellofromtonya, I'm unsure what would be the right place to add PHPUnit tests for this change or the actual "unit" we want to test. In the plugin, the feature is covered by e2e tests. |
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.
@Mamaduka I aded a small comment, but otherwise the logic looks good to me 👍
Thank you, @audrasjb! Do you have any suggestions about the PHPUnit tests - #3893 (comment)? |
Concerning unit tests, maybe try to verify that classic sidebars are stored when switching to a block theme? |
That makes sense, thank you. I like the "classic sidebars" term and reference our other discussions from #3902 (comment). Do you think I should change |
Yeah definitely! I think it would be easier to identify what is it: the system used before blocks started to handle WordPress content dataset :) Yes it is legacy, but "legacy" can also be used for "legacy Classic" functions/classes/methods/concepts (= legacy-legacy stuff 🤪 ). Let's disambiguate when possible! :D |
|
Co-authored-by: Mukesh Panchal <[email protected]>
I agree with @audrasjb that "classic" is preferred over "legacy" 👍 @Mamaduka I'll look at the PHPUnit. Thank you for adding it! Test Reports: I asked @ironprogrammer to do his magic in testing this PR. If anyone has time, please test and add a test report too. |
@ironprogrammer tested the PR and submitted a Test Report https://core.trac.wordpress.org/ticket/57531#comment:13. Works 👍 |
Currently reviewing for commit. |
@Mamaduka I switched the way this PR is tested by:
By doing so, it's now testing different paths for this specific change including:
|
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.
- Confirmed this PR includes the changes from the GB PR ✅
- It has a test report ✅
- It has unit/integration tests ✅
It's ready for commit (assuming the CI jobs pass this time 🤣 ) 👍
Committed via https://core.trac.wordpress.org/changeset/55200. |
Trac ticket: https://core.trac.wordpress.org/ticket/57531
Related Gutenberg PR: WordPress/gutenberg#45509
Testing instructions without package updates
Example request made by the editor.
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.