Skip to content

fix(api-search): make operationId the leading default column - #238

Open
jpage-godaddy wants to merge 2 commits into
mainfrom
better-search-results
Open

fix(api-search): make operationId the leading default column#238
jpage-godaddy wants to merge 2 commits into
mainfrom
better-search-results

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • gddy api search rows for shared domain/method/path (notably GraphQL sub-operations under one wrapper endpoint) rendered as visually identical rows since operationId — the one field that's actually unique per row — wasn't part of the default column set.
  • Add operationId as the first default column so it's the highest-priority column and the last one dropped when a row doesn't fit the terminal width, and tighten the command's --help long description.

Test plan

  • cargo check
  • cargo clippy -- -D warnings
  • cargo test
  • cargo fmt --check
  • ./rust/scripts/check-module-size.sh
  • Manually ran gddy api search catalog and confirmed operationId now distinguishes previously-identical-looking rows

Rows for the same domain/method/path (e.g. many GraphQL sub-operations
sharing one wrapper endpoint) rendered identically since operationId
wasn't part of the default column set. Lead with it so it's the last
column dropped when a row doesn't fit the terminal width.
Copilot AI lite review requested due to automatic review settings August 28, 2026 20:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates gddy api search output defaults so results are distinguishable when multiple endpoints share the same domain/method/path (e.g., GraphQL sub-operations), and refines the command’s help text.

Changes:

  • Adds operationId as the leading default output column for api search.
  • Tightens the api search --help long description.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rust/src/api_explorer/search.rs
The shortened long description dropped mention of summaries, but
search_endpoints still matches against summary text — the help was
out of sync with actual behavior.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants