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

Duplicate Post: prevent issues with undeleted R&R copies #308

Open
jeroenrotty opened this issue May 2, 2023 · 0 comments
Open

Duplicate Post: prevent issues with undeleted R&R copies #308

jeroenrotty opened this issue May 2, 2023 · 0 comments
Labels

Comments

@jeroenrotty
Copy link
Contributor

Moved from: https://yoast.atlassian.net/browse/IM-1764
Reporter: @enricobattocchi

Description

Using the Rewrite & Republish feature with unsupported page builders or other plugins that "break" the flow of the republishing can end up in having R&R copies whose content has already been used to overwrite the originals, but they haven't been correctly deleted after the overwriting.
This is also something that might happen for a JS glitch, because at the moment the R&R copy is deleted when the browser is redirected to a certain WP action: if the redirect isn't triggered for any reason, the copy is not deleted.
Another possible scenario might happen if Elementor (or Divi, when https://yoast.atlassian.net/browse/P3-517 will be fixed) gets an update that breaks the flow.

The copy then stays in the post list with the dp-rewrite-republish status instead of draft. This is not clear to the user, who wil see the R&R copy in the list without the expected Draft marker after the title, and they might assume it has a publish status and it's visible in the front-end. This is very confusing and might lead users to think that the rewriting has not been successful.

There are a number of things that we might decide to do to address this scenario and help users to be sure about their content, and avoid resorting to the support to clean up these copies. They are not mutually exclusive and they might be implemented together to minimize the impact to the users:

we could hide the R&R copies with dp-rewrite-republish status from the post overview so they can’t be accessed. This would mean that they stay in the DB, though, with no way to delete them from the UI;

we could change the notice when editing an original having a R&R copy with dp-rewrite-republish status, reassuring that the bulk of operation has been done and that there was a minor glitch. We could also provide a link to click to manually trigger the deletion of the R&R copy. This is probably the nicest solution but might be not enough when undeleted R&R copies are the result of scheduled republishing (where the users might not be visiting the edit screen of the original anytime soon after the republishing)

we might provide a "garbage collector" in the options or somewhere else, where we warn the users of the existence of N such R&R copies and provide a button to click to delete all of them in one go

@jeroenrotty jeroenrotty added the IM label Jun 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant