Add search migrations chapopts commands
Related gitlab-org/gitlab#412136 (closed)
Description
Introduce two new chatops commands for search migrations. API was introduced in gitlab-org/gitlab!120751 (merged)
/chatops run search_migrations list
/chatops run search_migrations get BackfillProjectPermissionsInBlobsUsingPermutations
How to test
Set up GDK for elasticsearch and index everything. This will populate the search migrations index.
I tested locally via the command line using GDK and a private Slack instance to get the images below.
env SLACK_TOKEN='SLACK_TOKEN' GITLAB_TOKEN='GDK_GITLAB_TOKEN' CHAT_CHANNEL='testing' CHAT_INPUT='list' bundle exec bin/chatops search_migrations
Screenshots
get
command
list
command
Edited by Terri Chu