Skip to content

Truncate project names for Slack modal when more than 75 chars

Rajendra Kadam requested to merge slack-project-name-length into master

What does this MR do and why?

Resolves sentry error for Slack app incident modal form.

Slack has a limit of 75 characters for the text in dropdown options selector.

This MR adds that limit to project dropdown shown in the incident modal form.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

  1. Follow the steps to setup dev env for Slack app.
  2. Enable the FF incident_declare_slash_command.
  3. Trigger the /dev-gitlab incident delcare command and see the modal.
  4. It should work as usual for project path with less than 75 chars in it, but should truncate longer paths.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading