backend/fix:- Returing empty response in case of kapture when config …#1351
backend/fix:- Returing empty response in case of kapture when config …#1351Kuldeepkumawat144 wants to merge 1 commit into
Conversation
…is set to Zendesk
WalkthroughThis change converts ChangesZendesk Stub Response Conversion
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@lib/mobility-core/src/Kernel/External/Ticket/Interface.hs`:
- Line 72: The branches that match ZendeskConfig currently return success-shaped
placeholders (e.g., KT.KaptureCustomerResp {message = "Not applicable for
Zendesk", status = "ok", ...}) which collapses “unsupported provider” into a
normal success; change those branches (the ZendeskConfig matches in the
functions returning KT.KaptureCustomerResp and the analogous ZendeskConfig cases
for pull/get/status flows) to return an explicit unsupported signal instead of a
success-shaped value: either restore the prior error path (e.g., return a
Left/throw an appropriate error) or introduce and return a dedicated
NotApplicable/Unsupported constructor in the KT response types and adjust
callers to handle it; update the pattern-matched branches (the ZendeskConfig
case sites and any functions creating KT.KaptureCustomerResp or the
encrypted-payload responses) to produce that explicit unsupported result rather
than "status = \"ok\"" or empty IDs/payloads.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0cae6024-bfc7-4a59-901c-b07cac8c6da8
📒 Files selected for processing (1)
lib/mobility-core/src/Kernel/External/Ticket/Interface.hs
…is set to Zendesk
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Checklist
./dev/format-all-files.shSummary by CodeRabbit