The GrowthExperiments extension queries the database directly to count the number of thanks a given user has.
While working on T324166 a similar need was identified.
There are 2 existing problems with the code living in GrowthExperiments:
- any changes to the internals of thanks would need to be reflected in GrowthExperiments.
- No reuse
TODO
- Thanks should provide a new service for accessing number of thanks
- GrowthExperiments updated to use the new service.