Page MenuHomePhabricator

namespaceDupes.php doesn't fix everything for eswikibooks
Closed, ResolvedPublic

Description

urbanecm@mwmaint1002:~$ mwscript namespaceDupes.php --wiki eswikibooks --add-prefix=T216143
0 pages to fix, 0 were resolvable.

pagelinks from=42536 ns=0 dbk=WL:Café -> Wikilibros:Café DRY RUN
1 links to fix, 1 were resolvable.

Looks good!
urbanecm@mwmaint1002:~$ mwscript namespaceDupes.php --wiki eswikibooks --add-prefix=T216143 --fix
0 pages to fix, 0 were resolvable.

pagelinks from=42536 ns=0 dbk=WL:Café -> Wikilibros:Café
1 links to fix, 1 were resolvable.

Looks good!
urbanecm@mwmaint1002:~$ mwscript namespaceDupes.php --wiki eswikibooks --add-prefix=T216143
0 pages to fix, 0 were resolvable.

pagelinks from=42536 ns=0 dbk=WL:Café -> Wikilibros:Café DRY RUN
1 links to fix, 1 were resolvable.

Looks good!
urbanecm@mwmaint1002:~$

Why doesn't namespaceDupes.php fix this problem it reports as "resolvable"?

Event Timeline

I'm guessing it's due to UPDATE IGNORE

Rows for which duplicate-key conflicts occur are not updated.

If the row isn't updated, should it just get deleted?

Of course, $dbw->update() doesn't tell us anything useful...

Change 593630 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/core@master] namespaceDupes.php: Delete links if they still exist after UPDATE

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

Change 593630 merged by jenkins-bot:
[mediawiki/core@master] namespaceDupes.php: Delete links if they still exist after UPDATE

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