Last modified: 2014-06-09 12:51:37 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65595, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63595 - Merging items with same referenced claim is not possible
Merging items with same referenced claim is not possible
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataClient (Other open bugs)
unspecified
All All
: High major (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=5
: need-volunteer, testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-06 15:44 UTC by Matěj Suchánek
Modified: 2014-06-09 12:51 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matěj Suchánek 2014-04-06 15:44:26 UTC
This bug is similar to 63278. When I try to merge two items which have same claim, and this claim is same referenced, I get this error message: "Exception while applying changes: Claim has already a reference with hash 7eb64cf9621d34c54fd4bd040ed".

Why is it a problem to merge items having a same referenced claim?

Example: [[d:Q8262804]], [[d:Q15403782]]
Comment 1 Addshore 2014-04-07 22:21:50 UTC
https://github.com/wikimedia/mediawiki-extensions-Wikibase/blob/master/repo/includes/ChangeOp/ChangeOpsMerge.php#L183

generateClaimsChangeOps() simply needs to make sure a claim / statement with the same hash doesn't already exist on the item.
If it does exist then don't bother adding the claim to the new item!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links