Page MenuHomePhabricator

Existing translation: warning and options
Closed, ResolvedPublic1 Estimated Story Points

Description

Context

When creating a translation you want to know if the page to be published exists, and in case it does be able to decide whether to override, keep both versions, or cancel.

Narrative

As a user, I can be aware of the existence of the article I'm trying to publish, so that I can decide what happens with the existing content

Acceptance Criteria

  1. When the user renames the translation title, a warning should be shown if the page already exists.
  2. When publishing, if the page already exists, a dialog is shown to the user with the following options:
    1. Publish anyway. Content will be replaced on the target Wikipedia.
    2. Publish as draft. Content will be published under the user namespace.
      1. If a draft already exists we can override it (see next item for a possible exception for this).
      2. If we are not publishing directly to a real Wikipedia, we can rename the button as "Keep both versions", and keep the drafts under the user namespace. In that case we should not override the different drafts but create new versions. Example: Save the article “Food” as “Food (1)”.
  3. Cancel. That will allow the user to go back and rename the article or decide later.

Design notes

cx_error-publish-exists.png (768×1 px, 84 KB)

Event Timeline

Arrbee assigned this task to Jsahleen.
Arrbee raised the priority of this task from to High.
Arrbee updated the task description. (Show Details)
Arrbee changed Security from none to None.
Arrbee edited projects, added LE-Sprint-80; removed LE-Sprint-79.
Arrbee moved this task from Sprint 79 to Sprint 80 on the ContentTranslation-Release3 board.
Pginer-WMF subscribed.

As discussed, it seems a good idea to reopen this now that the publishing to main/user namespace context is being worked on.
We need to check that the acceptance criteria is still met for both configurations (main and user namespace as default).

The publish to user namespace if we are publishing to the real Wikipedia functionality has not been implemented yet because at the time we did this story we did not have the configuration parameter or any way to detect whether we were publishing to main namespace or user namespace by default.

I will add this today.

Change 184382 had a related patch set uploaded (by Jsahleen):
Publishing Options: Adjust publishing options for publishing to main namespace

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

Patch-For-Review

Change 184382 merged by jenkins-bot:
Publishing Options: Adjust publishing options for publishing to main namespace

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

Change 185479 had a related patch set uploaded (by Jsahleen):
Publishing options: Fix user namespace publishing

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

Patch-For-Review

Change 185479 merged by jenkins-bot:
Publishing options: Fix user namespace publishing

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