f5e1e3377c71ac5788db6f6fed13e3161430d901
Summary: - When a user is creating a Phriction document, save a draft as "phriction:<slug>". - When a user is editing a Phriction document, save a draft as "<document phid>:<document version>". - If a user has an available draft, use that instead of the native content. - If using a draft, tell the user and give them an option to discard it. - If a page is updated, your draft is lost (we show new page content unconditionally) but this should be rare and is the simplest way to resolve this issue in a realtively consistent way. Test Plan: - Recovered drafts for new and edited pages. - Used "nodraft" to discard drafts. Reviewers: davidreuss, btrahan, jungejason Reviewed By: davidreuss CC: aran, davidreuss Maniphest Tasks: T769 Differential Revision: https://secure.phabricator.com/D1378
Phabricator is a open source collection of web applications which make it easier to write, review, and share source code. Phabricator was developed at Facebook. This is an early release. It's pretty high-quality and usable, but under active development so things may change quickly. You can learn more about the project and find links to documentation and resources at: http://phabricator.org/ LICENSE Phabricator is released under the Apache 2.0 license except as otherwise noted. http://www.apache.org/licenses/LICENSE-2.0
Description
Languages
PHP
93.4%
JavaScript
4.1%
CSS
2.4%