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

Log JS SDK library #183

Merged
merged 6 commits into from
Mar 12, 2024
Merged

Log JS SDK library #183

merged 6 commits into from
Mar 12, 2024

Conversation

nbierdeman
Copy link
Contributor

@nbierdeman nbierdeman commented Feb 9, 2024

Description

Herein lies part of the effort charged by DTPPCPSDK-1482.

Why are we making these changes?

This sends jsSdkLibrary to FPTI & SFX for 1st and 2nd render.

@nbierdeman nbierdeman requested a review from a team as a code owner February 9, 2024 17:21
Copy link

codecov bot commented Feb 9, 2024

Codecov Report

Attention: Patch coverage is 47.61905% with 11 lines in your changes are missing coverage. Please review.

Project coverage is 73.74%. Comparing base (b3b58d7) to head (5b1d344).
Report is 1 commits behind head on main.

Files Patch % Lines
src/tracking.js 35.29% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #183      +/-   ##
==========================================
+ Coverage   73.68%   73.74%   +0.05%     
==========================================
  Files          23       23              
  Lines        2037     2045       +8     
  Branches      240      241       +1     
==========================================
+ Hits         1501     1508       +7     
- Misses        526      527       +1     
  Partials       10       10              

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

Copy link
Contributor

@jshawl jshawl left a comment

Choose a reason for hiding this comment

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

:shipit:

src/tracking.js Show resolved Hide resolved
@paypal paypal deleted a comment from Heliodoro8224 Feb 9, 2024
@wsbrunson
Copy link
Member

we are going to add the default direct-script integration source type here?

@nbierdeman
Copy link
Contributor Author

we are going to add the default direct-script integration source type here?

@wsbrunson, I'm going to wait on merging this PR, because I'm not totally clear yet on where we're going to enforce values. I'm thinking we should enforce the JS library values in the JS libraries themselves and RAW_SCRIPT here. Will consult with you as I make more progress in react-paypal-js and paypal-js.

@nbierdeman nbierdeman changed the title Log SDK Integration Source Log JS SDK library Feb 14, 2024
@nbierdeman nbierdeman marked this pull request as draft February 16, 2024 15:04
@nbierdeman nbierdeman force-pushed the feature/DTPPCPSDK-1482 branch from 02f2522 to 7dcc530 Compare March 7, 2024 21:31
@nbierdeman nbierdeman force-pushed the feature/DTPPCPSDK-1482 branch from 01d046e to 5b1d344 Compare March 12, 2024 16:46
@nbierdeman nbierdeman marked this pull request as ready for review March 12, 2024 16:57
@nbierdeman nbierdeman requested review from jshawl, elizabethmv, ravishekhar and a team March 12, 2024 16:57
@nbierdeman
Copy link
Contributor Author

codecov is wanting me to write tests for alphabetizing the FPTI keys. 👇 🙃

Copy link
Contributor

@jshawl jshawl left a comment

Choose a reason for hiding this comment

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

:shipit:

getCurrentScript.mockReturnValue(mockElement);

expect(getJsSdkLibrary()).toEqual(jsSdkLibrary);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

nice!

[FPTI_KEY.LOCALE]: `${lang}_${country}`,
[FPTI_KEY.CONTEXT_CORRID]: getCorrelationID(),
[FPTI_KEY.DATA_SOURCE]: FPTI_DATA_SOURCE.PAYMENTS_SDK,
[FPTI_KEY.FEED]: FPTI_FEED.PAYMENTS_SDK,
Copy link
Contributor

Choose a reason for hiding this comment

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

🔥 (🔤)

@nbierdeman nbierdeman merged commit 6ce78b2 into main Mar 12, 2024
4 of 5 checks passed
@nbierdeman nbierdeman deleted the feature/DTPPCPSDK-1482 branch March 12, 2024 18:18
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