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

Fixed an issue where bottom of page calls would never send when there was a top of page call with renderDecisions set to false. #1092

Merged
merged 2 commits into from
Jan 8, 2024

Conversation

jonsnyder
Copy link
Contributor

@jonsnyder jonsnyder commented Jan 2, 2024

Description

When you have a top of page call with renderDecisions: false, and sendDisplayEvent: false, the bottom of page call would never send. Daniel Wright found this bug. A work-around is to set renderDecisions: true whenever you have sendDisplayEvent: false.

Related Issue

https://jira.corp.adobe.com/browse/PDCL-11480

Motivation and Context

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA or I'm an Adobe employee.
  • I have made any necessary test changes and all tests pass.
  • I have run the Sandbox successfully.

if (!sendDisplayEvent) {
return (isRenderDecisions, isSendDisplayEvent, viewName) => {
if (!isRenderDecisions) {
// If we aren't rendering anything, then we don't need to sendDisplayEvents.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

Copy link
Contributor

@jfkhoury jfkhoury left a comment

Choose a reason for hiding this comment

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

Nice fix

@jonsnyder jonsnyder merged commit 7d66f13 into main Jan 8, 2024
2 of 3 checks passed
@jonsnyder jonsnyder deleted the multiTopOfPage branch January 8, 2024 23:08
@jonsnyder jonsnyder changed the title Fixed issue where bottom of page call would never send when there were multiple top of page calls. Fixed an issue where bottom of page calls would never send when there were multiple top of page calls. Jan 8, 2024
@jonsnyder jonsnyder changed the title Fixed an issue where bottom of page calls would never send when there were multiple top of page calls. Fixed an issue where bottom of page calls would never send when there was a top of page call with renderDecisions set to false. Jan 8, 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