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

refactor: adjust webhook v2 #4079

Merged
merged 10 commits into from
Feb 17, 2025
Merged

refactor: adjust webhook v2 #4079

merged 10 commits into from
Feb 17, 2025

Conversation

vinayteki95
Copy link
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.

@devops-github-rudderstack
Copy link
Contributor

Allure Test reports for this run are available at:

Copy link

codecov bot commented Feb 14, 2025

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
Contributor

Allure Test reports for this run are available at:

@vinayteki95 vinayteki95 merged commit 77bcd2f into develop Feb 17, 2025
27 checks passed
@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