docs: add data.error and data.error_omitted webhook fields and update max_response_payload_kbs description - #5399
Conversation
|
|
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 46 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughWebhook documentation and configuration schemas now describe failed-job error payload fields, shared response/error inline size limits, and the corresponding omission flags. ChangesWebhook payload contracts
Estimated code review effort: 1 (Trivial) | ~3 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
3099b9c to
16c59ee
Compare
Confidence Score: 5/5This looks safe to merge.
Important Files Changed
Reviews (2): Last reviewed commit: "docs: document webhook error/error_omitt..." | Re-trigger Greptile |
Merge activity
|
The base branch was changed.
16c59ee to
9d2280b
Compare
…date `max_response_payload_kbs` description (maximhq#5399) ## Summary Extends webhook payloads for `async_job.failed` events to include the job's error body inline, mirroring the existing `response`/`response_omitted` behavior for successful jobs. ## Changes - Added `data.error` field to the webhook payload, which inlines the job's error body for `async_job.failed` events when `include_response` is set and the payload fits within `max_response_payload_kbs`. - Added `data.error_omitted` field, set to `true` when the error body exceeds the size cap, directing consumers to fetch it via `result_url` instead. - Updated `max_response_payload_kbs` descriptions in the docs, Helm chart schema, and transport config schema to reflect that the cap applies to both response and error payloads, and that oversized values are flagged with `response_omitted` or `error_omitted` accordingly. ## Type of change - [ ] Bug fix - [x] Feature - [ ] Refactor - [ ] Documentation - [ ] Chore/CI ## Affected areas - [ ] Core (Go) - [x] Transports (HTTP) - [ ] Providers/Integrations - [ ] Plugins - [ ] UI (React) - [x] Docs ## How to test Trigger an async job that fails and verify the webhook payload delivered to the endpoint includes `data.error` when the error body is within `max_response_payload_kbs`, and `data.error_omitted: true` when it exceeds the cap. ```sh go test ./... ``` ## Breaking changes - [ ] Yes - [x] No ## Related issues ## Security considerations Error bodies may contain sensitive information. Consumers should treat `data.error` with the same care as `data.response` and ensure webhook endpoints are appropriately secured. ## Checklist - [ ] I read `docs/contributing/README.md` and followed the guidelines - [ ] I added/updated tests where appropriate - [ ] I updated documentation where needed - [ ] I verified builds succeed (Go and UI) - [ ] I verified the CI pipeline passes locally if applicable
…date `max_response_payload_kbs` description (maximhq#5399) ## Summary Extends webhook payloads for `async_job.failed` events to include the job's error body inline, mirroring the existing `response`/`response_omitted` behavior for successful jobs. ## Changes - Added `data.error` field to the webhook payload, which inlines the job's error body for `async_job.failed` events when `include_response` is set and the payload fits within `max_response_payload_kbs`. - Added `data.error_omitted` field, set to `true` when the error body exceeds the size cap, directing consumers to fetch it via `result_url` instead. - Updated `max_response_payload_kbs` descriptions in the docs, Helm chart schema, and transport config schema to reflect that the cap applies to both response and error payloads, and that oversized values are flagged with `response_omitted` or `error_omitted` accordingly. ## Type of change - [ ] Bug fix - [x] Feature - [ ] Refactor - [ ] Documentation - [ ] Chore/CI ## Affected areas - [ ] Core (Go) - [x] Transports (HTTP) - [ ] Providers/Integrations - [ ] Plugins - [ ] UI (React) - [x] Docs ## How to test Trigger an async job that fails and verify the webhook payload delivered to the endpoint includes `data.error` when the error body is within `max_response_payload_kbs`, and `data.error_omitted: true` when it exceeds the cap. ```sh go test ./... ``` ## Breaking changes - [ ] Yes - [x] No ## Related issues ## Security considerations Error bodies may contain sensitive information. Consumers should treat `data.error` with the same care as `data.response` and ensure webhook endpoints are appropriately secured. ## Checklist - [ ] I read `docs/contributing/README.md` and followed the guidelines - [ ] I added/updated tests where appropriate - [ ] I updated documentation where needed - [ ] I verified builds succeed (Go and UI) - [ ] I verified the CI pipeline passes locally if applicable

Summary
Extends webhook payloads for
async_job.failedevents to include the job's error body inline, mirroring the existingresponse/response_omittedbehavior for successful jobs.Changes
data.errorfield to the webhook payload, which inlines the job's error body forasync_job.failedevents wheninclude_responseis set and the payload fits withinmax_response_payload_kbs.data.error_omittedfield, set totruewhen the error body exceeds the size cap, directing consumers to fetch it viaresult_urlinstead.max_response_payload_kbsdescriptions in the docs, Helm chart schema, and transport config schema to reflect that the cap applies to both response and error payloads, and that oversized values are flagged withresponse_omittedorerror_omittedaccordingly.Type of change
Affected areas
How to test
Trigger an async job that fails and verify the webhook payload delivered to the endpoint includes
data.errorwhen the error body is withinmax_response_payload_kbs, anddata.error_omitted: truewhen it exceeds the cap.go test ./...Breaking changes
Related issues
Security considerations
Error bodies may contain sensitive information. Consumers should treat
data.errorwith the same care asdata.responseand ensure webhook endpoints are appropriately secured.Checklist
docs/contributing/README.mdand followed the guidelines