Validate notification integrations channel limit
What does this MR do and why?
This change adds a new validation to our Slack and Mattermost notification integrations that each event trigger is configured for at most 10 unique channels.
SaaS production data was inspected, and currently, the most an event trigger has been configured for is 7
channels (see Slack - internal, good for 90 days).
It also adds a tweak so we send to a unique list of channels, to avoid the ability for the integrations to post the same thing to the same channel.
Screenshots
QA
- Visit
/<PROJECT>/-/settings/integrations/slack/edit
. - Enter in 10 channel names, separated by commas.
- The integration should save.
- Add an 11th channel name.
- The integration should not save, and a validation error should display.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #383894
Edited by Luke Duncalfe