fix: sample-queries.txt uses incorrect root field name 'bundles' instead of 'olmbundles'

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

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

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
90/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
graphql
領域
api

調査の方向性

internal/catalogd/graphql/sample-queries.txt を開き、82、121、145、163 行付近にある影響を受ける 4 つのクエリ例を確認します。それらのルートフィールド名を、示されている olm.bundle スキーマの命名と比較し、必要に応じて例を更新して、誤った bundles( 参照が残っていないことを確認します。

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

説明

lifecycle/stale

Summary

The file internal/catalogd/graphql/sample-queries.txt contains several GraphQL query examples that reference the root field name bundles, but the dynamic schema generator derives the field name from the schema name (olm.bundleolmbundles). As written, those sample queries will fail for users.

Affected lines (approx.)

  • Line 82: bundles(limit: 5) {
  • Line 121: bundles(limit: 20) {
  • Line 145: bundles(limit: 10) {
  • Line 163: bundles(limit: 10) {

Suggested fix

Replace all occurrences of bundles( with olmbundles( in internal/catalogd/graphql/sample-queries.txt.

References

Reported by @grokspawn.

主要言語
Go
スター
213
フォーク
85
平均マージ
1日 8時間
マージ済み PR(30日)
36

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

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

はじめの一歩

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

operator-framework/operator-controller のほかの issue

operator-framework/operator-controller の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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