Page MenuHomePhabricator

[Task] Add link to merge summary
Open, MediumPublic

Description

When two items get merged via the api or the special page, the summaries look like

Merged item from "Qxxx"

It would be great if the Q-ID was a link so one could easily access the item which was also involved in the merge to view/undelete it. This is an easy change as only some brackets are missing. Finally, the summary should look like this:

Merged item from "[[Qxxx]]"

Maybe we can even drop the quotes and just use:

Merged item from [[Qxxx]]

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:35 AM
bzimport set Reference to bz67281.
bzimport added a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).
Lydia_Pintscher removed a subscriber: Unknown Object (MLST).Dec 1 2014, 2:45 PM

So, it's not as trivial as it seems;
In Wikibase, you'd need the right namespace, so basically "Merged item into [[Item:$3]]" while for Wikidata "Merged item into [[$3]]" should be sufficient.

So you'd need to come up with a clever solution for that before changing it.

Change 240704 had a related patch set uploaded (by Ricordisamoa):
AutoCommentFormatter: add link to merge summary

https://gerrit.wikimedia.org/r/240704

Jonas renamed this task from Add link to merge summary to [Task] Add link to merge summary.Sep 30 2015, 9:03 PM
Jonas updated the task description. (Show Details)
Jonas set Security to None.

In most cases, after a merge was performed the source item is redirected to the target item.

So, in target item's history a simple link will not be very useful, and it should be replaced with direct link to the source item history, e.g. an equivalent of this wiki syntax:

Merged item from [//www.wikidata.org/w/index.php?title=Q10000&action=history Q10000]

Change 409004 had a related patch set uploaded (by Matěj Suchánek; owner: Matěj Suchánek):
[mediawiki/extensions/Wikibase@master] Link entity ids in merge and redirect summaries

https://gerrit.wikimedia.org/r/409004

thiemowmde reassigned this task from Ricordisamoa to matej_suchanek.
thiemowmde moved this task from ready to go to in progress on the Wikidata board.
thiemowmde moved this task from Backlog to Done on the Wikidata-Sprint-2018-01-31 board.
thiemowmde removed a project: Patch-For-Review.

Change 240704 abandoned by Thiemo Kreuz (WMDE):
AutoCommentFormatter: add link to merge summary

Reason:
Superseded by Ia561842, I believe. Please feel free to reopen this patch if you think there is still something in here we should continue working on.

https://gerrit.wikimedia.org/r/240704

Change 409004 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Link entity ids in merge and redirect summaries

https://gerrit.wikimedia.org/r/409004

thiemowmde removed matej_suchanek as the assignee of this task.
thiemowmde added a subscriber: matej_suchanek.

Change 240704 restored by Thiemo Kreuz (WMDE):
AutoCommentFormatter: add link to merge summary

Reason:
The alternative patch Ia561842 did not worked and was reverted.

https://gerrit.wikimedia.org/r/240704

Change 240704 abandoned by Addshore:

[mediawiki/extensions/Wikibase@master] AutoCommentFormatter: add link to merge summary

Reason:

Not touched in years

https://gerrit.wikimedia.org/r/240704