Page MenuHomePhabricator

wikibase API should accept upper-case ID prefixes
Closed, DeclinedPublic

Description

Wikibase uses "q123" for item IDs but "Q123" for the corresponding page title. The API should accept both form of the ID, for conveniance. The ID is still unique, we just define the prefix to be case-agnostic.


Version: unspecified
Severity: minor

Details

Reference
bz41558

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:56 AM
bzimport set Reference to bz41558.
bzimport added a subscriber: Unknown Object (MLST).

Force lower case on ids in the API? Or make a method to normalize just the prefix into a known form?

I think EntityContentFactory::getFromPrefixedId should simply accept upper- and lower case prefixes. Is there anything else that would need changing?

Or rather, EntityContentFactory::getEntityTypeFromPrefixedId

Confirmed. On the dev system it still has this behavior.