GoogleCloudPlatform / GoogleCloudPlatform/cloud-trace-data-source-plugin
Outdated ConnectionConfig in ConfigEditor leads to mutated React props
- 主要言語
- Go
- スター
- 16
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
This Grafana plugin uses an outdated version of @grafana/google-sdk and therefore the `ConnectionConfig` component used by `ConfigEditor` is [mutating the `authenticationType` React prop](https://github.com/grafana/grafana-google-sdk-react/blob/0e6397d7fc52e8740efd4f2bb02701f4157de1c4/src/ConnectionConfig.tsx#L26). Fixed in version [0.3.1](https://github.com/grafana/grafana-google-sdk-react/blob/main/CHANGELOG.md#v031).
While this currently works in Grafana, it may not be compatible with future versions and could lead to runtime errors. To ensure long-term stability, we recommend avoiding prop mutation. You can find more details in the React docs:
https://react.dev/reference/rules/components-and-hooks-must-be-pure#props
コントリビューションガイド
調査の方向性
依存関係の宣言と ConfigEditor の使用箇所を特定し、リンク先の ConnectionConfig.tsx の参照と照合して、インストールされている @grafana/google-sdk のバージョンを確認します。バージョン 0.3.1 以降に更新し、影響を受ける prop-mutation の動作を削除した状態でもプラグインが引き続きビルドできることを確認すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100