Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase…

Authored by jenkins-bot.


Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase 9e8d4f74cf7531be3c7a2206bd16664dbb05047e

Use ViewFactory for building children of entityviews

This change introduces ViewFactory methods for creating entitytermsview,
sitelinkgrouplistview and statementgrouplistview widgets. These methods are
passed to the different entityviews so that they can create the widgets
without having to pass them all their dependencies.

It improves separation between the entityviews and their immediate children,
since the entityviews don't have to know how to construct the child views.
It also allows to inject different implementations, for example in tests.

In more expressive type systems, this would have been implemented by having
three single-method interfaces (EntityTermsViewFactory,
SitelinkGroupListViewFactory, StatementGroupListViewFactory) and having
the ViewFactory implementing all three of them.

This is a first step for T75380.

Change-Id: I996c57f6fd6a1c6a4575bb82cbcbb7726eca4328

Event Timeline

Gerrit Code Review <gerrit@wikimedia.org> committed rMEXT7f4032975471: Updated mediawiki/extensions Project: mediawiki/extensions/Wikibase… (authored by jenkins-bot <jenkins-bot@gerrit.wikimedia.org>).Oct 1 2015, 8:29 AM