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

permutiveRtd : transform integers to strings #11910

Merged

Conversation

AntonioGargaro
Copy link
Contributor

@AntonioGargaro AntonioGargaro commented Jul 2, 2024

Type of change

  • Bugfix

Description of change

Segments were read from persistence and used as is. We now safely transform all values read to a string.

This was causing issues when exposing segments into ortb2 that expected the segment IDs to be of type string (see open rtd spec section 3.2.21 and 3.2.22).

Added tests to ensure that values read from persistence are parsed safely.

Other information

@AntonioGargaro AntonioGargaro marked this pull request as ready for review July 2, 2024 13:02
@ChrisHuie ChrisHuie changed the title fix(permutiveRtd): transform integers to strings permutiveRtd : transform integers to strings Jul 2, 2024
@patmmccann
Copy link
Collaborator

can you fix your jsdoc in this pr please?
image

@AntonioGargaro
Copy link
Contributor Author

Thanks for letting me know @patmmccann, fixed!

Copy link
Contributor

@ncolletti ncolletti left a comment

Choose a reason for hiding this comment

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

LGTM

@ncolletti ncolletti merged commit e0a8c58 into prebid:master Jul 3, 2024
5 checks passed
@AntonioGargaro AntonioGargaro deleted the EC-584/rtd-module-as-strings branch July 5, 2024 09:03
DecayConstant pushed a commit to mediavine/Prebid.js that referenced this pull request Jul 18, 2024
* fix(permutiveRtd): transform integers to strings

* docs(permutiveRtd): update jsdoc to match function signatures

* docs(permutiveRtd): fix ordering of jsdoc comments
mefjush pushed a commit to adhese/Prebid.js that referenced this pull request Jul 19, 2024
* fix(permutiveRtd): transform integers to strings

* docs(permutiveRtd): update jsdoc to match function signatures

* docs(permutiveRtd): fix ordering of jsdoc comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants