Page MenuHomePhabricator

Adjust destination when publishing in the sandbox
Closed, ResolvedPublic

Description

Currently Section Translation provides an option to publish in the sandbox. However, the section is published in a sub-page of the user page. This is problematic since it does not provide control on where the page is created.

This ticket proposes for sections to be added to the sandbox when users select the option to publish on the sandbox.

Some considerations:

  • We need to identify how is the sandbox defined on each wiki. On each wiki it has a different name, but I'd expect it to be possible to retrieve it programmatically since it is shown as a personal link.
  • Define a fallback approach in case the wiki does not have a sandbox page defined.
    • We can keep the current approach (where a sub-page under the user page is created) as a fallback.

This ticket is a follow-up to T260130: Preview and publish: Support publishing in sandbox

Event Timeline

Pginer-WMF triaged this task as Medium priority.Feb 22 2021, 9:30 AM
Pginer-WMF created this task.

@Pginer-WMF On Spanish Wikipedia, the sandbox is known as “Taller” or “taller de usuario”.

Pginer-WMF raised the priority of this task from Medium to High.Sep 5 2022, 9:27 AM

Change 830726 had a related patch set uploaded (by Nik Gkountas; author: Nik Gkountas):

[mediawiki/extensions/ContentTranslation@master] SX: Move target title making for sandbox sections to server-side

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

Don't we need to do the same for CX? It can also benefit from the usage of sandbox link extension if present.

Don't we need to do the same for CX? It can also benefit from the usage of sandbox link extension if present.

Using the sandbox makes sense when expanding an article with a new section on both mobile and desktop. So it applies to parts of what we consider CX codebase (new parts supporting) but not others like creating a new article (classic CX usecase) where creating a sub-page still makes sense when the user wants to draft something to continue working on it.

(As we evolve to a more unified experience CX and SX may become blurry, so I tried to be specific above. Hope that helps)

Change 830726 merged by jenkins-bot:

[mediawiki/extensions/ContentTranslation@master] SX: Move target title making for sandbox sections to server-side

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

Note to QA: In order to test this you should publish a section translation to the user sandbox (this can be done by clicking the "Cog" icon in the last step - Preview and publish step - and then selecting the second option. See 1st screenshot below). The title of target page (where user is redirected after successful publishing) should be the following: "User:[my_username]/sandbox" (when publishing in the test wiki), where my_username is the username of the current user.

Screenshot of the dialog where user can change the publish target:

Screenshot 2022-11-02 at 4.31.40 PM.png (1×796 px, 146 KB)

Screenshot of how to find the user sandbox in desktop mode. The published section should be placed at the bottom of this page:

Screenshot 2022-11-02 at 4.28.25 PM.png (638×2 px, 199 KB)

Thanks for the steps.

When I select the publish to sandbox and publish the page, it stays loading in the "Published , opening page"

@ngkountas will put this back to in progress, if you can clarify you can put it back to the QA Lane

This should be ready for QA in all wikis.

So in the case in the video it is not showing my Sandbox username. Would this be a further issue ?

@EChukwukere-WMF Igbo wikipedia doesn't have a user sandbox page and this is why the publishing in sandbox falls back to creating a new page in the user namespace. For wikis with sandbox page, the publishing happens inside that page.

Thanks @ngkountas I tried Greek and it does show the user name sandbox

Screen Shot 2022-11-16 at 9.29.59 AM.png (728×430 px, 175 KB)