-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix(content-distribution): always distribute on API request #224
fix(content-distribution): always distribute on API request #224
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to change the params for update_post_meta
for it to work, but with that it does.
Co-authored-by: Camilla Krag Jensen <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works and looks good 👍
Hey @miguelpeixe, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
# [2.7.0-alpha.5](v2.7.0-alpha.4...v2.7.0-alpha.5) (2025-02-28) ### Bug Fixes * **content-distribution:** always distribute on API request ([#224](#224)) ([ea53b11](ea53b11))
🎉 This PR is included in version 2.7.0-alpha.5 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
# [2.7.0](v2.6.1...v2.7.0) (2025-03-04) ### Bug Fixes * build on release ([#219](#219)) ([396cb61](396cb61)) * **content-distribution:** always distribute on API request ([#224](#224)) ([ea53b11](ea53b11)) * **content-distribution:** change link to edit origin post ([#215](#215)) ([ed70561](ed70561)) * **content-distribution:** ignore unchanged values when shortcircuiting meta ([#222](#222)) ([ed1182a](ed1182a)) * **content-distribution:** link to post on incoming ([#211](#211)) ([638fa8a](638fa8a)) * **content-distribution:** sync non-publish posts ([#213](#213)) ([ba3cd6a](ba3cd6a)) * **content-distribution:** update icon to broadcast ([#214](#214)) ([df0e740](df0e740)) ### Features * **content-distribution:** default distribution status ([#216](#216)) ([df19856](df19856))
🎉 This PR is included in version 2.7.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
The API endpoint used to set the distribution configuration and distribute a post currently uses the
distribute_post()
method. This method checks the payload hash to prevent an unnecessary update. This is not needed when using the API endpoint and risks not distributing a post in case a partial distribution reaches the server first. In this scenario, the partial distribution will:distribute_post()
to run until an update changes the hashThis PR replaces the method in the endpoint callback for a direct dispatch call.
Testing