Last modified: 2014-06-06 04:12:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32449, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30449 - Add hooks for when article save or article delete failed
Add hooks for when article save or article delete failed
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.17.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-18 19:01 UTC by Daniel A. R. Werner
Modified: 2014-06-06 04:12 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel A. R. Werner 2011-08-18 19:01:13 UTC
For some hooks like ArticleDelete or ArticleSave we have also hooks after completion (ArticleDeleteComplete, ArticleSaveComplete) but no hooks in case of an fail. So I suggest to introduce ArticleDeleteFail and ArticleSaveFail and so on.
In case one wants to run some code before and after the action there is no clean way of finishing this in case the action didn't go the right way.

The question would be, what to do if i.e. a user defined hook-function of ArticleDelete would return false. Should ArticleDeleteFail be called or not? I guess it better should.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links