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 error that occurred when default content items were rendered via applyPropositions #1203

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

ninaceban
Copy link
Contributor

Description

The issue appeared after this PR has been released.
default-content-item schemas items do not have item.data, thus this was leading into validation error and propositions were never applied. Customers do not know when default-content-item is returned, which was breaking their implementation and their could not see the impressions. This is a critical issue because it impacts all the customers and can affect any other activities not only those that have default-content-item.

Related Issue

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.

Copy link
Contributor

@jonsnyder jonsnyder left a comment

Choose a reason for hiding this comment

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

Awesome work finding this!

@@ -31,7 +31,7 @@ export default ({ logger, options }) => {
objectOf({
id: string().required(),
schema: string().required(),
data: anything().required(),
data: objectOf(anything()),
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you need to do objectOf({}). But why change data to have to be an object?. It seems you could just remove this line entirely and allow data to be set or not.

@jonsnyder jonsnyder merged commit 9474080 into main Oct 29, 2024
4 of 6 checks passed
@jonsnyder jonsnyder deleted the PLATIR-44629 branch October 29, 2024 15:34
@jonsnyder jonsnyder changed the title Web SDK Error in applyPropositions due to Default Content or Tracking Event Fixed an error that occurred when default content items were rendered via applyPropositions Oct 31, 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