Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declare generic EntityStore as parameter type #28

Merged
merged 1 commit into from
Jan 11, 2018

Conversation

lucaswerkmeister
Copy link
Contributor

Store::getEntityStore() (which is where ImportEntities::newEntityImporter() gets the entity store from) has never promised to return more than a generic EntityStore, and with wikimedia/mediawiki-extensions-Wikibase@91a07a3901 (change I84661212a6), it has started to return a TypeDispatchingEntityStore instead of a WikiPageEntityStore. As far as I can tell, we don’t need anything specific to WikiPageEntityStore, so adjusting the parameter type should be enough to fix this problem.

Store::getEntityStore() (which is where
ImportEntities::newEntityImporter() gets the entity store from) has
never promised to return more than a generic EntityStore, and with
Wikibase commit 91a07a3901 (change I84661212a6), it has started to
return a TypeDispatchingEntityStore instead of a WikiPageEntityStore. As
far as I can tell, we don’t need anything specific to
WikiPageEntityStore, so adjusting the parameter type should be enough to
fix this problem.
@JeroenDeDauw
Copy link

Looks legit

@filbertkm filbertkm merged commit c69c83b into filbertkm:master Jan 11, 2018
@filbertkm
Copy link
Owner

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants