Page MenuHomePhabricator

Create class to calculate progress towards goal
Closed, ResolvedPublic

Description

  • Introduce a new GoalProgressTracker (name TBD) that accepts an EventGoal and an event, and outputs a floating point percentage of goal completion

Event Timeline

Daimona renamed this task from Behaviour layer, progress tracking to Create class to calculate progress towards goal.Jan 13 2026, 10:43 PM
Daimona updated the task description. (Show Details)

Change #1236266 had a related patch set uploaded (by Mhorsey; author: Mhorsey):

[mediawiki/extensions/CampaignEvents@master] Add Calculator for event goal completion

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

Change #1236266 merged by jenkins-bot:

[mediawiki/extensions/CampaignEvents@master] Add Calculator for event goal completion

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

Daimona subscribed.

Introduce a new GoalProgressTracker (name TBD) that accepts an EventGoal and an event, and outputs a floating point percentage of goal completion

βœ… It's called EventGoalCompletionCalculator, it accepts an event ID rather than event object, plus a couple parameters for permission checks, but of course it does what it should.


Nothing user-facing, resolving.