-
Notifications
You must be signed in to change notification settings - Fork 116
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
When archiving a block it needs to be unpublished first #678
Comments
We just ran into this issue too. The block was gone on the draft version of the site, but showing on the Live site. If you have a block that gets archived but not unpublished, you can publish the page and it seems to get removed from the Live table. Still a weird UX though. |
If I’m reading this correctly, this is expected behaviour. If you have a page with three blocks on it, all published, and you archive one of them, that should put the page into a modified state where the block is removed, but the published state should still have the block in it because you haven’t published the page again yet. If unpublishing and archiving a block does not modify the state of the page but still removes the block from the live site, that would not be correctly respecting versioning. |
The 2 instances we ran into this morning didn't show any state change for the page itself. It looked like the page was published and there were no changes. |
That is actually a core issue, see silverstripe/silverstripe-versioned#195 |
This issue is more of a UX issue of informing users (or safeguarding them) of unexpected behaviour. Following the page archive patterns should make the whole process clearer. |
Moving my comment from issue #707 here. I think users would be expecting it to be removed from the site anyway. |
I've raised a fix on the silverstripe/silverstripe-versioned repository as it's not limited to just blocks, it's any consumer of the GraphQL delete mutation that's affected. |
I'd expected/hoped it would be this kind of fix, nice! |
Fixed upstream in the versioned repository |
The archive action for a block needs to unpublish a block prior to archiving it, otherwise the block will remain published with no way to unpublish it. It should follow the same process as pages being archived "Unpublish and archive".
I was sure this issue already existed so delete this if it has already been resolved...
Notes
The text was updated successfully, but these errors were encountered: