Jens Ohlig has submitted this change and it was merged.

Change subject: Cleanup of entity serialization in the API
......................................................................


Cleanup of entity serialization in the API

* Serialization in ApiGetEntities now happens via a dedicated serialization 
object rather then methods in the base Api class
* Setup to work with all types of entities and will not fatal when not an item
* Unchanged output except for the id now being prefixed

Change-Id: I97104232a3492b0d89400723007cf7ad48ea7c0e
---
M lib/includes/entity/Entity.php
M lib/includes/entity/EntityObject.php
M repo/Wikibase.php
M repo/includes/api/Api.php
M repo/includes/api/ApiGetEntities.php
M repo/includes/api/serializers/ApiSerializationOptions.php
M repo/includes/api/serializers/EntitySerializer.php
7 files changed, 480 insertions(+), 134 deletions(-)

Approvals:
  Jens Ohlig: Verified; Looks good to me, approved


--
To view, visit https://gerrit.wikimedia.org/r/28068
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I97104232a3492b0d89400723007cf7ad48ea7c0e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: Aude <aude.w...@gmail.com>
Gerrit-Reviewer: Daniel Werner <daniel.wer...@wikimedia.de>
Gerrit-Reviewer: Jens Ohlig <jens.oh...@wikimedia.de>
Gerrit-Reviewer: John Erling Blad <john.b...@wikimedia.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to