Page MenuHomePhabricator

Avoid to repeatedly ask users about draft name conflicts when saving a translation for an existing article
Closed, ResolvedPublic1 Estimated Story Points

Description

Check T76180: Existing translation: warning and options for the general context.

Problem
When users don't want to replace the existing article, they are offered the possibility to keep a separate draft version in the user namespace. If the user goes through that process several times they may end up with several copies of the draft: X1, X2, X3. The problem is that next time, the user is asked whether to override 3 times if they want to override a draft.

Acceptance criteria

  1. When the user clicks publish and decides to not override by clicking "save as draft" or "keep both", the saving panel is closed and the translation is stored with a new name that is not conflicting with the existing ones without further asking the user.
    1. The new name will take the form A(N) (e.g. "Food (1)", "Tomato (7)").
    2. The appropriate number N, will follow an incremental order until a non conflicting title is found. That is, if I save as a draft "Tomato" it may result in "Tomato (7)" if there are 6 other former copies of the "Tomato" article in the user namespace.

Event Timeline

Pginer-WMF assigned this task to Jsahleen.
Pginer-WMF raised the priority of this task from to High.
Pginer-WMF updated the task description. (Show Details)
Pginer-WMF set Security to None.
Pginer-WMF added subscribers: santhosh, Pginer-WMF.

Change 184714 had a related patch set uploaded (by Jsahleen):
Publishing options: Update version to highest version automatically

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

Patch-For-Review

Change 184714 merged by jenkins-bot:
Publishing options: Update version to highest version automatically

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