-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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)(hotfix)(17.5) Hotfix for missing preferences in the core
scope
#58031
(Preferences)(hotfix)(17.5) Hotfix for missing preferences in the core
scope
#58031
Conversation
…a deprecation message (#58016)
…rom the original get is `undefined`
Size Change: +317 B (0%) Total Size: 1.69 MB
ℹ️ View Unchanged
|
So if I'm understanding properly, this is just the same code that went into trunk but the list of migrated settings is not entirely the same. What settings are not in 7.5? Regardless, this makes sense to me though. |
Yep! I don't recall from the top of my head what settings are missing :/ I think this would be safer than checking what preference migration PRs are missing from the 17.5 branch. |
The test failures are related to the deprecation warnings introduced in this PR. They are not being expected by the tests, but they should be benign failures AFAIU @youknowriad |
@youknowriad If you agree with these changes, would you mind approving here? Thanks! |
All failures here seem benign, related to tests not expecting the new deprecation warning console messages. The Playwright E2Es are all passing, except Puppeteer, which fails because of the unexpected warnings. I'll merge this and bake a 17.5.1 release with this fix. |
core
scope
… migrated to the `core` scope, but will still work due to the 17.5.1-specific hotfix 17.5.1-specific hotfix: #58031.
What?
17.5-specific follow-up to #58016, which fixes the issue on
trunk
but causes a BSOD in therelease/17.5
branch. The problem is that not all changesets that migrated the preferences in thesettingsToMoveToCore
defined in #58016 are in therelease/17.5
branch.One solution would be to cherry-pick the missing changesets. Still, I'm not sure if there could be other consequences (i.e if those changesets depend on other changesets that are supposed to be released with 17.6), so I've come up with this hotfix that should be merged only to the
release/17.5
branch.Why?
After the fix in #58016, I wanted to ship a 17.5.1 with the fix, but after manually smoke testing the draft, I found out it caused a BSOD in the site editor:
Screen.Recording.2024-01-19.at.13.25.51.mov
Further investigation led to my explanation under the "What" section.
How?
It extends the on proxy added in #58016 to fallback to the passed
scope
if the value returned from theoriginalGet
isundefined
for the preferences in thesettingsToMoveToCore
array.Testing Instructions
Test that it doesn't break a plugin consumer of one of the preferences
Let's use Yoast as it was the plugin that had the issue originally (see Automattic/wp-calypso#86601 and #57988).