Page MenuHomePhabricator

Resolve namespace conflicts on Beta Wikiversity
Closed, ResolvedPublic

Description

As a result of bug 64080, many titles previously on Beta Wikiversity became inaccessible due to the namespace changes. For example:

https://beta.wikiversity.org/wiki/Kategorija:Skai%C4%8Diavimo_sistemos is in
https://beta.wikiversity.org/wiki/Category:Candidates_for_speedy_deletion; however, it also currently redirects to
https://beta.wikiversity.org/wiki/Category:Skai%C4%8Diavimo_sistemos

I suggest we run namespaceDupesWT.php and cleanupTitles.php


Version: wmf-deployment
Severity: normal

Details

Reference
bz64298

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:12 AM
bzimport set Reference to bz64298.

Assigning Reedy to run these maintenance scripts.

I don't believe this is a high priority bug as only 4 pages (https://beta.wikiversity.org/w/index.php?title=Special%3APrefixIndex&prefix=Kategorija&namespace=0) are affected and all were useless and unused (categories don't work outside the category namespace), anyway. Obviously, it would be nice to fix the display issues soon but this is nothing which requires an immediate action.

(In reply to Vogone from comment #2)

I don't believe this is a high priority bug as only 4 pages
(https://beta.wikiversity.org/w/index.
php?title=Special%3APrefixIndex&prefix=Kategorija&namespace=0) are affected
and all were useless and unused (categories don't work outside the category
namespace), anyway. Obviously, it would be nice to fix the display issues
soon but this is nothing which requires an immediate action.

I agree that it may not warrant "immediate" action, but generally the "major" severity is indicated for "Major loss of function in an important area." While the data loss might be minimal, I think there is nonetheless data loss that is the result of these pages becoming inaccessible locally. The "priority" change on the other hand is fine.

reedy@tin:~$ mwscript namespaceDupes.php betawikiversity --fix
... 20583 (0,"Šablonas:Mediawiki-pagalba") -> (10,"Mediawiki-pagalba") [[Template:Mediawiki-pagalba]]
... * cannot resolve automatically; page exists with ID 20687 *
... 20390 (0,"Pagalba:Licencijos") -> (12,"Licencijos") [[Help:Licencijos]]
... resolving on page... ok.
... 25625 (0,"Kategorija:Contributors_LT") -> (14,"Contributors_LT") [[Category:Contributors LT]]
... * cannot resolve automatically; page exists with ID 25628 *
... 25624 (0,"Kategorija:Kusurija") -> (14,"Kusurija") [[Category:Kusurija]]
... * cannot resolve automatically; page exists with ID 25627 *
... 25622 (0,"Kategorija:Matematika") -> (14,"Matematika") [[Category:Matematika]]
... * cannot resolve automatically; page exists with ID 26625 *
... 25623 (0,"Kategorija:Skaičiavimo_sistemos") -> (14,"Skaičiavimo_sistemos") [[Category:Skaičiavimo sistemos]]
... * cannot resolve automatically; page exists with ID 25626 *

Oh noeees

(In reply to Sam Reed (reedy) from comment #4)

reedy@tin:~$ mwscript namespaceDupes.php betawikiversity --fix
... 20583 (0,"Šablonas:Mediawiki-pagalba") -> (10,"Mediawiki-pagalba")
[[Template:Mediawiki-pagalba]]
... * cannot resolve automatically; page exists with ID 20687 *
... 20390 (0,"Pagalba:Licencijos") -> (12,"Licencijos") [[Help:Licencijos]]
... resolving on page... ok.
... 25625 (0,"Kategorija:Contributors_LT") -> (14,"Contributors_LT")
[[Category:Contributors LT]]
... * cannot resolve automatically; page exists with ID 25628 *
... 25624 (0,"Kategorija:Kusurija") -> (14,"Kusurija") [[Category:Kusurija]]
... * cannot resolve automatically; page exists with ID 25627 *
... 25622 (0,"Kategorija:Matematika") -> (14,"Matematika")
[[Category:Matematika]]
... * cannot resolve automatically; page exists with ID 26625 *
... 25623 (0,"Kategorija:Skaičiavimo_sistemos") ->
(14,"Skaičiavimo_sistemos") [[Category:Skaičiavimo sistemos]]
... * cannot resolve automatically; page exists with ID 25626 *

Oh noeees

Couldn't you try to add it together with the namespace prefixes? So that "Kategorija:Skaičiavimo_sistemos" for example becomes "Category:Kategorija:Skaičiavimo_sistemos". These pages are to be deleted anyway so that the title does not seem that relevant to me. Thank you.

Reedy: I think it would be best just to delete the 5 duplicate pages manually from the database. None of them have any meaningful history that isn't already present in other pages.

Any progress? I'd be fine with either solution (renaming the pages the way I suggested and then deleting them the proper way onwiki or deleting them directly from the DB).

Just moved them to pages suffixed with DELETEME. I'll let you confirm and delete them locally on the wiki

reedy@tin:/a/common/php-1.24wmf12$ mwscript namespaceDupes.php betawikiversity --fix --suffix=DELETEME
... 20583 (0,"Šablonas:Mediawiki-pagalba") -> (10,"Mediawiki-pagalba") [[Template:Mediawiki-pagalba]]
... * cannot resolve automatically; page exists with ID 20687 *
... * old title Mediawiki-pagalba
...
* new title Mediawiki-pagalbaDELETEME
... * using suffixed form [[Template:Mediawiki-pagalbaDELETEME]] *
... resolving on page... ok.
... 25625 (0,"Kategorija:Contributors_LT") -> (14,"Contributors_LT") [[Category:Contributors LT]]
... * cannot resolve automatically; page exists with ID 27241 *
... * old title Contributors_LT
...
* new title Contributors_LTDELETEME
... * using suffixed form [[Category:Contributors LTDELETEME]] *
... resolving on page... ok.
... 25624 (0,"Kategorija:Kusurija") -> (14,"Kusurija") [[Category:Kusurija]]
... * cannot resolve automatically; page exists with ID 27242 *
... * old title Kusurija
...
* new title KusurijaDELETEME
... * using suffixed form [[Category:KusurijaDELETEME]] *
... resolving on page... ok.
... 25622 (0,"Kategorija:Matematika") -> (14,"Matematika") [[Category:Matematika]]
... * cannot resolve automatically; page exists with ID 27243 *
... * old title Matematika
...
* new title MatematikaDELETEME
... * using suffixed form [[Category:MatematikaDELETEME]] *
... resolving on page... ok.
... 25623 (0,"Kategorija:Skaičiavimo_sistemos") -> (14,"Skaičiavimo_sistemos") [[Category:Skaičiavimo sistemos]]
... * cannot resolve automatically; page exists with ID 27244 *
... * old title Skaičiavimo_sistemos
...
* new title Skaičiavimo_sistemosDELETEME
... * using suffixed form [[Category:Skaičiavimo sistemosDELETEME]] *
... resolving on page... ok.

Oh noeees
reedy@tin:/a/common/php-1.24wmf12$ mwscript namespaceDupes.php betawikiversity --fix --suffix=DELETEME

Looks good!

(In reply to Sam Reed (reedy) from comment #8)

Just moved them to pages suffixed with DELETEME. I'll let you confirm and
delete them locally on the wiki

Thanks! All conflicts are resolved and the suffixed pages deleted locally.