Project dropdown in incident modal for Slack is limited to first 100 projects
Summary
When the GitLab for Slack
app is installed in a Slack workspace, users with admin_issue
permissions in more than 100 projects are unable to use the /gitlab incident declare
slash command for projects other than the first 100.
Steps to reproduce
Anyone:
- Have the permissions to create issues in >100 projects
- Install
GitLab for Slack
app in a slack workspace -> slack.com/apps/A676ADMV5-gitlab - Complete the OAuth flow for any project
- In slack, enter
/gitlab incident declare
to open the modal - Open the project dropdown and see that there's only 100 and search does not pull up others
GitLab team members:
- In slack, enter
/gitlab incident declare
to open the modal - Open the project dropdown & search for your personal projects
What is the current bug behavior?
There is no way to create incidents via slack in every project.
What is the expected correct behavior?
There should be a way to create incidents. Probably, the project
dropdown should behave the same way as the labels
or assignees
dropdowns to retrieve options based on user input.
Possible fixes
The project selection dropdown should be refactored to an external_select
.