GoogleCloudPlatform / GoogleCloudPlatform/cloud-logging-data-source-plugin
log query fails until query row is expanded
- 主要言語
- TypeScript
- スター
- 24
- フォーク
- 17
- 平均マージ
- 13時間 11分
- マージ済み PR(30日)
- 11
説明
I just logged [this issue](https://github.com/grafana/grafana/issues/112075) with grafana, but I'm crossposting it here since it seems likely the bug is in this datasource. To briefly summarize the issue: When a request is sent to this datasource with the `query` field filled out but the `queryText` field empty, the datasource doesn't return any results.
I see that [there is special handling for these fields in one part of the datasource](https://github.com/GoogleCloudPlatform/cloud-logging-data-source-plugin/blob/51163c30e658336622ec6ea38c41a039d4837dc2/src/QueryEditor.tsx#L44), but it seems the request doesn't hit this code under certain conditions.
For more info see the original issue I filed with grafana: https://github.com/grafana/grafana/issues/112075
### Components:
- Grafana Cloud
- GCP Cloud logging v1.5.1
コントリビューションガイド
調査の方向性
まず src/QueryEditor.tsx の44行目付近にある特別な処理を確認し、query が入力されていて queryText が空の場合に使用される request パスと比較します。再現手順の詳細には Grafana の issue 112075 を使用し、query 行を展開せずに datasource が結果を返すことを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- google-cloud, typescript
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100