-
Notifications
You must be signed in to change notification settings - Fork 16
feat: lua #343
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
base: master
Are you sure you want to change the base?
feat: lua #343
Conversation
WalkthroughAdded enum value ERR_LUA_FAILED, added a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (4)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
fe6476a to
4f1a929
Compare
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.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (4)
internal/cbatch/cbatch.go(1 hunks)internal/util/err.go(1 hunks)protos/Crane.proto(1 hunks)protos/PublicDefs.proto(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- internal/cbatch/cbatch.go
🧰 Additional context used
🪛 GitHub Actions: Go Code Quality Check
internal/util/err.go
[error] 1-1: The following files are not properly formatted: internal/util/err.go. Please run 'gofmt -w .' to fix the formatting.
🔇 Additional comments (3)
internal/util/err.go (1)
199-199: LGTM!The error mapping for
ERR_LUA_FAILEDis correctly added with a clear, user-friendly message that follows the existing conventions in the error map.protos/PublicDefs.proto (1)
682-682: LGTM!The new error code
ERR_LUA_FAILED = 78is correctly added to theErrCodeenum with proper numbering and placement in the sequence.protos/Crane.proto (1)
89-89: LGTM!The
reasonfield is correctly added outside theoneof payloadblock, allowing it to be populated regardless of whether the reply indicates success (withtask_id) or failure (withcode). This design enables the backend to provide detailed error messages, particularly useful for Lua validation failures.
4f1a929 to
2e8a17c
Compare
c1e465a to
f146556
Compare
Summary by CodeRabbit
Bug Fixes
New Features
✏️ Tip: You can customize this high-level summary in your review settings.