Conversation
|
Look good! AFAICT this isn't the "new info" one, but just the "mattermost-specific" one. Which I'm quite happy with! Questions/remarks:
|
"isn't the new info" I don't quite understand but I take the "quite happy with" :)
Cool. Yeah, it felt like the better approach than cramming both into one, making a mess.
The way I would suggest to implement it is to have a default format that could be overridden. So there really isn't a need for conditionals. We could start with a simpler format - if that is what you have in mind. Question is whether that should be a configuration or an env setting.
Yeah, I wasn't so happy to introduce a migration just for that.
I am not a fan of that either, sorry. Might be good to have some auto formatting for the project to avoid this pain.
You can configure only the default channel. The actual channel you have in the payload. |
I meant "actually exposing environment/release" which you were also commenting on elsewhere.
Settings or not, the code should be robust (and the result non-ugly) for the fact that this information can dynamically be there or not.
I'm a fan of "strong model, but no (or rather: a single) migration" which is what the linked code does.
《mumbles inaudibly》
Great; channels Bugsink-side it is. |
OK, let's follow that then.
Hehehe I personally find it freeing not having to worry about it anymore. Let's pretend I never mentioned it ;-)
Alright. 👍 |
|
Alright. Did some reverts and refactoring. I think it's getting close to what I had in mind. Not quite sure what But maybe have another look if this make sense or what needs to be changed. |
|
I don't understand why the db test failed now that the migration is gone |
|
Hm... |
|
Just had to rebase to lastest head. Can you have another look what else needs to be fixed for a merge? @vanschelven |
|
I'm sorry I let this linger for a bit longer than I said I would. I'd be super-happy to take a mattermost-specific backend; but as it stands this PR just "does too much", mostly as per this comment; I'm sorry if I didn't express myself clearly enough over there, but I really meant it when I said that I'm always very worried about taking on new point of configuration, and I really don't see the upside here. I'd much rather "just" have the mattermost backend and potentially a richer one (as per the general ideas in #233) than yet another layer of configuration. |
I really don't see the downside here - if a value is missing it would be just missing. I cannot imagine a breakable change. I just do not see the pain for users or maintainers. Could you elaborate on your concerns a little more? But if the status quo is out of the question: What about just NOT exposing the format strings to the config and keep the rest as is? If that's not enough I need a little more guidance on what changes you would like to see. PS: Any idea why the test are failing? Seems to be unrelated. |
|
@vanschelven any pointers? Should I just remove the format config? |
that would be much appreciated! Other than that, I'm generally more slow to respond that I personally want to; in other words "it's not you it's me" 😄 |
|
@vanschelven I have commented out the configuration of the format strings If this is what you have in mind we can also remove the comments. Let me know if that works for you. |
|
@vanschelven could you give some guidance if something else needs to be changed? We would really would love to see proper mattermost support. |
W.r.t. the user-contributed version, this: * removes commented-out code * removes channels (not supported at the UI level) * removes all other things Said differently: the mattermost Alert Service Backend is simply the Slack version with edits to make it mattermost-specific (and nothing else). (In a few places I've edited the slack backend to make comparing easier). Fix #277 See #253
|
@tcurdt sorry for letting this linger for so long; other things were demanding my attention, but I finally got round to picking it up. When I did, I simply "hijacked" the PR to #278 such that I could freely "take it from here". The version that made it to main in the end is more or less a copy of the Slack backend, but speaking the mattermost protocol. Templating didn't make it, and as per above it's unlikely that it will do so "soon". Channels could make it to a future version, but if they do should probably be done for all backends that support them at once. Similar for color-coding and other things that I might have overly aggressively pruned. |
|
Last but not least: thank you very much for your contribution! 🎉 |
|
Well, the very least we need channel support so seems like the contribution limbo wasn't all that useful in the end. A shame. |
|
thing is, the provided PR did not actually provide a UI for channels-support... |
This needs some more UI plumbing I assume? |
Yes, I'll pick that up as part of #281 |
Not much of a python/django person. This isn't tested at all but I wanted to hear whether this goes into right direction.
Reason for the PR:
environmentto the payload,releasewould also be good