JeroenDeDauw added a comment.

Keep in mind that serializers take the thing to serialize and give you the 
serialization of that thing. And nothing more. You could construct an "entity 
serializer" that takes an entity id and then fetches the entity. This fetching 
is an added and misplaced responsibility. The same goes for adding additional 
information to whatever is passed in based on queries to services. This does 
not mean you cannot create a serializer with such an output, it just means the 
fetching of additional stuff should be done before using the serializer, not 
during.


TASK DETAIL
  https://phabricator.wikimedia.org/T73170

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: JeroenDeDauw
Cc: JeroenDeDauw, thiemowmde, Bene, Wikidata-bugs, Tobi_WMDE_SW, JanZerebecki, 
adrianheine, Lydia_Pintscher, daniel, aude



_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to