Skip to content

refactor: adjust webhook v2 - #4079

Merged
vinayteki95 merged 10 commits into
developfrom
refactor.adjust-webhook-v2
Feb 17, 2025
Merged

vinayteki95 merged 10 commits into
developfrom
refactor.adjust-webhook-v2

Conversation

@vinayteki95

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

  • Refactor of adjust source to utitlise the lasted webhook V2 contract with server. This new contract has the entire request structure from which query_parameters can be used to prepare the payload.
  • Refactored the v0 source as well to isolate core logic from payload preparation logic.
  • Migrate test cases to v2

What is the related Linear task?

Resolves INT-3130

Please explain the objectives of your changes below

This source is refactored to cleanly use the new webhook v2 specification for information beyond request body.

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

No

Any new dependencies introduced with this change?

No

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

No

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

Make small optimisations by cleaning likes like lodash.deepcopy with no effect.

@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.

@vinayteki95
vinayteki95 requested review from a team and sivashanmukh as code owners February 14, 2025 09:26
@vinayteki95
vinayteki95 requested review from a team, chandumlg and krishna2020 February 14, 2025 09:26
@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Feb 14, 2025 •

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 98.33333% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.13%. Comparing base (69a1d6b) to head (c200518).
Report is 28 commits behind head on develop.

Files with missing lines Patch % Lines
src/sources/adjust/transform.js 93.75% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4079      +/-   ##
===========================================
+ Coverage    91.04%   91.13%   +0.08%     
===========================================
  Files          629      629              
  Lines        32841    32837       -4     
  Branches      7792     7791       -1     
===========================================
+ Hits         29901    29925      +24     
- Misses        2689     2696       +7     
+ Partials       251      216      -35     

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

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

@sonarqubecloud

Copy link
Copy Markdown

Comment thread src/sources/adjust/transform.js Resolved
@vinayteki95
vinayteki95 merged commit 77bcd2f into develop Feb 17, 2025
@vinayteki95
vinayteki95 deleted the refactor.adjust-webhook-v2 branch February 17, 2025 07:35
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.

4 participants