Directory

(preferences)(17.5.1)(fix) Fix preferences migration 17.5-specific deprecation test failures by fullofcaffeine · Pull Request #58099 · WordPress/gutenberg · GitHub
Skip to content
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

(preferences)(17.5.1)(fix) Fix preferences migration 17.5-specific deprecation test failures #58099

Conversation

fullofcaffeine
Copy link
Member

What / Why / How?

17.5-specific Follow-up to: #58031. That changeset was a time-sensitive hotfix for 17.5 with benign test failures, AFAICS. This PR aims to fix those tests in the 17.5 branches so that if any other PR is cherry-picked for a future patch release, people will not get confused by the failures.

It's important to note that once 17.6 is released, this will not be too relevant anymore, but will be a good way to document the changes in #58031.

The changes in #58031 make the get proxy more resilient by falling back to the passed scope to get the preference if it's not found in the core scope (where the preferences in the settingsToMoveToCore were migrated to between 17.5 and trunk. Some changesets were not included in the release/17.5 branch, causing the get call for them to return undefined to the consumers and causing unexpected fatal bugs (BSODs/WSODs).

On trunk nor this PR nor #58031 are needed because the it should be in a state that #58016 expects -- all of the preferences listed in settingsToMoveToCore have indeed been moved over to the core scope.

Testing Instructions

All tests should pass.

… migrated to the `core` scope, but will still work due to the 17.5.1-specific hotfix

17.5.1-specific hotfix: #58031.
@fullofcaffeine fullofcaffeine changed the base branch from trunk to release/17.5 January 23, 2024 00:56
@fullofcaffeine fullofcaffeine marked this pull request as ready for review January 23, 2024 00:59
@fullofcaffeine fullofcaffeine added [Type] Task Issues or PRs that have been broken down into an individual action to take [Type] Bug An existing feature does not function as intended and removed [Type] Task Issues or PRs that have been broken down into an individual action to take labels Jan 23, 2024
@fullofcaffeine fullofcaffeine marked this pull request as draft January 23, 2024 01:01
@fullofcaffeine
Copy link
Member Author

fullofcaffeine commented Jan 23, 2024

Closed due to a weird GH bug - when you change the base branch, GH won't trigger all the necessary actions for some reason. I had mistakenly chosen trunk and then changed the base branch to release/17.5 and none of the testing actions ran in this PR.

See the new one here: #58100.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant