Skip to content

fix: update logs query client and test to handle new schema wrapper#103

Merged
blue4209211 merged 2 commits into
mainfrom
fix/logs-list-schema-wrapper
Jul 8, 2026
Merged

fix: update logs query client and test to handle new schema wrapper#103
blue4209211 merged 2 commits into
mainfrom
fix/logs-list-schema-wrapper

Conversation

@blue4209211

Copy link
Copy Markdown
Contributor

This PR updates the nbctl client query response parsing to expect the wrapper object returned from the server (containing logs, query, and provider fields). Unit tests are also updated accordingly.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request updates the logs_list GraphQL query and corresponding Go structures to nest the log entries under a new logs field, while also adding query and provider fields. The unit tests have been updated to match this new structure. The feedback suggests removing the query and provider fields from both the GraphQL query and the test mock data since they are currently unused in the application.

Comment thread cmd/logs_query.go
Comment thread cmd/logs_query_test.go
@blue4209211 blue4209211 merged commit 2783800 into main Jul 8, 2026
2 checks passed
@blue4209211 blue4209211 deleted the fix/logs-list-schema-wrapper branch July 8, 2026 08:36
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