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

Extends FETCH_BLOCK_LAYOUTS action for self-hosted sites#1702

Merged
antonis merged 3 commits intodevelopfrom
issue/selfhosted_block_layouts
Oct 12, 2020
Merged

Extends FETCH_BLOCK_LAYOUTS action for self-hosted sites#1702
antonis merged 3 commits intodevelopfrom
issue/selfhosted_block_layouts

Conversation

@antonis
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
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 👍

}

@Test
public void testFetchBlockLayouts() throws InterruptedException {
Copy link
Copy Markdown
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