Page MenuHomePhabricator

Request for WN namespace alias on Polish Wikinews
Closed, ResolvedPublicFeature

Description

Regarding the poll at plwikinews (https://pl.wikinews.org/wiki/Wikinews:Kawiarenka#Alias_WN), I would like to request an alias WN for the namespace Wikinews:.

There are currently around 30 pages with titles starting with WN: and they all are redirects to the metapages. When there is the requested alias, they are supposed to stay in Wikinews: (like WN:BAR should become Wikinews:BAR). Do we have to move these pages manually?

Event Timeline

Change 725132 had a related patch set uploaded (by Juan90264; author: Juan90264):

[operations/mediawiki-config@master] Add WN as an alias to project namespace in Polish Wikinews

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

Change 725132 merged by jenkins-bot:

[operations/mediawiki-config@master] Add WN as an alias to project namespace in Polish Wikinews

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

Mentioned in SAL (#wikimedia-operations) [2021-10-06T00:01:10Z] <tgr@deploy1002> Synchronized wmf-config/InitialiseSettings.php: Config: [[gerrit:725132|Add WN as an alias to project namespace in Polish Wikinews (T291344)]] (duration: 01m 04s)

Juan90264 closed this task as Resolved.EditedOct 6 2021, 12:06 AM

@Msz2001 Redirection from "WN:" to "Wikinews:" working, https://pl.wikinews.org/wiki/WN:Kawiarenka#Alias_WN

WN:FAQ was moved to https://pl.wikinews.org/w/index.php?title=Wikinews:FAQ/old&redirect=no - you might want to delete it.
WN: seems stuck:

$ mwscript namespaceDupes.php plwikinews
id=4839 ns=0 dbk=WN: *** invalid title
1 pages to fix, 0 were resolvable.

Not sure what to do about that. @Urbanecm maybe you are familiar with this situation?
The other WN: pseudo-namespace pages were simply renamed to Wikinews:

The page 'WN:' may be renamed for example to 'Wikinews:Empty' or something like that. We will then decide whether it's needed at all and what name it could have. As far as I remember, it's one of redirects to the shortcuts list (the other one being pretty standard 'WN:WN').

WN:FAQ was moved to https://pl.wikinews.org/w/index.php?title=Wikinews:FAQ/old&redirect=no - you might want to delete it.
WN: seems stuck:

$ mwscript namespaceDupes.php plwikinews
id=4839 ns=0 dbk=WN: *** invalid title
1 pages to fix, 0 were resolvable.

Not sure what to do about that. @Urbanecm maybe you are familiar with this situation?
The other WN: pseudo-namespace pages were simply renamed to Wikinews:

Page with that ID cannot exist with the new alias:

wikiadmin@10.64.16.7(plwikinews)> select * from page where page_id=4839\G
*************************** 1. row ***************************
           page_id: 4839
    page_namespace: 0
        page_title: WN:
 page_restrictions:
  page_is_redirect: 1
       page_is_new: 1
       page_random: 0.010726906444
      page_touched: 20150217225840
page_links_updated: NULL
       page_latest: 19445
          page_len: 30
page_content_model: wikitext
         page_lang: NULL
1 row in set (0.001 sec)

wikiadmin@10.64.16.7(plwikinews)>

page_title cannot be empty. The solution is to revert the change, do the move, revert the revert. I'll do that now (all locally at a mwdebug).

Mentioned in SAL (#wikimedia-operations) [2021-10-06T07:51:31Z] <urbanecm> Staging at mwdebug1001 for T291344

Mentioned in SAL (#wikimedia-operations) [2021-10-06T07:55:21Z] <urbanecm> mwdebug1001: scap pull (T291344 fix done)

Mentioned in SAL (#wikimedia-operations) [2021-10-06T07:56:06Z] <urbanecm> [urbanecm@mwmaint1002 ~]$ mwscript namespaceDupes.php plwikinews # T291344

Mentioned in SAL (#wikimedia-operations) [2021-10-06T07:56:14Z] <urbanecm> [urbanecm@mwmaint1002 ~]$ mwscript namespaceDupes.php plwikinews --fix # T291344

[urbanecm@mwmaint1002 ~]$ mwscript namespaceDupes.php plwikinews
id=4839 ns=0 dbk=WN:EMPTY -> Wikinews:EMPTY (no conflict) DRY RUN ONLY
1 pages to fix, 1 were resolvable.

0 links to fix, 0 were resolvable, 0 were deleted.

Looks good!
[urbanecm@mwmaint1002 ~]$ mwscript namespaceDupes.php plwikinews --fix
id=4839 ns=0 dbk=WN:EMPTY -> Wikinews:EMPTY (no conflict)
1 pages to fix, 1 were resolvable.

0 links to fix, 0 were resolvable, 0 were deleted.

Looks good!
[urbanecm@mwmaint1002 ~]$ mwscript namespaceDupes.php plwikinews
0 pages to fix, 0 were resolvable.

0 links to fix, 0 were resolvable, 0 were deleted.

Looks good!
[urbanecm@mwmaint1002 ~]$

wikiadmin@10.64.48.35(plwikinews)> select * from page where page_id=4839\G
*************************** 1. row ***************************
           page_id: 4839
    page_namespace: 4
        page_title: EMPTY
 page_restrictions:
  page_is_redirect: 1
       page_is_new: 0
       page_random: 0.010726906444
      page_touched: 20211006075331
page_links_updated: 20211006075332
       page_latest: 248425
          page_len: 30
page_content_model: wikitext
         page_lang: NULL
1 row in set (0.001 sec)

wikiadmin@10.64.48.35(plwikinews)>

All looks good now.

I suppose this is a bug in namespaceDupes.php then - if the title is invalid, it should apply the prefix/suffix but doesn't.

I suppose this is a bug in namespaceDupes.php then - if the title is invalid, it should apply the prefix/suffix but doesn't.

Proposed a fix in https://gerrit.wikimedia.org/r/c/mediawiki/core/+/727004