backend/fix:- added FromTime and toTime in Oznetel config#1190
backend/fix:- added FromTime and toTime in Oznetel config#1190prakharritik merged 1 commit intomainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughRemoved Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 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 the current code and only fix it if needed.
Inline comments:
In `@lib/mobility-core/src/Kernel/External/Call/Ozonetel/Config.hs`:
- Around line 31-33: OzonetelCfg adds fromTime, toTime and sosCampaignName but
addCampaignData in Client.hs doesn't propagate them; update addCampaignData to
read from OzonetelCfg (fields fromTime, toTime, sosCampaignName) and include
those values into the outgoing request payload/struct used to build the Ozonetel
API request (the same place other campaign fields are set), ensuring any Maybe
values are handled the same way as existing optional fields so they are
serialized only when present.
🪄 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: 29f6ad8d-cbc2-4281-9133-506e6e390bb9
📒 Files selected for processing (1)
lib/mobility-core/src/Kernel/External/Call/Ozonetel/Config.hs
| fromTime :: Maybe Text, | ||
| toTime :: Maybe Text, | ||
| sosCampaignName :: Maybe Text, |
There was a problem hiding this comment.
New config fields are added but currently not used in request flow
fromTime, toTime, and sosCampaignName are now part of OzonetelCfg, but in lib/mobility-core/src/Kernel/External/Call/Ozonetel/Client.hs (Line 35-54 context), addCampaignData does not read or propagate these values. If this PR is intended as a runtime bugfix, behavior will remain unchanged unless these fields are wired into the outgoing request construction path.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@lib/mobility-core/src/Kernel/External/Call/Ozonetel/Config.hs` around lines
31 - 33, OzonetelCfg adds fromTime, toTime and sosCampaignName but
addCampaignData in Client.hs doesn't propagate them; update addCampaignData to
read from OzonetelCfg (fields fromTime, toTime, sosCampaignName) and include
those values into the outgoing request payload/struct used to build the Ozonetel
API request (the same place other campaign fields are set), ensuring any Maybe
values are handled the same way as existing optional fields so they are
serialized only when present.
c8e4669 to
971ea63
Compare
Type of Change
Description
Additional Changes
Motivation and Context
How did you test it?
Checklist
./dev/format-all-files.shSummary by CodeRabbit