Page MenuHomePhabricator

Add vote change wikitext to use parser function instead of template
Closed, ResolvedPublic2 Estimated Story Points

Description

Should look like this instead of the template

{{#CommunityRequests: vote
| username = Admin
| timestamp = 2025-07-10T19:40:14Z
| comment = Make sure your title contains a brief description of the wish or problem.
}}

Derived Requirement

Ensure that the voting system on the Community Wishlist page uses the #CommunityRequests: parser function instead of the previous template-based syntax when rendering a vote. The updated wikitext should follow this structure:

wikitext
{{#CommunityRequests: vote
| username = Admin
| timestamp = 2025-07-10T19:40:14Z
| comment = Make sure your title contains a brief description of the wish or problem.
}}
Test Steps

Test Case 1: Verify vote is stored using the #CommunityRequests parser function

  1. Log in to the beta wiki with voting rights.
  2. Navigate to the Community Wishlist voting interface (e.g., Special:CommunityWishlistSurvey2025 or the relevant Vue-based voting interface).
  3. Cast a vote (support, oppose, or neutral) on any wish.
  4. Navigate to the corresponding wiki page or data module where the vote is stored.
  5. ✅❓❌⬜ AC1: Confirm that the vote is stored using the #CommunityRequests: parser function syntax instead of a template.
  6. ✅❓❌⬜ AC2: Verify that the username, timestamp, and comment parameters are present and correctly populated.
  7. ✅❓❌⬜ AC3: Confirm that the rendered vote appears as expected on the Community Wishlist page (i.e., correct style, attribution, and visibility).
  8. ✅❓❌⬜ AC4: Check that submitting another vote or editing an existing vote continues to use the parser function format.

QA Results - Commtech.toolforge

Details

Event Timeline

KSiebert changed the task status from Open to In Progress.Jul 16 2025, 9:50 AM

Change #1170183 had a related patch set uploaded (by Dmaza; author: Dmaza):

[mediawiki/extensions/CommunityRequests@master] Send the right wikitext for votes

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

Change #1170183 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Send the right wikitext for votes

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

@dmaza Before I test out RTL, different language and mobile, can you please review the results below?

Test Result - commtech.toolforge

Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: commtech.toolforge
OS: macOS Sequoia 15.5
Browser: Chrome 138
Device: MBA
Emulated Device: NA

Test Artifact(s):
https://commtech.toolforge.org/Community_Wishlist/Wishes/W6
https://commtech.toolforge.org/Community_Wishlist/Wishes/W6/Votes

Test Steps

Test Case 1: Verify vote is stored using the #CommunityRequests parser function

  1. Log in to the beta wiki with voting rights.
  2. Navigate to the Community Wishlist voting interface (e.g., Special:CommunityWishlistSurvey2025 or the relevant Vue-based voting interface).
  3. Cast a vote (support, oppose, or neutral) on any wish.
  4. Navigate to the corresponding wiki page or data module where the vote is stored.
  5. AC1: Confirm that the vote is stored using the #CommunityRequests: parser function syntax instead of a template.

I don't see #CommunityRequests: vote, per description

2025-07-30_11-11-19.png (1×951 px, 168 KB)

  1. AC2: Verify that the username, timestamp, and comment parameters are present and correctly populated.

See AC1

  1. AC3: Confirm that the rendered vote appears as expected on the Community Wishlist page (i.e., correct style, attribution, and visibility).

As seen in the screenshot, there are 3 supports, which are also displayed wrong, but also show 0 supporters on it too.

2025-07-30_09-55-52.png (1×1 px, 221 KB)

  1. AC4: Check that submitting another vote or editing an existing vote continues to use the parser function format.

Is this what you wanted to see when editing a vote? This all seems a little buggy right now.