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

Open Beginner friendly
#2,726 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
graphql
Domain
api

Research direction

Open internal/catalogd/graphql/sample-queries.txt and inspect the four affected query examples around lines 82, 121, 145, and 163. Compare their root field names with the stated olm.bundle schema naming, update the examples as needed, and verify that no incorrect bundles( references remain.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
213
Forks
85
Avg merge
1d 8h
Merged PRs (30d)
36

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from operator-framework/operator-controller

All issues in operator-framework/operator-controller

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.