Page MenuHomePhabricator

Amend archival script to include a fallback option when first move option fails
Closed, ResolvedPublic

Description

As @IKhitron helpfully noticed in T377050#10288157, there are some pages the migration script failed to move because the sub-page the script tries to move the Flow board to already exists. [i]

This task involves the work of amending the archival script so that when it encounters the case above, the script moves the Flow board to an alternative page.

Open questions

  • 1. When the script is unable to move a Flow board to Namespace:Page Name/Flow, what page should the script fallback to?
    • Try appending numbers to the initially-attempted name until we find one that succeeds (or until it fails a few times and we assume there's some other problem). I.e. try /Flow then /Flow2 then /Flow3, etc.

Requirements

Amend the script T371738 introduced such that the following is true:

  • When the script attempts to move a Flow board to a page that already exists (e.g. Namespace:Page Name/Flow), have the script try appending numbers to the initially-attempted name until we find one that succeeds (or until it fails a few times and we assume there's some other problem). I.e. try /Flow then /Flow2 then /Flow3, etc.

i. E.g. https://he.wikipedia.org/wiki/%D7%A9%D7%99%D7%97%D7%AA_%D7%9E%D7%A9%D7%AA%D7%9E%D7%A9%D7%AA:MSchottlender-WMF

Related Objects

StatusSubtypeAssignedTask
ResolvedNone
OpenNone
OpenNone
OpenNone
ResolvedEsanders
ResolvedNone
ResolvedDLynch
OpenDLynch
ResolvedUrbanecm_WMF
ResolvedDLynch
ResolvedDLynch
OpenEsanders
ResolvedRyasmeen
ResolvedUrbanecm_WMF
ResolvedDLynch
Resolvedzoe
ResolvedRyasmeen
ResolvedBUG REPORTEtonkovidova
ResolvedTrizek-WMF
ResolvedNone
ResolvedPRODUCTION ERRORhubaishan
ResolvedTrizek-WMF
ResolvedDLynch
ResolvedTrizek-WMF
Resolvedppelberg
ResolvedQuiddity
Resolvedppelberg
Resolvedzoe
Resolvedzoe
ResolvedRyasmeen
Resolvedzoe
OpenNone

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I'm assigning this task to @Trizek-WMF to propose an answer to the "Open question":

  1. When the script is unable to move a Flow board to Namespace:Page Name/Flow, what page should the script fallback to?

A fairly simple thing to do would be to try appending numbers to the initially-attempted name until we find one that succeeds (or until it fails a few times and we assume there's some other problem). I.e. try /Flow then /Flow2 then /Flow3, etc.

A fairly simple thing to do would be to try appending numbers to the initially-attempted name until we find one that succeeds (or until it fails a few times and we assume there's some other problem). I.e. try /Flow then /Flow2 then /Flow3, etc.

This sounds like a reasonable approach to me.

Assuming it would be relatively straightforward to revise this naming scheme if/when Benoît identifies a reason for us to do so, let's moving forward with implementing this as you propose, David.

Assuming it would be relatively straightforward to revise this naming scheme if/when Benoît identifies a reason for us to do so, let's moving forward with implementing this as you propose, David.

Let's go.

ppelberg updated the task description. (Show Details)

Change #1092301 had a related patch set uploaded (by DLynch; author: DLynch):

[mediawiki/extensions/Flow@master] Add attempted fallback subpage choices to MoveBoard maintenance script

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

Change #1092301 merged by jenkins-bot:

[mediawiki/extensions/Flow@master] Add attempted fallback subpage choices to MoveBoard maintenance script

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

@DLynch, with the script having run at Phase 1 wikis in T378827 (without issue), can we consider this ticket resolved?