You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Group: BlocksIssues related to the provided Gutenberg BlocksGroup: WordPressChanges related to WordPress or Gutenberg integrationP2Should do soonType: EnhancementNew feature or improvement of an existing feature
When using the story picker in the web stories gutenberg block, the following noticed is displayed.
react_devtools_backend.js:4049 select( 'core' ).getAuthors() is deprecated since version 5.9. Please use select( 'core' ).getUsers({ who: 'authors' }) instead.
at SelectStories
Here's where the post author dropdown was updated to use getUsers in Gutenberg: WordPress/gutenberg#33695
Here's where getUsers gained the ability to fetch with context=view so that it can be used for things like the author dropdown: WordPress/gutenberg#32961
Until we hear back from the Gutenberg team on this one, I think we can consider this one blocked. I agree with you, that doing version checks is not really the best solution here.
We can now remove compat code in places like \Google\Web_Stories\REST_API\Stories_Users_Controller::filter_user_query() and getAuthors() (found twice, in wp-dashboard and wp-story-editor)
We can also remove the line & todo in bootstrap.js in the e2e tests
Group: BlocksIssues related to the provided Gutenberg BlocksGroup: WordPressChanges related to WordPress or Gutenberg integrationP2Should do soonType: EnhancementNew feature or improvement of an existing feature
Activity
[-]getAuthors() is deprecated noticed[/-][+]getAuthors() is deprecation noticed[/+][-]getAuthors() is deprecation noticed[/-][+]`getAuthors()` is deprecation noticed[/+][-]`getAuthors()` is deprecation noticed[/-][+]Block: `getAuthors()` deprecation notice[/+]swissspidy commentedon Oct 5, 2021
Relevant issues/PRs:
Here's where the post author dropdown was updated to use
getUsersin Gutenberg: WordPress/gutenberg#33695Here's where
getUsersgained the ability to fetch withcontext=viewso that it can be used for things like the author dropdown: WordPress/gutenberg#32961I asked for some clarification on WordPress/gutenberg#33725 (comment) and am curious to hear what the team says.
spacedmonkey commentedon Oct 5, 2021
Until we hear back from the Gutenberg team on this one, I think we can consider this one blocked. I agree with you, that doing version checks is not really the best solution here.
spacedmonkey commentedon Dec 2, 2021
@swissspidy What is happening with this ticket?
swissspidy commentedon Dec 2, 2021
No action needed for now
spacedmonkey commentedon Dec 3, 2021
Isn't the message in Gutenberg not wrong. We shouldn't be pushing people to be using who param.
swissspidy commentedon Dec 3, 2021
Yes and no. I mentioned that in WordPress/gutenberg#33725 (comment) as well. But since Gutenberg also supports WP 5.8,
whostill needs to be used.Something to figure out on the Gutenberg repo though.
swissspidy commentedon Oct 31, 2022
We can now remove compat code in places like
\Google\Web_Stories\REST_API\Stories_Users_Controller::filter_user_query()andgetAuthors()(found twice, inwp-dashboardandwp-story-editor)We can also remove the line & todo in
bootstrap.jsin the e2e tests