Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal distribution should prepare posts the same for push or pull #169

Merged
merged 5 commits into from
May 29, 2020

Conversation

rmarscher
Copy link
Contributor

@rmarscher rmarscher commented Jul 23, 2018

Switches the internal connection push method to prepare WP_Post objects in the same way as done by the pull method. This enables the post meta to be filtered when pushing which allows for a workaround to #168 .

I added a @since tag to the new \Distributor\Utils\prepare_post() function that will probably need to be edited. This may need to be part of a minor version bump instead of a patch bump since it slightly affects people already using the dt_push_post_args filter - but it seems pretty unlikely that it would cause an issue.

@rmarscher
Copy link
Contributor Author

I will fix whatever is causing the build to fail and push it again.

@rmarscher rmarscher force-pushed the internal-push-meta-terms-filter branch 2 times, most recently from e40a3fa to ad7f3c1 Compare August 4, 2018 17:41
@rmarscher rmarscher force-pushed the internal-push-meta-terms-filter branch from ad7f3c1 to bd8e8a9 Compare August 4, 2018 17:43
@rmarscher
Copy link
Contributor Author

Build is passing now. Unit tests needed to return an ID property from the get_post mock to avoid warnings.

@helen helen changed the base branch from master to develop September 20, 2018 22:16
@jeffpaul jeffpaul added this to the 1.5.0 milestone May 28, 2019
@jeffpaul jeffpaul requested a review from helen June 6, 2019 18:22
@jeffpaul jeffpaul modified the milestones: 1.5.0, 2.0.0 Jun 13, 2019
@dinhtungdu
Copy link
Contributor

Thank @rmarscher! Could you please fix the conflict in NetworkSiteConnection.php so we can review your PR?

@jeffpaul jeffpaul modified the milestones: 3.0.0, 2.0.0 Jan 31, 2020
@dinhtungdu
Copy link
Contributor

dinhtungdu commented Mar 27, 2020

Please hold the merging, I'm waiting for the 570 to be merged to have final testing.

@dkotter
Copy link
Collaborator

dkotter commented Apr 10, 2020

@dinhtungdu #570 has been merged now, so this is ready for testing again.

@dinhtungdu dinhtungdu self-requested a review April 13, 2020 00:00
dinhtungdu
dinhtungdu previously approved these changes Apr 13, 2020
Copy link
Contributor

@dinhtungdu dinhtungdu left a comment

Choose a reason for hiding this comment

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

Both push and pull worked in my test. No error or warning. Tests are passed here: https://travis-ci.org/github/dinhtungdu/distributor/builds/674211646

@rmarscher
Copy link
Contributor Author

Thanks for working on merging this. Sorry I was unable to look at it when requested. 🏆

@jeffpaul jeffpaul requested a review from dkotter May 27, 2020 18:33
dkotter
dkotter previously approved these changes May 29, 2020
@dkotter dkotter dismissed stale reviews from dinhtungdu and themself via 4ef94fa May 29, 2020 16:04
@dkotter dkotter merged commit 0ed5912 into 10up:develop May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants