Page MenuHomePhabricator

Need to run namespaceDupes on hywikibooks
Closed, ResolvedPublic

Description

Author: jrvezh

Description:
Please add the following namespaces to the Armenian Wikibooks (hy.wikibooks.org):

Cookbook = Եփութուխ
Cookbook talk = Եփութուխի քննարկում
Wikijunior = Վիքիփոքրիկ
Wikijunior talk = Վիքիփոքրիկի քննարկում

The announcement/discussion at Wikibooks about this addition was made on August 8th and can be seen here:
http://hy.wikibooks.org/wiki/Վիքիգրքեր:Խորհրդարան#.D4.B5.D6.83.D5.B8.D6.82.D5.A9.D5.B8.D6.82.D5.AD_.D6.87_.D5.8E.D5.AB.D6.84.D5.AB.D6.83.D5.B8.D6.84.D6.80.D5.AB.D5.AF_.D5.A1.D5.B6.D5.BE.D5.A1.D5.B6.D5.A1.D5.BF.D5.A1.D6.80.D5.AE.D6.84.D5.B6.D5.A5.D6.80.D5.AB_.D5.BD.D5.BF.D5.A5.D5.B2.D5.AE.D5.B8.D6.82.D5.B4.D5.A8

Thank you.


Version: unspecified
Severity: minor
URL: hy.wikibooks.org

Details

Reference
bz53162

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:06 AM
bzimport set Reference to bz53162.

Do you want the English names set up as aliases? (e.g. Cookbook:Foo could automatically redirect to Եփութուխ:Foo)

jrvezh wrote:

(In reply to comment #1)

Do you want the English names set up as aliases? (e.g. Cookbook:Foo could
automatically redirect to Եփութուխ:Foo)

Sorry for the late reply. Yes, that would be great :) Thank you.

Change 84501 had a related patch set uploaded by TTO:
Add Cookbook and Wikijunior namespaces for hywikibooks

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

Change 84501 merged by jenkins-bot:
Add Cookbook and Wikijunior namespaces for hywikibooks

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

Congratulations, you have your new namespaces :)

jrvezh wrote:

(In reply to comment #5)

Congratulations, you have your new namespaces :)

Thank you so much :)

There is a little bug associated with it though, which I noticed a few days ago as well, but thought it might be there because the change is new and would resolve itself, but I'm still noticing it:

Searching for a page that exists in the Cookbook namespace, such as Եփութուխ:Քրքում, leads to nowhere while the page actually existed before (if I search with the namespace cookbook in small letters, it does return the name of the page in search results, but again clicking on it leads to nowhere). So for example, all the pages which are still listed in the Category:Ingredients (https://hy.wikibooks.org/wiki/Կատեգորիա:Բաղադրամասեր) seem to be empty when opened. The same applies to the Wikijunior namespace.

Again, I don't know if this is just so because the patch is new and takes some time for it to stabilize, but I thought to report it here.

Thank you again.

Reedy: could you please run namespaceDupes.php on hywikibooks? Thanks.

Marking critical, since many wiki pages have become inaccessible on this wiki.

There is no duplicates around:

$ mwscript namespaceDupes.php --wiki=huwikibooks

Looks good!
$

Created attachment 13372
output of: mwscript namespaceDupes.php --wiki=hywikibooks

There is a bunch of pages that are not accessible apparently ...

Attached:

Created attachment 13373
run with --fix

Taking one random page in the category of comment #6:
https://hy.wikibooks.org/wiki/Կատեգորիա:Բաղադրամասեր

... 2414 (0,"Եփութուխ:Բաղադրամասեր") -> (102,"Բաղադրամասեր") [[Եփութուխ:Բաղադրամասեր]]

Attached is the output of:

mwscript namespaceDupes.php --wiki=hywikibooks --fix

Attached:

Created attachment 13374
2nd run with --fix

Attached:

After a couple run of --fix (which automatically rename the page), there are five duplicate pages between the main namespace (0) and the cookbook namespace (102):

hashar@tin:~$ mwscript namespaceDupes.php --wiki=hywikibooks --fix
... 2426 (0,"Եփութուխ:դոլմա") -> (102,"Դոլմա") [[Եփութուխ:Դոլմա]]
... * cannot resolve automatically; page exists with ID 2434 *
... 2383 (0,"Եփութուխ:թխման_փոշի") -> (102,"Թխման_փոշի") [[Եփութուխ:Թխման փոշի]]
... * cannot resolve automatically; page exists with ID 2382 *
... 2381 (0,"Եփութուխ:կարագթան") -> (102,"Կարագթան") [[Եփութուխ:Կարագթան]]
... * cannot resolve automatically; page exists with ID 2380 *
... 2413 (0,"Եփութուխ:կտավատ") -> (102,"Կտավատ") [[Եփութուխ:Կտավատ]]
... * cannot resolve automatically; page exists with ID 2379 *
... 2385 (0,"Եփութուխ:ցորենի_սև_ալյուր") -> (102,"Ցորենի_սև_ալյուր") [[Եփութուխ:Ցորենի սև ալյուր]]
... * cannot resolve automatically; page exists with ID 2384 *

Oh noeees
hashar@tin:~$

I have renamed the five pages from the main namespace with a /BROKEN suffix and have them moved to the namespace 102. Those pages will need to be triaged/edited. The script output is:

hashar@tin:~$ mwscript namespaceDupes.php --wiki=hywikibooks --fix --suffix=/BROKEN
... 2426 (0,"Եփութուխ:դոլմա") -> (102,"Դոլմա") [[Եփութուխ:Դոլմա]]
... * cannot resolve automatically; page exists with ID 2434 *
... * old title դոլմա
...
* new title դոլմա/BROKEN
... * using suffixed form [[Եփութուխ:Դոլմա/BROKEN]] *
... resolving on page... ok.
... 2383 (0,"Եփութուխ:թխման_փոշի") -> (102,"Թխման_փոշի") [[Եփութուխ:Թխման փոշի]]
... * cannot resolve automatically; page exists with ID 2382 *
... * old title թխման_փոշի
...
* new title թխման_փոշի/BROKEN
... * using suffixed form [[Եփութուխ:Թխման փոշի/BROKEN]] *
... resolving on page... ok.
... 2381 (0,"Եփութուխ:կարագթան") -> (102,"Կարագթան") [[Եփութուխ:Կարագթան]]
... * cannot resolve automatically; page exists with ID 2380 *
... * old title կարագթան
...
* new title կարագթան/BROKEN
... * using suffixed form [[Եփութուխ:Կարագթան/BROKEN]] *
... resolving on page... ok.
... 2413 (0,"Եփութուխ:կտավատ") -> (102,"Կտավատ") [[Եփութուխ:Կտավատ]]
... * cannot resolve automatically; page exists with ID 2379 *
... * old title կտավատ
...
* new title կտավատ/BROKEN
... * using suffixed form [[Եփութուխ:Կտավատ/BROKEN]] *
... resolving on page... ok.
... 2385 (0,"Եփութուխ:ցորենի_սև_ալյուր") -> (102,"Ցորենի_սև_ալյուր") [[Եփութուխ:Ցորենի սև ալյուր]]
... * cannot resolve automatically; page exists with ID 2384 *
... * old title ցորենի_սև_ալյուր
...
* new title ցորենի_սև_ալյուր/BROKEN
... * using suffixed form [[Եփութուխ:Ցորենի սև ալյուր/BROKEN]] *
... resolving on page... ok.

Oh noeees
hashar@tin:~$

So one has to triage the original pages:

[[Եփութուխ:Դոլմա/BROKEN]]
[[Եփութուխ:Թխման փոշի/BROKEN]]
[[Եփութուխ:Կարագթան/BROKEN]]
[[Եփութուխ:Կտավատ/BROKEN]]
[[Եփութուխ:Ցորենի սև ալյուր/BROKEN]]

Once done, I guess you can close the bug report :-]

hashar@tin:~$ mwscript namespaceDupes.php --wiki=hywikibooks

Looks good!
hashar@tin:~$

So that is solved for now. Whenever you have sorted out the BROKEN pages, you can close the bug :-]

I posted at the hywikibooks community portal with a list of the five pages, but they all look like broken redirects with no edit history so I don't think we need to stress about them.

Thanks for your help, hashar.

jrvezh wrote:

Those five pages were originally redirects from Cookbook:something to Cookbook:Something, and once cookbook became a namespace, the two became duplicates of one another while also redirecting, and are currently deleted.

Antoine "hashar" Musso and This, that and the other, thank you so much for all your help =)

jrvezh wrote:

Sorry to bother you again, but I just noticed couple more bugs associated with this fix.

One of them is about the pages that included a redirect from main space to the new namespaces, such as this one:
https://hy.wikibooks.org/wiki/Թան

As you can see, the page does not redirect at once, and shows the new namespace link as red, though clicking on it actually opens the page.

The other bug is about the search function in the new namespaces not working. For example this search (https://hy.wikibooks.org/w/index.php?title=Սպասարկող%3AՈրոնել&profile=advanced&search=Թխման+փոշի&fulltext=Search&ns102=1&redirs=1&profile=advanced) returns nothing, while the page searched for actually exists and is directly accessible: https://hy.wikibooks.org/wiki/Եփութուխ:Թխման_փոշի (it can be found in the search results though if the namespace name followed by a colon is typed before the page name while searching)

I would appreciate it if these two bugs could be fixed as well. Thank you!

(In reply to comment #18)

One of them is about the pages that included a redirect from main space to
the
new namespaces, such as this one:
https://hy.wikibooks.org/wiki/Թան

As you can see, the page does not redirect at once, and shows the new
namespace
link as red, though clicking on it actually opens the page.

You simply need to click "edit" on each of these redirects, make no changes, and click "save".

The other bug is about the search function in the new namespaces not working.
For example this search
(https://hy.wikibooks.org/w/index.
php?title=Սպասարկող%3AՈրոնել&profile=advanced&search=Թխման+փոշի&fulltext=Sear
ch&ns102=1&redirs=1&profile=advanced)
returns nothing, while the page searched for actually exists and is directly
accessible: https://hy.wikibooks.org/wiki/Եփութուխ:Թխման_փոշի (it can be
found
in the search results though if the namespace name followed by a colon is
typed
before the page name while searching)

Don't know about this one, sorry.

I think your second problem will be fixed after each page in your new namespace is edited. It may be as simple as making a dummy edit [1] in order to force the search index to be rebuilt.

[1] https://hy.wikibooks.org/w/index.php?title=%D4%B5%D6%83%D5%B8%D6%82%D5%A9%D5%B8%D6%82%D5%AD:%D4%B9%D5%AD%D5%B4%D5%A1%D5%B6_%D6%83%D5%B8%D5%B7%D5%AB&diff=8144&oldid=5979

Marking fixed, since there's nothing more for the developers to do here: the solution to the problems needs to be carried out on-wiki.