Yurik added a comment.

Update: I have implemented a custom extension that overrides default item https://github.com/nyurik/OsmWikibase :

	public static function onWikibaseRepoEntityTypes( &$entityTypeDefinitionsArray ) {

		$entityTypeDefinitionsArray['item']['entity-id-pattern'] = OsmItemId::PATTERN;

		$entityTypeDefinitionsArray['item']['entity-id-builder'] = function ( $serialization ) {
			return new OsmItemId( $serialization );
		};

		$entityTypeDefinitionsArray['item']['entity-id-composer-callback'] = function ( $repositoryName, $uniquePart ) {
			return OsmItemId::newFromRepositoryAndNumber( $repositoryName, $uniquePart );
		};

		return true;
	}

The OsmItemId extends ItemId class, overriding the 'Q' to 'Y'.

There are a few other places with 'Q' as part of the Wikibase extension, not in the model. I'm still trying to determine what they affect.


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

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

To: Yurik
Cc: thiemowmde, Bugreporter, gerritbot, daniel, Aklapper, Yurik, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Adrian1985, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, LawExplorer, Lewizho99, Maathavan, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to