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

Add evaluateRulesets action, subscribeRulesetItems event for "in browser messages" beta #351

Merged
merged 6 commits into from
Oct 27, 2023

Conversation

jonsnyder
Copy link
Contributor

@jonsnyder jonsnyder commented Oct 23, 2023

Description

This adds evaluateRulesets action, and subscribeRulesetItems event for the In browser messages beta work. It also adds a field in sendEvent for "decisionContext".

I still need to add functional tests, and add beta labels.

Related Issue

Motivation and Context

Screenshots (if appropriate):

Screenshot 2023-10-23 at 11 33 29 AM Screenshot 2023-10-23 at 11 31 47 AM

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.
  • I've updated the schema in extension.json or no changes are necessary.
  • My change requires a change to the documentation.

@carterworks
Copy link
Contributor

Approval pending the beta badges from #353

@jasonwaters
Copy link
Contributor

this PR will need to be modified to support moving decisionContext within personalization if that pr is merged adobe/alloy#1068

@jfkhoury
Copy link
Contributor

Looks good, @jonsnyder, thank you for making the edits.

const items = [...parent];
const currentIndex = items.indexOf(item);
const previousItems = items.slice(0, currentIndex);
console.log("unique key validator 2", currentIndex, previousItems);
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO (eventually): remove this console log

@@ -29,6 +29,7 @@ const FormikComboBox = ({ name, width, validate, ...otherProps }) => {
name,
validate
});
console.log("FormikComboBox", otherProps);
Copy link
Contributor

Choose a reason for hiding this comment

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

TODO (eventually): remove this console log

notice({
title: "Evaluate rulesets action",
description:
"This action manually triggers ruleset evaluation. Rulesets are returned from Adobe Journey Optimizer in-browser-messages.",
Copy link
Contributor

Choose a reason for hiding this comment

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

I would revise this just a tad:

This action manually triggers ruleset evaluation. Rulesets are returned by Adobe Journey Optimizer to support features like in-browser messages.

@jonsnyder jonsnyder merged commit 2224429 into main Oct 27, 2023
4 of 5 checks passed
@jonsnyder jonsnyder deleted the inBrowserMessages branch October 27, 2023 16:50
jonsnyder added a commit that referenced this pull request Nov 6, 2023
jonsnyder added a commit that referenced this pull request Nov 9, 2023
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.

4 participants