Page MenuHomePhabricator

Add mw.wikibase.entity:getStatements for convenience
Closed, ResolvedPublic

Description

Analogue to [[https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.entity:getBestStatements|mw.wikibase.entity:getBestStatements]] there should be a mw.wikibase.entity:getStatements convenience function which returns all Statements (except for deprecated Statements, probably).

Event Timeline

Lydia_Pintscher subscribed.

Closing this for now until we have a user request.

@Lydia_Pintscher This was requested during the Vienna Hackathon.

Ok. (Please mention that as we have too many tickets without an actual user request behind them.)

Change 383990 had a related patch set uploaded (by Eranroz; owner: Eranroz):
[mediawiki/extensions/Wikibase@master] getAllStatements and access to property by name

https://gerrit.wikimedia.org/r/383990

eranroz triaged this task as Low priority.

For future reference/answer to the good question of Lydia above: (my) intention is to upstream some code from https://en.wikipedia.org/wiki/Module:Wikidata (used in many other wikis) to the library itself.
This would allow better code sharing and more maintained code and may prevent issues as T178114.

Change 403177 had a related patch set uploaded (by Thiemo Kreuz (WMDE); owner: Thiemo Kreuz (WMDE)):
[mediawiki/extensions/Wikibase@master] Streamline mw.wikibase.entity:getAllStatements

https://gerrit.wikimedia.org/r/403177

Change 383990 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] getAllStatements and access to property by name

https://gerrit.wikimedia.org/r/383990

hoo removed a project: Patch-For-Review.

Change 403177 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Streamline mw.wikibase.entity:getAllStatements

https://gerrit.wikimedia.org/r/403177

has the functionality here been added to an FAQ or help pages on Wikidata and/or Meta?

has the functionality here been added to an FAQ or help pages on Wikidata and/or Meta?

I just updated https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua