Bug: hotline messages counted as broadcast mesages
STUB
-
We currently count incoming hotline messages as broadcast messages, which is bad because it skews our "broadcastOut" numbers a lot (by multiplying every hotline message by number of subscribers instead of number of admins, so it looks like a lot more broadcast messages went out than actually did)
-
Plus it would be nice to have visibility into how many incoming hotline messages v. outgoing broadcast messages are happening overall to develop a better intuition for how peopel use the app
-
Proposal: create a new metric for
hotlineIn
, start using it andbroadCastIn
in response toboost list-channels
and reset all counters to 0
Implementation Notes
- add a new
hotlineIn
field tomessageCount
- add a
countHotline
that increments this field when a hotline message si received - modify
repository.channel.findAllDeep
to only sort by number of subscribers - modify
registrar.channel._formatForList
to showbroadCastIn
andhotlineIn
- add a migration to set all messageCounts to zero and start fresh with clean data
Edited by aguestuser