Draft: Add search by project path to slack slash commands
What does this MR do and why?
Currently, all slash commands that take a project (example: /gitlab <project> issue show 1
) identify the project by an alias, rather than the project full path.
The alias can be set from the GitLab for Slack integration form.
Problem
Users must know the alias in order to use the slash command otherwise they experience the slash command as broken.
By default, the alias will be the same as the project's full path.
But when the alias has changed, the full path does not work in slash commands, which can be counterintuitive for users.
For example, this will error with a "project not found" response:
/gitlab gitlab-org/gitlab issue show 386430
Instead, we must use the configured alias:
/gitlab gitlab-ee issue show 386430
Solution
In addition to supporting project aliases in slash commands, also support regular project full paths where they are different.
For example, GitLab workspace users should be able to use either of these slash commands interchangeably:
/gitlab gitlab-org/gitlab issue show 386430
/gitlab gitlab-ee issue show 386430
Fixes: Slash commands should identify project by full ... (#386430)
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
Numbered steps to set up and validate the change are strongly suggested.
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.