Page MenuHomePhabricator

Cognate doesn't properly create interwiki links for Shawiya Wiktionary (shy.wiktionary.org)
Open, Needs TriagePublic

Description

Problem:
Cognate correctly creates interwiki links from Shawiya Wiktionary to other language Wiktionaries but does not create interwiki links from the other WIktionaries to Shawiya Wiktionary.

Example:
https://shy.wiktionary.org/wiki/ameqnin has an interwikilink to French Wiktionary's https://fr.wiktionary.org/wiki/ameqnin.
https://fr.wiktionary.org/wiki/ameqnin does not have a interwiki link to https://shy.wiktionary.org/wiki/ameqnin

Acceptance criteria:

  • Interwiki links for Shawiya WIktionary are added to the sitebar for all other language Wiktionaries where an article exists.

Background information:

Event Timeline

Meno25 created this task.Jul 31 2020, 3:23 PM
Restricted Application added subscribers: alanajjar, Aklapper. · View Herald TranscriptJul 31 2020, 3:23 PM
Meno25 updated the task description. (Show Details)Jul 31 2020, 3:23 PM

@Meno25: Hi, how is this related to Cognate (as that is mentioned nowhere in the task description)?
Removing Wiktionary as this is about one single website - see its project description.

Meno25 added a comment.Aug 1 2020, 9:55 AM

@Meno25: Hi, how is this related to Cognate (as that is mentioned nowhere in the task description)?
Removing Wiktionary as this is about one single website - see its project description.

Hi. I wrote this task description quickly (as I had other things to do at that time), so, I didn't put much thought about how it should be categorized. Feel free to recategorize the task as needed.

Lydia_Pintscher closed this task as Resolved.Aug 12 2020, 8:51 AM
Lydia_Pintscher claimed this task.
Lydia_Pintscher added a subscriber: Lydia_Pintscher.

Interwiki links on Wiktionary are built automatically now with the Cognate extension. It works for example here: https://shy.wiktionary.org/wiki/ameqnin

Meno25 reopened this task as Open.Aug 13 2020, 8:49 AM

Interwiki links on Wiktionary are built automatically now with the Cognate extension. It works for example here: https://shy.wiktionary.org/wiki/ameqnin

Hi @Lydia_Pintscher No, it does not work. Please see a screenshot of the link that you provided in your comment.

(Page "ameqnin" on shywiktionary)

    • The page correctly links to the frwiktionary entry. (See the red rectangle.)
    • So, links from shywiktionary to frwiktionary are OK.

    Now look to a screenshot of the same entry on frwiktionary.

    (Page "ameqnin" on frwiktionary)

    {M312}

    • The page does not link to shywiktionary. (See the rectangle.)
    • So, links from frwiktionary to shywiktionary are not OK.
    • This happens with links to shywiktionary on other languages of Wiktionary (enwiktionary, frwiktionary, etc)
    • There is probably something wrong in the configuration of the Cognate extension regarding shywiktionary. I would appreciate it if you reviewed the matter. Thank you.

    Aha! Thank you. Now it makes sense.

    Lydia_Pintscher renamed this task from Interwiki links to Shawiya Wiktionary (shy.wiktionary.org) are not recognized as such to Cognate doesn't properly create interwiki links for Shawiya Wiktionary (shy.wiktionary.org).Aug 14 2020, 8:59 AM
    Lydia_Pintscher added a project: Cognate.
    Lydia_Pintscher updated the task description. (Show Details)
    Restricted Application added a project: Wikidata. · View Herald TranscriptAug 14 2020, 9:00 AM

    Somehow shywiktionary is not added to Cognate database (it's enabled there though):

    ladsgroup@mwmaint1002:~$ mwscript mysql.php --wiki=shywiktionary --cluster extension1 --wikidb cognate_wiktionary
    wikiadmin@10.64.32.11(cognate_wiktionary)> select * from cognate_sites where cgsi_dbname = 'shywiktionary' limit 5;
    Empty set (0.00 sec)
    
    wikiadmin@10.64.32.11(cognate_wiktionary)> select * from cognate_sites where cgsi_dbname = 'frwiktionary' limit 5;
    +---------------------+--------------+----------------+
    | cgsi_key            | cgsi_dbname  | cgsi_interwiki |
    +---------------------+--------------+----------------+
    | 2097444195020099748 | frwiktionary | fr             |
    +---------------------+--------------+----------------+
    1 row in set (0.00 sec)

    Mentioned in SAL (#wikimedia-operations) [2020-08-17T21:57:31Z] <Amir1> ladsgroup@mwmaint1002:~$ mwscript extensions/Cognate/maintenance/populateCognateSites.php --wiki=aawiktionary --site-group wiktionary (T259360)

    Ladsgroup added a subscriber: Amire80.

    So it's there now and if you don't see it, you just need to purge the parser cache. Here's an example: https://fr.wiktionary.org/wiki/yila

    As you can see, The rendering is sorta broken, it can be because it's not in the interwiki sorting order or the fact that core doesn't have the language name for shy (It has it for shy-latn though, you can find the list in languages/data/Names.php). But this is out of Wikidata team now. I think @Amire80 and the languages team should handle the rendering ( I tried adding it to the interwiki sorting php file but it's really complicated).