Page MenuHomePhabricator

Even if all the aliases for a specific language have been removed, the language code still exists
Closed, ResolvedPublic

Description

Author: li3939108

Description:
For example, query with http://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q43684&languages=zh-cn&format=jsonfm&props=aliases

will get
{

"entities": {
    "q43684": {
        "id": "q43684",
        "type": "item",
        "aliases": {
            "zh-cn": [

            ]
        }
    }
},
"success": 1

}

data.entities['q43684'].aliases['zh-cn'] = [];
It is an empty set.

If one enters an alias, then removes it, there could be an empty set left.


Version: unspecified
Severity: normal

Details

Reference
bz48744

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:26 AM
bzimport set Reference to bz48744.
bzimport added a subscriber: Unknown Object (MLST).

Related URL: https://gerrit.wikimedia.org/r/65130 (Gerrit Change I087433203db60abfc3c59883b12894bc965bba59)

Verified on dev system and Wikidata demo sprint 22-6