Page MenuHomePhabricator

Assign incrementing unique IDs to new schemas
Closed, ResolvedPublic

Description

Make sure that even after deleting schemas, IDs are never reused.

We need to check how this is currently done in Wikibase, WikibaseLexeme and WikibaseMediaInfo…

Event Timeline

We need to check how this is currently done in Wikibase, WikibaseLexeme and WikibaseMediaInfo…

MediaInfo does not use incrementing IDs.

Wikibase & Lexeme both use WikibaseRepo::newIdGenerator (within the SqlStore)

Change 486079 had a related patch set uploaded (by Michael Große; owner: Michael Große):
[mediawiki/extensions/WikibaseSchema@master] Add incremental ID generator

https://gerrit.wikimedia.org/r/486079

Change 486079 merged by jenkins-bot:
[mediawiki/extensions/WikibaseSchema@master] Add incremental ID generator

https://gerrit.wikimedia.org/r/486079

I think that is mostly done as well, from a product point of view. Though we might touch that code again for some refactoring. Nonetheless, I think we can close this ticket.