WMDE-leszek created this task.
WMDE-leszek added projects: MediaWiki-extensions-WikibaseRepository, Wikidata-Sprint, Wikidata.

TASK DESCRIPTION

Noticed while testing federation code. Test setup was: Repo 1 ("main") provides properties, Repo 2 preovides items.
When using properties from "main" on repo 2, statement data for the item is missing the repository prefix, see excerpt from the "claims" part of item data:

{"P2":[{"mainsnak":{"snaktype":"value","property":"P2","datavalue":{"value":{"entity-type":"item","numeric-id":2,"id":"Q2"}

It seems wbsetclaim call contains repo prefix (correct).

First suspect is that while StatementModificationHelper::getEntityIdFromString is parsing the serialized ID, the parser for some reason drops the prefix (maybe maps it to an empty prefix).
This behaviour must be investigated. If fixing the problem turns out to be complex, please file a separate ticket outlining the solution.


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

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

To: WMDE-leszek
Cc: daniel, Aklapper, Lydia_Pintscher, WMDE-leszek, D3r1ck01, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to