Last modified: 2014-01-24 00:40:52 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 T51726, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 49726 - Create a Lua module to allow calling API internally
Create a Lua module to allow calling API internally
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
Scribunto (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-18 02:40 UTC by Liangent
Modified: 2014-01-24 00:40 UTC (History)
6 users (show)

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


Attachments

Description Liangent 2013-06-18 02:40:54 UTC
This may eliminate or deprioritize a bunch of other Lua requests.
Comment 1 Brad Jorsch 2013-06-18 15:05:29 UTC
Note this has been discussed before. The biggest problem is that calling potentially slow and expensive API modules from the page parse is probably not a good idea.
Comment 2 Liangent 2013-06-18 15:20:57 UTC
(In reply to comment #1)
> Note this has been discussed before. The biggest problem is that calling
> potentially slow and expensive API modules from the page parse is probably
> not
> a good idea.

Won't it be counted in Lua execution limit?
Comment 3 Bawolff (Brian Wolff) 2013-06-18 15:23:00 UTC
Note, some api modules are not safe to call during parsing, since the invoke $wgParser. (Most notably action=parse and action=edit. however we probably wouldn't want to allow those two anyway, but there may be other modules that do this)

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


Navigation
Links