Provide a CLI command for updating an app after a grid migration

オープン
#173 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
go
領域
cli

調査の方向性

既存のエントリポイント slack loginslack deploy から始め、~/.slack/credentials.json.slack/apps.json がどのように読み取られ、更新されるかを追跡します。app ID と enterprise ID を中心に移行コマンドを定義し、それが enterprise token を選択し、ローカルの app マッピングを更新し、その後の deploy を可能にすることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Description

Coded workflow (Deno) apps installed to a standalone workspace that later gets migrated to an enterprise grid currently need manual intervention to continue working with the CLI. Maybe we want to add a new command like slack app migrate --app=A1234 --enterprise-id=E12345 that would search their .credentials file for an auth token for that enterprise ID, update their local apps.json and reinstall at the org level

Currently, the manual intervention required is to slack login to the new enterprise team which will save the new auth in your ~/.slack/credentials.json file, then update the local .slack/apps.json file in the project to reflect the new enterprise team ID (app ID remains the same as before the migration). Sample below:

{
  "apps": {
    "E12345678": {
      "app_id": "A12345678",
      "enterprise_id": "E12345678",
      "team_domain": "my-domain",
      "team_id": "T98765432"
    }
  },
  "default": "my-domain"
}

🤞 Run slack deploy and if the contents of .slack/apps.json are valid, you should be able to select the app and re-deploy

Requirements
  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.
主要言語
Go
スター
305
フォーク
46
平均マージ
1日 11時間
マージ済み PR(30日)
23

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

slackapi/slack-cli のほかの issue

slackapi/slack-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。