Last modified: 2013-10-02 01:10:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55162, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53162 - Need to run namespaceDupes on hywikibooks
Need to run namespaceDupes on hywikibooks
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: High minor (vote)
: ---
Assigned To: Antoine "hashar" Musso (WMF)
hy.wikibooks.org
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-21 17:47 UTC by jrvezh
Modified: 2013-10-02 01:10 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
output of: mwscript namespaceDupes.php --wiki=hywikibooks (44.28 KB, text/plain)
2013-09-25 08:13 UTC, Antoine "hashar" Musso (WMF)
Details
run with --fix (14.15 KB, text/plain)
2013-09-25 08:16 UTC, Antoine "hashar" Musso (WMF)
Details
2nd run with --fix (38.56 KB, text/plain)
2013-09-25 08:17 UTC, Antoine "hashar" Musso (WMF)
Details

Description jrvezh 2013-08-21 17:47:25 UTC
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.
Comment 1 This, that and the other (TTO) 2013-08-23 11:04:36 UTC
Do you want the English names set up as aliases? (e.g. Cookbook:Foo could automatically redirect to Եփութուխ:Foo)
Comment 2 jrvezh 2013-09-11 16:39:45 UTC
(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.
Comment 3 Gerrit Notification Bot 2013-09-17 09:11:01 UTC
Change 84501 had a related patch set uploaded by TTO:
Add Cookbook and Wikijunior namespaces for hywikibooks

https://gerrit.wikimedia.org/r/84501
Comment 4 Gerrit Notification Bot 2013-09-18 20:50:59 UTC
Change 84501 merged by jenkins-bot:
Add Cookbook and Wikijunior namespaces for hywikibooks

https://gerrit.wikimedia.org/r/84501
Comment 5 This, that and the other (TTO) 2013-09-22 09:30:37 UTC
Congratulations, you have your new namespaces :)
Comment 6 jrvezh 2013-09-22 11:41:20 UTC
(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.
Comment 7 This, that and the other (TTO) 2013-09-22 23:55:56 UTC
Reedy: could you please run namespaceDupes.php on hywikibooks? Thanks.
Comment 8 This, that and the other (TTO) 2013-09-24 09:25:50 UTC
Marking critical, since many wiki pages have become inaccessible on this wiki.
Comment 9 Antoine "hashar" Musso (WMF) 2013-09-25 08:10:19 UTC
There is no duplicates around:

$ mwscript namespaceDupes.php --wiki=huwikibooks

Looks good!
$
Comment 10 Antoine "hashar" Musso (WMF) 2013-09-25 08:13:09 UTC
Created attachment 13372 [details]
output of: mwscript namespaceDupes.php --wiki=hywikibooks

There is a bunch of pages that are not accessible apparently ...
Comment 11 Antoine "hashar" Musso (WMF) 2013-09-25 08:16:24 UTC
Created attachment 13373 [details]
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
Comment 12 Antoine "hashar" Musso (WMF) 2013-09-25 08:17:12 UTC
Created attachment 13374 [details]
2nd run with --fix
Comment 13 Antoine "hashar" Musso (WMF) 2013-09-25 08:22:03 UTC
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 :-]
Comment 14 Antoine "hashar" Musso (WMF) 2013-09-25 08:23:08 UTC
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 :-]
Comment 15 This, that and the other (TTO) 2013-09-25 09:38:00 UTC
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.
Comment 16 jrvezh 2013-09-25 11:21:33 UTC
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 =)
Comment 17 Antoine "hashar" Musso (WMF) 2013-09-25 12:07:17 UTC
Congratulations!
Comment 18 jrvezh 2013-09-26 08:31:07 UTC
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!
Comment 19 Antoine "hashar" Musso (WMF) 2013-09-30 09:52:46 UTC
Lowering severity.
Comment 20 This, that and the other (TTO) 2013-09-30 10:33:05 UTC
(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.
Comment 21 This, that and the other (TTO) 2013-10-02 01:10:16 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links