Bug report: Move away from storing usage stats in redis fully
Created by: abeatrix
- Sourcegraph version: 3.28
- Platform information: Web
Steps to reproduce:
-
For example, camden's last active is listed as never in dogfood's Usage statistics:
-
But if we check his event log, we can see he was last active in about 2 months ago:
Expected behavior:
lastActiveTime should be listed as about 2 months ago
Actual behavior:
lastActiveTime is listed as null
Based on the investigation carried in https://github.com/sourcegraph/customer/issues/391, we believe the root cause is that the user has never triggered the events that are stored in the DB, and the events stored in redis were expired. Because of this, we believe we should move away from storing usage stats in redis fully.