Add view all post types filter to External Connections.
Description of the Change
Introduce a "View All" post type view to the pull screen for external connections for parity with the internal connections. The new view is the default when visiting Distributor > Pull Content > [External connection].
Closes #861
How to test the Change
- Create two separate sites using insta wp.
- Install distributor plugin on both the sites. Connect the sites.
- Create a custom post type "Book" on both the sites.
- On pull screen ensure that "View All" option is available.
- Pull content from CPT and it should pull the posts from external sites.
Changelog Entry
Added - Introduce "View all" post type view when pulling content from external connections.
Credits
Props @ankitrox, @Sidsector9, @ravinderk, @jeffpaul, @peterwilsoncc
Checklist:
- [x] I agree to follow this project's Code of Conduct.
- [x] I have updated the documentation accordingly.
- [x] I have added tests to cover my change.
- [x] All new and existing tests pass.
Tagging Max on this one as he's already reviewed a separate PR #1002 for the same issue, so worth checking here to see which approach is most optimal (and can close the lessor of the two)
@ankitrox can you please fill up the description and testing instructions for clarity?
@ankitrox can you please fill up the description and testing instructions for clarity?
Added the steps to test
The changes in develop to the includes/rest-api.php file are causing a few conflicts for this.
However, the good news is that the changes allow for requesting any as the post type to get all the post types so you won't need to make any changes to the file -- the other files will need to specify the post type as any rather than all.
@ankitrox thanks for the PR! Could you please fill out the PR template with description, changelog, and credits information so that we can properly review and merge this?
Closing in favor of #1002.