Repository navigation
fix: send empty string instead of null when the schema data is undefined - #2955
Conversation
|
Important Auto Review SkippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the To trigger a single review, invoke the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChat with CodeRabbit Bot (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## hotfix/fb_custom_audience_schema_fix #2955 +/- ##
=====================================================================
Coverage 87.27% 87.27%
=====================================================================
Files 790 790
Lines 29218 29218
Branches 6834 6835 +1
=====================================================================
Hits 25501 25501
Misses 3373 3373
Partials 344 344 ☔ View full report in Codecov by Sentry. |
|

What are the changes introduced in this PR?
This PR fixes the following issue discussed in this thread for Zen Business customer.
Please explain the objectives of your changes below
This PR will make sure empty string, '' is sent instead of null when the schema data is undefined
Type of change
If the pull request is a bug-fix, enhancement or a refactor, please fill in the details on the changes made.
Existing capabilities/behavior
If any schema field's value is undefined, null was sent as part of payload.data for that field.
New capabilities/behavior
If any schema field's value is undefined, empty string will be sent as part of payload.data for that field.
Developer checklist
No breaking changes are being introduced.
Are all related docs linked with the PR?
Are all changes manually tested?
Does this change require any documentation changes?
Are relevant unit and component test-cases added?
Reviewer checklist
Is the type of change in the PR title appropriate as per the changes?
Verified that there are no credentials or confidential data exposed with the changes.