Details
- Reviewers
epriestley - Maniphest Tasks
- T7328: Editing the title of a deleted wiki page results in: An already deleted document can not be deleted.
T7325: Changing permissions of a moved wiki page results in: A moved document can not be deleted.
T7326: Title not moved along with rest of wiki page - Commits
- Restricted Diffusion Commit
rP0a0ac1142953: Phriction - clarify error message when trying to delete already deleted content
moved a wiki doc and verified it had the title I had specified. tried to delete an already deleted doc via setting the content to blank (i.e. hitting save after making some other edits) and got more clear error UI state
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Perhaps a better fix overall would be to allow people to change the title and policy of deleted wiki pages.
At least title is complicated because "changing the title" is really "adding a new content object with a new title" and that always upgrades a given doc from deleted to existence. This codepath could of course be massaged to allow for this sort of thing, just with a more complication than this diff has.
src/applications/phriction/controller/PhrictionEditController.php | ||
---|---|---|
159–165 | we were losing the "required" thing |
I think tailoring the error message is sufficient. Letting users edit the title of deleted documents feels weird / surprising.