Lucas Werkmeister (WMDE) has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/373859 )
Change subject: Emit all snak hashes in API responses
......................................................................
Emit all snak hashes in API responses
This is the API part of T171607. For simplicity (this initialization
happens before we can parse any API request parameters), this is not
made configurable.
Bug: T171607
Change-Id: I97614347635280130eed7054ae4f1f7542385bf5
---
M repo/includes/WikibaseRepo.php
1 file changed, 2 insertions(+), 5 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase
refs/changes/59/373859/1
diff --git a/repo/includes/WikibaseRepo.php b/repo/includes/WikibaseRepo.php
index 3605d54..083dcbd 100644
--- a/repo/includes/WikibaseRepo.php
+++ b/repo/includes/WikibaseRepo.php
@@ -1623,9 +1623,6 @@
* @return ApiHelperFactory
*/
public function getApiHelperFactory( IContextSource $context ) {
- $serializerOptions =
SerializerFactory::OPTION_SERIALIZE_MAIN_SNAKS_WITHOUT_HASH
- +
SerializerFactory::OPTION_SERIALIZE_REFERENCE_SNAKS_WITHOUT_HASH;
-
return new ApiHelperFactory(
$this->getEntityTitleLookup(),
$this->getExceptionLocalizer(),
@@ -1634,8 +1631,8 @@
$this->getSummaryFormatter(),
$this->getEntityRevisionLookup( 'uncached' ),
$this->newEditEntityFactory( $context ),
- $this->getBaseDataModelSerializerFactory(
$serializerOptions ),
- $this->getAllTypesEntitySerializer( $serializerOptions
),
+ $this->getBaseDataModelSerializerFactory(),
+ $this->getAllTypesEntitySerializer(),
$this->getEntityIdParser(),
$this->getStore()->newSiteLinkStore(),
$this->getEntityFactory(),
--
To view, visit https://gerrit.wikimedia.org/r/373859
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I97614347635280130eed7054ae4f1f7542385bf5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits