GitLab's annual major release is around the corner. Along with a lot of new and exciting features, there will be a few breaking changes. Learn more here.

Commit 2f190d4c authored by Mark Harding's avatar Mark Harding
Browse files

(chore): rollback interaction counters again due to poor performance

parent 12d6209d
Pipeline #318007144 passed with stages
in 17 minutes and 31 seconds
......@@ -73,17 +73,17 @@ class Events
* Add remind and quote counts to entities
* NOTE: Remind not moved over yet, lets see how quote counts scale
*/
$this->eventsDispatcher->register('export:extender', 'activity', function ($event) {
$params = $event->getParameters();
$activity = $params['entity'];
$export = $event->response() ?: [];
// $this->eventsDispatcher->register('export:extender', 'activity', function ($event) {
// $params = $event->getParameters();
// $activity = $params['entity'];
// $export = $event->response() ?: [];
/** @var InteractionCounters */
$interactionCounters = Di::_()->get('Feeds\Activity\InteractionCounters');
// /** @var InteractionCounters */
// $interactionCounters = Di::_()->get('Feeds\Activity\InteractionCounters');
$export['quotes'] = $interactionCounters->setCounter(InteractionCounters::COUNTER_QUOTES)->get($activity);
// $export['quotes'] = $interactionCounters->setCounter(InteractionCounters::COUNTER_QUOTES)->get($activity);
$event->setResponse($export);
});
// $event->setResponse($export);
// });
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment