MODiX icon indicating copy to clipboard operation
MODiX copied to clipboard

"Messages by channel" user stats includes private modmail threads

Open thaumanovic opened this issue 3 years ago • 8 comments

Is this desired behaviour?

image

thaumanovic avatar Jun 29 '22 18:06 thaumanovic

Nope, but there isn't anything we can really do about it right now. It would be fixed by #699. (See also #850.)

Scott-Caldwell avatar Jun 29 '22 18:06 Scott-Caldwell

I might work on that then. Is there an existing list of designations that we'd like for categories?

thaumanovic avatar Jun 29 '22 20:06 thaumanovic

The ones that make sense to me to be able to apply to categories are Unmoderated, CountsTowardsParticipation, and IgnoredFromStarboard

Scott-Caldwell avatar Jun 29 '22 21:06 Scott-Caldwell

Revisiting this, I've had a few ideas on how to implement a fix and tidy up the stats overall:

  • Create a ChannelFlags / CategoryFlags type(s) that work similar to how @patrickklaeren implemented them in Accord (I really don't feel like designation is the right term for this functionality). We could go with either inclusive or exclusive default behaviour, that is either collect stats for all channels and then filter out with ChanneFlags.IgnoredFromStats or only selectively include from channels with ChannelFlags.IncludedInStats.
  • As for threads showing up in stats, it maybe makes sense to aggregate those under their parent channel. For forum channels, they could show under a single stat, e.g. help (forum)

Any thoughts/input before I delve more into the specific behaviour of the flags?

Additional: Probably a good idea to move the "flaggy" designations Unmoderated, CountsTowardsParticipation, and IgnoreFromStarboard to the new flags enums as part of this fix.

thaumanovic avatar Jul 01 '23 11:07 thaumanovic

Also relevant to this are #699 and #850

thaumanovic avatar Jul 01 '23 11:07 thaumanovic

Would Channel Flags be functionally identical to Channel Designations internally, just a more accurate name and maybe better UI? If so, I'm not opposed to just renaming Channel (and Role) Designations to Flags.

I agree about threads. For stats, participation in the forum channel in aggregate is really the stat we care about.

Scott-Caldwell avatar Jul 04 '23 15:07 Scott-Caldwell

No, there should be a distinct difference.

Designations designate a channel for a dedicated purpose, i.e. the promotion log or starboard - the primary reason for that channel existing.

Flags are more implicit, they'll alter the behaviour of commands or processes in the background - the channel still exists for another reason, i.e. general chat or the help forum.

Does that make sense? I'm struggling to vocalise exactly what I mean, so if it doesn't let me know and I'll try to elaborate a bit more.

thaumanovic avatar Jul 05 '23 04:07 thaumanovic

I'm not sure I understand the benefit of splitting the concepts. A designation is as much a flag as a flag is a designation? Designation is an established concept that can be refactored to be more lean here.

patrickklaeren avatar Jul 05 '23 19:07 patrickklaeren