aude created this task. aude added projects: Wikidata, MediaWiki-extensions-WikibaseRepository, MediaWiki-extensions-WikibaseClient. Herald added a subscriber: Aklapper. |
TASK DESCRIPTION
Seems we are now using some services from the client in the repo, due to how the factories and stuff are instantiated.
For EntityRevisionLookup, we have this (with ForbiddenSerializer used in EntityContentDataCodec):
I think the serializer in EntityContentDataCodec might be there to support the old internal serialization format (which exists for entities not edited for a long time, or for old revisions and might be needed for dump generation) and think we still need it.
I am concerned that whatever it does might (silently or in subtle ways) break and that we should be careful about using client services in the repo.
'EntityRevisionLookup' => function( RepositoryServiceContainer $services, WikibaseClient $client ) { $codec = new EntityContentDataCodec( $services->getEntityIdParser(), new ForbiddenSerializer( 'Entity serialization is not supported on the client!' ), $services->getEntityDeserializer(), $client->getSettings()->getSetting( 'maxSerializedEntitySize' ) * 1024 );
/** @var WikiPageEntityMetaDataAccessor $metaDataAccessor */ $metaDataAccessor = $services->getService( 'WikiPageEntityMetaDataAccessor' ); return new WikiPageEntityRevisionLookup( $codec, $metaDataAccessor, $services->getDatabaseName() ); },
TASK DETAIL
EMAIL PREFERENCES
To: aude
Cc: aude, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331
Cc: aude, Aklapper, D3r1ck01, Izno, Wikidata-bugs, Mbch331
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs