Skip to content

Add search migrations chapopts commands

Terri Chu requested to merge tchu-add-search-migrations-command into master

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

image

list command

image

Edited by Terri Chu

Merge request reports

Loading