[go: up one dir, main page]

Skip to content

Slack: Error if user reinstalls GitLab Slack Application integration to different Slack workspace

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

A user can get into a situation where they cannot set up the GitLab Slack Application integration for a project, if that project has previously had the integration set up with a different Slack workspace from the one that the now want to use it with.

Steps to reproduce

  1. Have two Slack workspaces available (you can use the Ecosystem Testing workspace).

  2. Set up a GitLab Slack Application integration for a project, by visiting https://gitlab.com/<PROJECT>/-/integrations/gitlab_slack_application/edit.

  3. On the Slack OAuth page in the next step, choose the first Slack workspace when prompted. Click Allow.

  4. Go back to the project's GitLab Slack Application integration page https://gitlab.com/<PROJECT>/-/integrations/gitlab_slack_application/edit and click the trash can icon to remove it.

  5. Now, on the same page, click the Install Slack app button.

  6. This time on the Slack OAuth page, choose the second Slack workspace from the select list at the top-right.

    image

    Click Allow.

  7. You will see a 422

Visiting the integration page https://gitlab.com/<PROJECT>/-/integrations/gitlab_slack_application/edit will show that the integration was created, but the slash command will not work.

Video Walkthrough Reproducing the Bug

https://gitlab.zoom.us/rec/share/tVI1TiBtOEDqa_N6R7zoaozUfEymZfIt30KJ0gnnAPyObB6c1jN6kuYgYFjnYWn3.iuz5CAbZgFXzbg3C

Workaround

  1. Visit https://gitlab.com/-/profile/chat_names and click the Remove button next to the row that corresponds to the same project.
  2. Visit the integration page https://gitlab.com/<PROJECT>/-/integrations/gitlab_slack_application/edit. If the integration exists, click the trash icon to delete it (if it doesn't exist, skip this step).
  3. Try to set up the integration for the project now and it should work.

What is the current bug behavior?

The integration does not work.

What is the expected correct behavior?

The integration should work.

Edited by 🤖 GitLab Bot 🤖