Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Extends FETCH_BLOCK_LAYOUTS action for self-hosted sites #1702

Merged
merged 3 commits into from
Oct 12, 2020

Conversation

antonis
Copy link

@antonis antonis commented Sep 25, 2020

Fixes wordpress-mobile/gutenberg-mobile#2455

Description
This PR fetches the Block Layouts for self-hosted sites from /wpcom/v2/common-block-layouts

To test
This can be tested with wordpress-mobile/WordPress-Android#13017
or by running the testFetchBlockLayouts() test.

Copy link
Contributor

@chipsnyder chipsnyder left a comment

Choose a reason for hiding this comment

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

Code looks good 👍 I was hoping to finish my review this afternoon but got stuck with an errand that took longer than expected. I'll finish up the review first thing Monday if that's ok 🙏

Copy link
Contributor

@chipsnyder chipsnyder left a comment

Choose a reason for hiding this comment

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

Tested with wordpress-mobile/WordPress-Android#13017 (review) everything works well 👍

@@ -230,6 +233,19 @@ public void testFetchPostFormats() throws InterruptedException {
assertEquals(10, postFormats.size());
}

@Test
public void testFetchBlockLayouts() throws InterruptedException {
Copy link
Contributor

Choose a reason for hiding this comment

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

I like the addition of the tests :)

@antonis antonis merged commit d9f29f5 into develop Oct 12, 2020
@antonis antonis deleted the issue/selfhosted_block_layouts branch October 12, 2020 15:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants