Last modified: 2014-07-25 02:06:19 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 T49071, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47071 - Allow use of the Lua API on a Wikibase repository
Allow use of the Lua API on a Wikibase repository
Status: RESOLVED DUPLICATE of bug 55570
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal enhancement with 5 votes (vote)
: ---
Assigned To: Wikidata bugs
:
: 47862 (view as bug list)
Depends on:
Blocks: unconnectedq
  Show dependency treegraph
 
Reported: 2013-04-10 09:31 UTC by Tpt
Modified: 2014-07-25 02:06 UTC (History)
11 users (show)

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


Attachments

Description Tpt 2013-04-10 09:31:21 UTC
Allow to use the (maybe adapted) mw.wikibase Lua API on the Wikibase powered repositories in order to setup easily help pages like https://www.wikidata.org/wiki/Wikidata:List_of_properties
Comment 1 Tpt 2013-04-30 07:15:15 UTC
*** Bug 47862 has been marked as a duplicate of this bug. ***
Comment 2 Tpt 2013-04-30 08:23:33 UTC
A possible solution to fix easily this problem is maybe to implement in wikibase repo only a method, maybe shared with the client, getEntityFromId( id ) that returns the entity that has the given id. 

For the repository, we may use the template dependency system in order to manage refresh of pages using this API. This method may be used:
Scribunto_LuaLibraryBase->getParser()->getOutput()->addTemplate( $title, $page_id, $rev_id )

I'm volunteer to try an implementation.
Comment 3 Kunal Mehta (Legoktm) 2013-05-04 23:45:46 UTC
I've written a hack in the meantime that allows for some functionality by parsing the JSON page text: https://www.wikidata.org/wiki/Module:WBHacks
Comment 4 Gerrit Notification Bot 2013-05-05 06:45:01 UTC
Related URL: https://gerrit.wikimedia.org/r/62321 (Gerrit Change I689a188e2374ab09d81c60e7edb99646b9472c3a)
Comment 5 Matthew Flaschen 2013-06-04 08:31:26 UTC
Bug 47930 specifically asks for getEntityFromId (or equivalent). It's separate because 47930 can be fixed before adding it to the server.
Comment 6 Daniel Kinzler 2013-09-09 20:58:52 UTC
As far as I'm aware, the current codebase already supports running both the repo and client extensions on the same wiki. It would need some testing and probably fixing some bugs, but there's no fundamental issue standing in the way of just enabling this.
Comment 7 Daniel Kinzler 2013-09-09 21:00:15 UTC
Ah, sorry. While it'S true that this running client and repo on the same wiki, it's pretty useless without support for getEntityFromId() or similar. And we can only support than once we have full tracking of all item usages on the client. So it will have to wait...
Comment 8 Gerrit Notification Bot 2013-09-11 06:45:24 UTC
Change 62321 abandoned by Tpt:
(bug 47071)  Allow use of the Lua API on a Wikibase repository

Reason:
"we can just turn on client functionality on the repo"
I didn't believe it was possible. So, I abandon the change.

https://gerrit.wikimedia.org/r/62321
Comment 9 Marius Hoch 2014-01-23 18:03:52 UTC
Once the Lua stuff has been moved into an own extension, which will probably happen mid-term, we can hopefully do that without to much pain.
Comment 10 Lydia Pintscher 2014-03-17 12:10:30 UTC

*** This bug has been marked as a duplicate of bug 55570 ***
Comment 11 Kunal Mehta (Legoktm) 2014-03-17 15:15:17 UTC
Shouldn't bug 55570 be a blocker of this?
Comment 12 Lydia Pintscher 2014-03-17 15:47:55 UTC
I'd rather not keep open more bugs than necessary. We already have over 500.

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


Navigation
Links