Hi @mcwumbly. I’m working on the new discourse-chat-integration plugin, so have spent quite a lot of time over the last couple of weeks re-implementing the filtering system from the slack plugin.
In doing so, I’ve ironed out (hopefully) all of the “oddities” you described at the start of this topic. I only just found this topic, hence why I didn’t post before starting work!
While I like the idea of 1 record for each channel, I can’t see how it work work for the case:
Watching category Contribute > Bug for posts with tag pr-welcome
Watch category Support for posts with tag unsupported-install
With the data model you described above, you cannot have different tag preferences for different categories.
To make it work the model would have to be more like
{
key: '#channel'
val: {
watching: {[
{category: 'bug', tags: ['pr-welcome']},
{category: 'support', tags: ['unsupported-install']},
]},
following: {[]},
muted: {[]},
}
}
And at that point it just simplifies to the existing table structure of
| channel | filter | category | tags |
|---|---|---|---|
| #channel | watch | bug | pr-welcome |
| #channel | watch | support | unsupported-install |
Am I missing something?