-
Notifications
You must be signed in to change notification settings - Fork 12
Propagate JSON unmarshal errors in type conversion functions #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Propagate JSON unmarshal errors in type conversion functions #24
Conversation
WalkthroughThis PR introduces consistent error handling to presenter functions across the API layer. The functions Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (11)
🧰 Additional context used📓 Path-based instructions (6)pkg/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
pkg/{handlers,services}/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
pkg/handlers/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
pkg/{dao,handlers}/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
pkg/{handlers,services,dao}/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
pkg/{db/transaction_middleware.go,handlers}/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (9)📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
📚 Learning: 2025-12-12T11:04:29.971ZApplied to files:
🧬 Code graph analysis (10)pkg/api/presenters/node_pool.go (2)
pkg/handlers/node_pool.go (2)
pkg/api/presenters/cluster_test.go (2)
pkg/handlers/nodepool_status.go (2)
pkg/api/presenters/cluster.go (2)
pkg/handlers/cluster_status.go (2)
pkg/api/presenters/adapter_status_test.go (3)
pkg/handlers/cluster.go (2)
pkg/api/presenters/adapter_status.go (3)
pkg/api/presenters/node_pool_test.go (2)
🔇 Additional comments (28)
Comment |
ciaranRoche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ciaranRoche The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
460f0ae
into
openshift-hyperfleet:main
https://issues.redhat.com/browse/HYPERFLEET-300
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.