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

Critical Bug Report: fireSectionChange() Method Not Returning Updated GPP String in Version 3.1.5 #77

Open
ankitonetrust opened this issue Jan 23, 2025 · 0 comments

Comments

@ankitonetrust
Copy link

In version 3.1.5 of the IAB GPP library, the method fireSectionChange() does not return the updated or correct GPP string after modifying a section. This issue was not present in version 3.1.2, where the method worked as expected.

Steps to Reproduce
Update to GPP library version 3.1.5.
Call fireSectionChange() after making changes to a section in the GPP configuration.
Check the returned GPP string — it does not reflect the updated state.

Expected Behavior
The fireSectionChange() method should return the correct and updated GPP string, incorporating any changes made to the relevant sections.

Actual Behavior
The GPP string returned by fireSectionChange() is outdated or incorrect and does not reflect the recent changes to the section.

Environment
Library Version: 3.1.5
Previous Working Version: 3.1.2
Environment: [e.g., Node.js, Browser, etc.]

Additional Information
This issue was not observed in version 3.1.2, where the fireSectionChange() method worked as intended.
The problem seems to arise specifically with the updated library in version 3.1.5.

Suggested Priority
High — This issue breaks functionality for applications relying on fireSectionChange() to dynamically update and retrieve the correct GPP string.

`import { GPP } from '@iabgpp/core';

// Example showing the issue
const gpp = new GPP();
gpp.setSection('sectionId', { key: 'value' });

const updatedGppString = gpp.fireSectionChange('sectionId');
console.log('Updated GPP String:', updatedGppString); // Not reflecting the changes in version 3.1.5
`

@ankitonetrust ankitonetrust changed the title Bug Report: fireSectionChange() Method Not Returning Updated GPP String in Version 3.1.5 Critical Bug Report: fireSectionChange() Method Not Returning Updated GPP String in Version 3.1.5 Jan 23, 2025
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

No branches or pull requests

1 participant