Last modified: 2012-11-29 12:40:46 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 T42078, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40078 - Sites class needs a way to get all sites of a given group
Sites class needs a way to get all sites of a given group
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks: 38263 40077
  Show dependency treegraph
 
Reported: 2012-09-07 13:25 UTC by Daniel Kinzler
Modified: 2012-11-29 12:40 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2012-09-07 13:25:23 UTC
The Sites class needs a way to get all sites of a given group, e.g. all Wikipedias. It should just return a SiteList instance. No database magic is required, the list can just be filtered programmatically.
Comment 1 jeblad 2012-09-08 12:10:19 UTC
The group construct was used to get around a bug, but is now not necessary anymore. If we want this behavior, ie to not be able to make sitelinks to sites outside the group, there should be a decision on it.
Comment 2 Daniel Kinzler 2012-09-08 18:42:42 UTC
AS far as I am aware, there has been a very conscious decision on this. Especially, the constraints we are currently imposing (an item can only have on sitelink per target site, and only one item can link to any given target page) only work for Wikipedia. For other "wiki families" (aka groups), different rules would need to be used.

Also, our current way of displaying the target sites is based on their language - that means that the Dutch Wiktionary, Dutch Wikibooks and Dutch Wikipedia would all have the same display name ("Nederlands (nl)").

While we tried to keep the architecture flexible, our current implementation of the sitelink mechanism is built on the assumption that we always link to Wikipedia, or at least something that share the same topic domain and lemma rules as Wikipedia (which includes Commons).
Comment 3 Daniel Kinzler 2012-09-10 13:58:33 UTC
fix submitted as I4c154bc0
Comment 4 Anja Jentzsch 2012-11-29 12:40:46 UTC
Verified in Wikidata demo time for sprint 15

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


Navigation
Links