Page MenuHomePhabricator

Update wish creation to create numeric title
Closed, ResolvedPublic

Description

This addresses https://meta.wikimedia.org/wiki/Talk:Community_Wishlist#Technical_question:_naming_of_wishes let's introduce numerical titles in the form W[1-9][0-9]*

We can do it in a similar way to how wikibase does it i.e.

  • store the latest id in a db table (wb_id_counters for wikibase)
  • when you're creating a new wish get the latest id, add 1 and update with the new value inside a transaction
  • and then create the new page with W<the new id> as the title

When this is done we'll need to figure out how to migrate existing wishes (but note this is worth doing even if we do not migrate them)

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1139950 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] sql: update schema to include translations, remove votes table

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

Change #1143917 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] Add ID generator to create auto-incrementing page titles

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

Change #1139950 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] sql: redesign schema, starting with a clean slate

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

Change #1143917 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Add ID generator to create auto-incrementing page titles

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

Change #1148985 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] [WIP]: SpecialWishlistIntake: move saving of wishes to the server

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

Change #1148985 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] SpecialWishlistIntake: move saving of wishes to the server

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