Page MenuHomePhabricator

UserInfoCard: Add `userInfo` property to UserImpact and allow extensions to hook into it
Closed, DeclinedPublic

Description

As part of T384725: [Epic] WE4.2.18 UserInfoCard experiment for assisting patrollers and moderators, the feature would like to store additional data in the UserImpact module for later use in the card. To minimize disruption to the module, we should:

  • Add a new property, userInfo to the UserImpact class (as well as any necessary utilities)
    • This property is an unstructured JSON blob
  • Add a hook where necessary to allow extensions to declare data to write to UserImpact and that data should be written to the userInfo property
    • This should cover the maintenance script, on-demand calcs, etc

Acceptance Criteria

Event Timeline

mszabo changed the task status from Open to In Progress.Mar 21 2025, 12:14 PM
mszabo claimed this task.
mszabo triaged this task as High priority.
kostajh changed the task status from In Progress to Stalled.Mar 26 2025, 10:29 AM
kostajh subscribed.

Thinking about this some more, let's discuss before proceeding. I think we can probably get by without adding a hook. The idea would be to get as much as possible directly in the GrowthExperiments Impact store. Then add additional data points by querying on the fly in the CheckUser service that wraps the GrowthExperiments service.

I'm declining it, per my comment in T389503#10677689