1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-28 01:32:42 +01:00
phorge-phorge/src/applications
epriestley 09151b509e Raise a better error for trying to create an empty document in Phriction
Summary:
When you delete the content of a document in Phriction, we treat it as an attempt to delete the document.

In the case you're creating the document, we hit an exception trying to delete a document which doesn't exist yet.

Detect this case and raise a better error.

Test Plan: Tried to create an empty document, got a good error. Created a nonempty document. Edited a document to empty to delete it.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T1920

Differential Revision: https://secure.phabricator.com/D3728
2012-10-17 15:13:03 -07:00
..
audit Document rebase background used in Differential 2012-10-11 10:01:09 -07:00
auth Declare used properties 2012-10-04 14:46:06 -07:00
base Remove "admin page" color/styles 2012-10-16 10:33:37 -07:00
cache/storage Add a generic multistep Markup cache 2012-07-09 15:20:56 -07:00
calendar Set viewer for all handles loaded in controllers 2012-09-04 23:14:26 -07:00
chatlog Allow projects to be set as policies 2012-09-13 10:15:08 -07:00
conduit If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
countdown Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
daemon Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
differential DifferentialCommentEditor::alterReviewers is now aware of differential.allow-self-accept setting 2012-10-12 07:41:45 -07:00
diffusion If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
directory/controller Optimize feed query 2012-10-04 16:07:39 -07:00
diviner Group applications into groups on /applications/ 2012-10-03 15:46:19 -07:00
draft/storage Don't store empty drafts 2012-10-01 16:05:39 -07:00
drydock Set viewer for all handles loaded in controllers 2012-09-04 23:14:26 -07:00
fact Allow Fact analysis of commits 2012-10-08 13:27:06 -07:00
feed Optimize feed query 2012-10-04 16:07:39 -07:00
files Improve image thumbnailing and increase the size of Macro thumbnails 2012-10-08 13:26:10 -07:00
flag Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
harbormaster/storage Add a generic object for unit tests 2012-07-09 10:39:14 -07:00
help/controller Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
herald Remove "admin page" color/styles 2012-10-16 10:33:37 -07:00
macro Improve image thumbnailing and increase the size of Macro thumbnails 2012-10-08 13:26:10 -07:00
mailinglists Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
maniphest Fix a fatal in "create subtask" 2012-10-16 13:39:35 -07:00
meta Use new application icons and intended side nav icons 2012-10-06 14:48:46 -07:00
metamta If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
notification Rename "IDPaged" to "CursorPaged", "executeWithPager" to "executeWith[Cursor|Offset]Pager" 2012-08-07 11:54:06 -07:00
oauthserver Remove all code referencing old tab navigation 2012-08-13 15:28:41 -07:00
owners Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
paste Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
people If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
phame Allow blog resources to be served without Celerity 2012-10-17 08:37:05 -07:00
phid Allow Phame posts to be loaded by handle 2012-10-15 14:51:21 -07:00
phortune Use pht() 2012-06-14 16:25:20 -07:00
phriction Raise a better error for trying to create an empty document in Phriction 2012-10-17 15:13:03 -07:00
policy Fix fatal with some pastes 2012-09-27 17:16:01 -07:00
ponder If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
project If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
repository If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
search If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
settings Group applications into groups on /applications/ 2012-10-03 15:46:19 -07:00
slowvote Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
status Move files in Phabricator one level up 2012-06-01 12:32:44 -07:00
subscriptions If users are on the email to Phabricator, do not send them the Phabricator reply. 2012-10-10 10:18:23 -07:00
typeahead Add $type property to PhabricatorTypeaheadCommonDatasourceController 2012-10-11 15:00:18 -07:00
uiexample Separate "PhabricatorBarePageView" out of "PhabricatorStandardPageView" 2012-10-16 10:33:47 -07:00
xhpastview Require canonical numbers in routes 2012-10-05 18:07:54 -07:00
xhprof Do sampled profiling of requests 2012-09-17 10:53:45 -07:00