[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-06-09 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 Jackmcbarn jackmcbarn+w...@gmail.com changed: What|Removed |Added CC|

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-08 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #8 from FelixReimann fe...@fex-it.de --- Another example: The module under test behaves differently depending on the namespace: if mw.title.getCurrentTitle().nsText == 'Module' then mw.log('found Module namespace')

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 Lydia Pintscher lydia.pintsc...@wikimedia.de changed: What|Removed |Added Priority|Unprioritized |High

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 Brad Jorsch bjor...@wikimedia.org changed: What|Removed |Added Component|Scribunto |WikidataClient

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #2 from Marius Hoch h...@online.de --- (In reply to Brad Jorsch from comment #1) [...] At any rate, the bug is in WikidataRepo, not Scribunto, so reassigning. I think what's meant over here is the debug console on action edit (it

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #3 from FelixReimann fe...@fex-it.de --- Marius is right: The missing tracking feature prohibits a module to display the data for a different item, with mw.wikibase.getEntityObject('Q1234'). This is not the problem. However, most

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #4 from Brad Jorsch bjor...@wikimedia.org --- (In reply to Marius Hoch from comment #2) I think what's meant over here is the debug console on action edit (it should be possible to set a context title over there). So this is not

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #5 from Marius Hoch h...@online.de --- (In reply to Brad Jorsch from comment #4) (In reply to Marius Hoch from comment #2) I think what's meant over here is the debug console on action edit (it should be possible to set a

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #6 from Brad Jorsch bjor...@wikimedia.org --- (In reply to Marius Hoch from comment #5) Wikibase uses mw.title.getCurrentTitle() to get the title of the current page. This should be mockable in the Lua debug console on the edit

[Bug 63623] Specifiable Wikidata context for LUA debug console

2014-04-07 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=63623 --- Comment #7 from Marius Hoch h...@online.de --- (In reply to Brad Jorsch from comment #6) If Wikibase wants a mockable title, it should take a frame somehow and use frame:getTitle(). That's what frames are for. Or it could just take a