UX improvement for CLI: add more debugging information in failure message

オープン 初心者向け
#2,271 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

まず Go コードベースで正確なメッセージ "control plane not found: default" を検索し、control plane の名前とアドレスに関するフラグまたは環境変数がどのように解決されるかを追跡します。これらの上書きについて説明するよう失敗メッセージを更新し、その後、関連するフラグまたは環境変数を指定した場合と指定しない場合の、control plane が見つからない失敗を再現して、ガイダンスが表示されることを確認します。

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

説明

New sign-ups on Konnect auto-choose region based on user's location. There's no CP auto-created for new users with name "default". They can create it on their own and probably won't choose the name default

Deck uses https://us.api.konghq.com as konnect-address and default as the konnect-control-plane-name. Any overrides come from flags or env vars.

A new user on Konnect, for whom the region was auto-chosen, may not know about this and all subsequent deck commands would fail with this one error: Error: control plane not found: default

It's better to add some more information in messages regarding this - static code change that lets users know that they can set flags / env vars to for CP name and address.
This information would be good for agents too for self-recovery.

Image

Similar failures can be reproduced with other commands too in absence of flags.

Size: XS

主要言語
Go
スター
507
フォーク
142
平均マージ
1日 15時間
マージ済み PR(30日)
9

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

Kong/deck のほかの issue

Kong/deck の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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