Page MenuHomePhabricator

Migration script does not update /Votes subpages
Closed, ResolvedPublic

Description

After running the migrateFromGadget maintenance script, any /Votes subpags of FAs are moved, but they still use the old {{Community Wishlist/Support}} template, when it should be using the new parser function {{#CommunityRequests:vote}}.

Acceptance criteria

  • The script should look for a /Votes subpage when processing FAs
  • If it exists, it should do a find/replace changing {{Community Wishlist/Support to {{#CommunityRequests: vote and that should do it

Derived Requirement

Ensure that the migrateFromGadget maintenance script updates /Votes subpages when processing Focus Areas (FAs). If a /Votes subpage exists, the script must replace the old template {{Community Wishlist/Support}} with the new parser function {{#CommunityRequests:vote}}.

Test Steps

Test Case 1: Script updates /Votes subpages with new parser function

  1. Create a Focus Area (FA) page
  2. Open the /Votes subpage.
  3. ✅❓❌⬜ AC1: Confirm that a /Votes subpage is created when processing FAs

QA Results - Meta Beta

ACStatusDetails
1T404758#11238025

Event Timeline

Change #1189624 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/extensions/CommunityRequests@master] Migrate /Votes subpages when migrating parent focus area pages

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

Change #1189624 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Migrate /Votes subpages when migrating parent focus area pages

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

MusikAnimal changed the task status from Open to In Progress.Sep 24 2025, 9:11 PM
Samwilson changed the task status from In Progress to Open.Sep 29 2025, 8:26 AM

@Samwilson Confirmed that a /Votes subpage is created when processing FAs, as seen in the GIF/Screenshot. I will mark this as Resolved. Thanks for all your work!

Test Result - Meta Beta

Status: ✅ PASS
Environment: Meta Beta
OS: macOS Tahoe 26.0.1
Browser: Chrome 140
Device: MBA
Emulated Device: NA

Test Artifact(s):

https://meta.wikimedia.beta.wmcloud.org/wiki/Community_Wishlist/FA1/Votes

Test Steps

Test Case 1: Script updates /Votes subpages with new parser function

  1. Create a Focus Area (FA) page
  2. Open the /Votes subpage.
  3. AC1: Confirm that a /Votes subpage is created when processing FAs
VotesNo Votes
2025-10-02_11-02-11.mp4.gif (1,024×1,062 px, 1 MB)
2025-10-02_11-02-39.png (806×602 px, 72 KB)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.
GMikesell-WMF updated the task description. (Show Details)