Lucas_Werkmeister_WMDE added a comment.

  > It looks like it is just a caching issue and not actually stored in the 
data but that needs to be double checked.
  
  It does indeed look like the duplicate alias doesn’t result in an edit 
(unless other changes are made at the same time) and isn’t stored in any store 
that I’ve found so far:
  
  name=Special:EntityData
    $ curl -sL https://www.wikidata.org/wiki/Special:EntityData/Q4115189.json | 
jq -r '.entities.Q4115189.aliases.en | .[] | .value'
    Wikidata BOX
    Wikidata SandboxItem
    Property test
    sandbox
    SB
    test
  
  
  
  name=raw page content
    $ curl -sL 
'https://www.wikidata.org/w/api.php?action=query&titles=Q4115189&prop=revisions&rvprop=content&rvslots=main&format=json&formatversion=2'
  | jq -r '.query.pages[0].revisions[0].slots.main.content | fromjson | 
.aliases.en | .[] | .value'
    Wikidata BOX
    Wikidata SandboxItem
    Property test
    sandbox
    SB
    test
  
  
  
  name=term store
    mysql:[email protected] [wikidatawiki]> SELECT wbx_text FROM 
wbt_item_terms JOIN wbt_term_in_lang ON wbit_term_in_lang_id = wbtl_id JOIN 
wbt_text_in_lang ON wbtl_text_in_lang_id = wbxl_id JOIN wbt_text ON 
wbxl_text_id = wbx_id JOIN wbt_type ON wbtl_type_id = wby_id WHERE wbit_item_id 
= 4115189 AND wbxl_language = 'en' AND wby_name = 'alias';
    +----------------------+
    | wbx_text             |
    +----------------------+
    | Wikidata BOX         |
    | Wikidata SandboxItem |
    | Property test        |
    | sandbox              |
    | SB                   |
    | test                 |
    +----------------------+
    6 rows in set (0.006 sec)
  
  But for a caching issue it’s remarkably persistent – the duplicate “test” 
alias on that item has so far survived removing the alias 
<https://www.wikidata.org/w/index.php?title=Q4115189&diff=prev&oldid=1989729602>
 (after which it was shown once rather than twice, when it should not have been 
shown at all), removing an unrelated alias 
<https://www.wikidata.org/w/index.php?title=Q4115189&diff=prev&oldid=1989734378>,
 changing statements 
<https://www.wikidata.org/w/index.php?title=Q4115189&diff=prev&oldid=1989732589>,
 and restoring an old revision 
<https://www.wikidata.org/w/index.php?title=Q4115189&diff=prev&oldid=1989915665>
 (so it’s now again showing the alias twice when it should be shown once). I 
have absolutely no idea where the termbox can possibly be getting this double 
alias from.
  
  (Note that this affects both the server-side-rendered termbox that you get 
without JavaScript and the client-side-rendered termbox that you get if you 
start editing and then cancel without doing anything.)

TASK DETAIL
  https://phabricator.wikimedia.org/T348542

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Arian_Bozorg, ItamarWMDE, Aklapper, 
Lydia_Pintscher, Danny_Benjafield_WMDE, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to