Page MenuHomePhabricator

Make sure that sub-refs with the same listKey (copy and pasted) can be edited and saved with different content
Closed, ResolvedPublic

Description

Splitting the problem of C&P reuses on sub-refs. When C&Ping a sub-ref it's currently shown as a "real" reuse.

When the user edits a sub-ref that shares the same listKey as another one, we need to split the two so that they dont share the same content anymore.

Acceptance criteria

  • When there are two sub-ref nodes sharing the same listKey and the user edits on of the two, we need to create a new internalItem, and remap the new node.

Post Review care

Screenshot from 2025-09-16 10-06-00.png (605×242 px, 22 KB)

  • Don't show reuse warning in edit panel when editing details.

Event Timeline

WMDE-Fisch renamed this task from Make sure that sub-refs with the same listKey are not merged in the reference list view. to Make sure that sub-refs with the same listKey can be edited and saved with different content.Sep 12 2025, 6:39 AM
WMDE-Fisch claimed this task.

Change #1187812 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] VE: Split reused sub-refs when editing only one of the reuses

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

Change #1187812 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] VE: Split reused sub-refs when editing only one of the reuses

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

Change #1188740 had a related patch set uploaded (by WMDE-Fisch; author: WMDE-Fisch):

[mediawiki/extensions/Cite@master] VE: Don't show reuse warning when editing details

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

Change #1188740 merged by jenkins-bot:

[mediawiki/extensions/Cite@master] VE: Don't show reuse warning when editing details

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

awight renamed this task from Make sure that sub-refs with the same listKey can be edited and saved with different content to Make sure that sub-refs with the same listKey (copy and pasted) can be edited and saved with different content.Sep 30 2025, 8:10 AM