Skip to content
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

fix: linkedin ads conversionValue object as well as price is not mandatory #3860

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

shrouti1507
Copy link
Contributor

@shrouti1507 shrouti1507 commented Nov 8, 2024

What are the changes introduced in this PR?

We see from LinkedIn conversion API doc that conversionValue is an optional field. But we kept it mandatory because we were throwing an error if the conversionValue object element price was absent from the payload.
We verified it by sending API calls to LinkedIn without conversion value:

( data the screenshot contains are all dummy )

Screenshot 2024-11-08 at 5 42 16 PM

What is the related Linear task?

Resolves INT-2876

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

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.

@shrouti1507 shrouti1507 requested review from a team and sivashanmukh as code owners November 8, 2024 12:11
@devops-github-rudderstack
Copy link
Contributor

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.01%. Comparing base (bbd31a1) to head (f306315).
Report is 8 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #3860      +/-   ##
===========================================
- Coverage    89.02%   89.01%   -0.01%     
===========================================
  Files          610      610              
  Lines        32918    32950      +32     
  Branches      7779     7788       +9     
===========================================
+ Hits         29305    29332      +27     
+ Misses        3330     3305      -25     
- Partials       283      313      +30     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shrouti1507 shrouti1507 self-assigned this Nov 8, 2024
Copy link

@shrouti1507 shrouti1507 merged commit bfd7edc into develop Nov 11, 2024
26 checks passed
@shrouti1507 shrouti1507 deleted the fix.linkedinPrice branch November 11, 2024 06:46
const message = { properties: {} };
expect(() => {
fetchUserIds(calculateConversionObject(message));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what was fetchUserIds doing before ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants