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
2.4.0 Release - remove recipient count #312
Conversation
398e127
to
45e236e
Compare
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.
Due to the sleep causing delays in the posting response, and also that the notification might not be done sending within 10 seconds what do you think about moving this REST API GET /notiications/(id)
call to the has_metadata
?
What if in that has_metadata
method if get_post_meta($post_id, 'recipients');
returns null
we make the REST API request to get the recipients from there?
It's true that the post would appear to take longer to successfully post, although this is not exactly true. The post publish will be successful, kick off the lifecycle event that fires the notification send and that is what would make the post appear longer to publish from the editor perspective. The notification is sent immediately, however. While this is not ideal, there aren't many good options. Some options I've already considered:
|
45e236e
to
e6dc909
Compare
d10c7ae
to
1aec6cb
Compare
Stop reading the `recipients` value from the notification create response. Update the `notice.js` to stop using `recipients`
1aec6cb
to
31a289c
Compare
1 sentence summary
Removes the recipient count used in the editor notices.
Overview
In an effort to ease server computational costs, we will no longer return the recipient count as part of the response body to POST notification.
Thus we must remove it from the plugin notices.
Other changes
Update tested up to value to 6.3
This change is