Mattermost: several channels, private messages and report author #13
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/backend#13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #10. The Mattermost channel of an event rule only posts to a single channel. It should also send private messages.
Targets (all combinable, per rule)
mattermost_channel_id;actorsent by argus/upload-action ≥ 1.2.0.Backend
EventRule:mattermost_channels: a list of{id, name}, which replacesmattermost_channel_id/_name;mattermost_users: a list of{id, username};mattermost_notify_author: a boolean.POST /api/v4/channels/direct, bot + user), then posts the same severity-coloured attachment.GET /api/v4/users/email/{email}). If not found, fall back to the same login (GET /api/v4/users/username/{login}). If the author is unknown or missing, that target is reported as skipped; it doesn't fail the delivery.GET /api/mattermost/users/?q=: account search for the picker (bot autocomplete).Frontend
Tests