Recovering from a mistake
The person says: “That broke the menu, put it back.”
What can be taken back depends on how it went live: a promote and a change set have an undo; a live write made outside a set does not, and the platform says so instead of pretending.
The loop
Section titled “The loop”Empress:site_status— the versions section: newest first, each entry saying whetherEmpress:version_revertcan undo it and, if not, what to do instead.Empress:site_preview—target: "live", to show the person what is wrong before changing anything.Empress:version_revert—tois the entry’s id from the versions section; ask the person, thenconfirm: true.Empress:site_preview—target: "live"again: the site as visitors now get it.Empress:site_status— the revert is itself an entry.
Judgment
Section titled “Judgment”- Not live yet? Nothing to revert. A draft or a stage never reached visitors: discard it from chat or the CLI, or stage something else over it.
- Content stays published. Reverting a change set puts the theme and the menus back; content it published stays published, and the answer names each item to unpublish if the person wants that too (
Empress:site_callwithcontent_unpublish). - No undo listed? Say so plainly, and offer the forward fix: make the change again, the other way, in a change set.
- Many sites. Revert each site’s set; see
working-across-many-sites.