Last modified: 2013-06-07 09:55:45 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 T50744, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48744 - Even if all the aliases for a specific language have been removed, the language code still exists
Even if all the aliases for a specific language have been removed, the langua...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 10:59 UTC by fanchy
Modified: 2013-06-07 09:55 UTC (History)
4 users (show)

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


Attachments

Description fanchy 2013-05-23 10:59:59 UTC
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.
Comment 1 Gerrit Notification Bot 2013-05-23 15:38:53 UTC
Related URL: https://gerrit.wikimedia.org/r/65130 (Gerrit Change I087433203db60abfc3c59883b12894bc965bba59)
Comment 2 abraham.taherivand 2013-06-07 09:55:45 UTC
Verified on dev system and Wikidata demo sprint 22-6

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


Navigation
Links