Delete all customize-draft posts that are referenced by a given changeset post that is deleted #329
Comments
|
In orphan logic, we need to make sure we check for a fork and merge snapshot and don't delete the post in that case. |
|
I think we could potentially eliminate the separate See #39715: Customize: Keep alive auto-drafts created for page/post stubs, and delete when changeset is garbage-collected There is a proof of concept for Note that this doesn't address the problem of forks. |
|
Should we also delete How should we go about this @westonruter using |
|
@PatelUtkarsh isn't this already accounted for by And yes, using this technique of setting the |


When we save a changeset (snapshot) as a
draft, we go through and transition any relatedauto-draft-status posts tocustomize-draft. This is to prevent the posts referenced in the changeset from erroneously garbage-collected when the changeset itself is persistent. However, what we're not accounting for is the case when the changeset itself is deleted without ever having been published. What we're not doing is deleting all of these relatedcustomize-draft-status posts and so they are going to be sticking around forever, orphaned from any changeset.The text was updated successfully, but these errors were encountered: