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: Include allowedVendor param and update ModuleId value #13

Closed

Conversation

gh-mmurph
Copy link
Collaborator

@gh-mmurph gh-mmurph commented Dec 11, 2024

Summary

Added new consent param to ID5 init per their recommendation and updated the ModuleId value as it looked to make ID5 kit initialization fail in my end to end test; this may be just impacting me but using a number ensure it matches how other kits are set-up.

Testing Plan

Tested via running NPM test builds

Master Issue

Closes https://go.mparticle.com/work/SQDSDKS-7015

@gh-mmurph gh-mmurph changed the base branch from main to development December 11, 2024 15:04
@@ -1264,7 +1264,13 @@ IdentityHandler.prototype.onLoginComplete = function(
var partnerData = this.common.buildPartnerData(mParticleUser);

if (partnerData) {
var id5Instance = window.ID5.init({partnerId: this.common.partnerId, pd: partnerData});
var id5Instance = window.ID5.init({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please don't check in the /dist folder in your PRs. These files are built when we release and any merge conflicts will prevent us from using automated releases.

partnerId: this.common.partnerId,
pd: partnerData,
consentData: {
allowedVendors: [ '131', 'ID5-1747' ]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I see you're repeating some of these string values and there's a slight risk of some typos. I would make these values into constants so they can be reused and give us some safety.

@gh-mmurph gh-mmurph closed this Dec 18, 2024
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.

3 participants