Skip to content

(feature) Active users index

Brian Hatchet requested to merge active-users-index into master

Active Users

A new CLI job that buckets minds-metrics into user states for KITE. Queries elastic search for n+1 days into the past. Buckets user active action counts per day.

UserState has an algorithm for calculating user states. Core: More than 75% of n active days in the period Casual: 25% of n active days Curious: 1-25% Cold: No activity at all save for the n+1 day (one day outside of range) Resurrected: No activity at all save for today New: user's with guid's that are less than 24 hours old

Creates a minds-user-state index that keys off of user_guid and the reference date. Documents the guid, date, state and percentage of activity

PHPSpecs to validate the algorithm

Edited by Brian Hatchet

Merge request reports