Skip to content

Conversation

@spacedmonkey
Copy link
Member

Description

Add widget type endpoint.

To test.

__experimental/widget-types
__experimental/widget-types/<name>

Fixes: #25969

How has this been tested?

Screenshots

Types of changes

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows the accessibility standards.
  • My code has proper inline documentation.
  • I've included developer documentation if appropriate.
  • I've updated all React Native files affected by any refactorings/renamings in this PR.

@spacedmonkey spacedmonkey self-assigned this Oct 12, 2020
@spacedmonkey spacedmonkey added [Feature] Widgets Screen The block-based screen that replaced widgets.php. Core REST API Task Task for Core REST API efforts REST API Interaction Related to REST API [Priority] High Used to indicate top priority items that need quick attention labels Oct 12, 2020
@spacedmonkey
Copy link
Member Author

@TimothyBJacobs I would like to get this merged before #25232 . From there I will rebase the PR and add links into #25232

@TimothyBJacobs
Copy link
Member

We can merge this before #25232, but that PR should stay the same so that the client can implement changes after it is merged.

spacedmonkey and others added 5 commits October 14, 2020 01:16
This is either going to land in Gutenberg 9.2.0 for release in 5.6 which means
it has to be stable anyway, or if that doesn't happen we can revert.
Copy link
Member

@TimothyBJacobs TimothyBJacobs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, let's get this in so the client can start adjusting.

@talldan
Copy link
Contributor

talldan commented Oct 14, 2020

Hey @TimothyBJacobs and @spacedmonkey, just seeing some failing tests in master:

1) REST_Widget_Types_Controller_Test::test_get_items
87
Failed asserting that actual size 18 matches expected size 20.

Not sure how this one materialized, as I can't see the error in this PR.

@talldan
Copy link
Contributor

talldan commented Oct 14, 2020

Thanks for the fix 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core REST API Task Task for Core REST API efforts [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Priority] High Used to indicate top priority items that need quick attention REST API Interaction Related to REST API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Widget Type endpoint

3 participants