Page MenuHomePhabricator

Display vote count on wish and focus area detail pages
Closed, ResolvedPublic3 Estimated Story Points

Description

Background

What the task description says. As it turns out, this may not be as simple as it sounds since the entity template renderers get called before the votes are counted. A fresh DB query may be required.

Update: I'm hoping to leverage some other post-parse, pre-cache hook so that we don't have to re-fetch. The OutputPageParserOutput hook has what I think I need, but OutputPage::addHTML() will insert the HTML too early in the document.

Acceptance criteria

  • The "This focus area currently has 0 supporters" (and same for "wish") should accurately state the number of votes on the corresponding /Votes subpage.

Event Timeline

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

[mediawiki/extensions/CommunityRequests@master] Query updated vote count on wish and focus area pages

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

MusikAnimal changed the task status from Open to In Progress.Aug 4 2025, 6:06 PM

Change #1175175 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Show message with the updated vote count on wish and focus area pages

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