Skip to content

MWPW-199051 [MEP] Save results of Rainfocus API to config.mep#6200

Open
vgoodric wants to merge 10 commits into
stagefrom
mepeventssavedata
Open

MWPW-199051 [MEP] Save results of Rainfocus API to config.mep#6200
vgoodric wants to merge 10 commits into
stagefrom
mepeventssavedata

Conversation

@vgoodric

@vgoodric vgoodric commented Jun 18, 2026

Copy link
Copy Markdown
Contributor
  • Updated the event initialization function to store fetched event details in the configuration object. This change enhances the management of event data and ensures that registration status can be accessed from the config.
  • Added a corresponding test to verify the new behavior.

Resolves: MWPW-199051

Test URLs:

… config

Updated the event initialization function to store fetched event details in the configuration object. This change enhances the management of event data and ensures that registration status can be accessed from the config. Added a corresponding test to verify the new behavior.
@aem-code-sync

aem-code-sync Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

…ties

Updated the personalization initialization function to ensure that existing MEPS properties are preserved when setting new values. This change improves the configuration management for personalization features.
@vgoodric vgoodric requested a review from a team as a code owner June 18, 2026 19:41
@aem-code-sync aem-code-sync Bot temporarily deployed to mepeventssavedata June 18, 2026 19:41 Inactive
@github-actions

Copy link
Copy Markdown
Contributor

This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR.

Comment thread libs/features/personalization/personalization.js
Updated the event initialization function to return an object containing the registration status instead of a boolean. This change improves the clarity of the returned data and ensures that event details are consistently managed. Adjusted related personalization logic to utilize the new structure. Updated tests to reflect these changes.
@aem-code-sync aem-code-sync Bot temporarily deployed to mepeventssavedata June 22, 2026 16:51 Inactive
Eliminated the spread operator from the MEPS configuration update in the personalization initialization function. This change simplifies the code while maintaining the integrity of the existing configuration properties.
@aem-code-sync aem-code-sync Bot temporarily deployed to mepeventssavedata June 22, 2026 16:52 Inactive
vgoodric added 3 commits June 22, 2026 12:16
…alues

Refactored the event test cases to check the 'isRegistered' property of the event object instead of directly comparing the event to boolean values. This change aligns the tests with the updated event initialization function that returns a structured object, enhancing clarity and consistency in test assertions.
Updated the event handling functions to return a default object instead of an empty object when user ID or access token is unavailable. This change improves consistency in the returned data structure and enhances error handling. Adjusted related logic to utilize the new default return value.
@aem-code-sync aem-code-sync Bot temporarily deployed to mepeventssavedata June 22, 2026 20:18 Inactive
…on check

Updated the getPersonalizationVariant function to simplify the condition for checking user registration status. Removed unnecessary assignment of event details to the config object, enhancing code clarity and efficiency. Adjusted the initialization of event details in the config to ensure proper handling of promises.
Comment thread libs/features/personalization/personalization.js Outdated
@aem-code-sync aem-code-sync Bot temporarily deployed to mepeventssavedata June 23, 2026 16:13 Inactive
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

This PR has not been updated recently and will be closed in 7 days if no action is taken. Please ensure all checks are passing, https://github.com/orgs/adobecom/discussions/997 provides instructions. If the PR is ready to be merged, please mark it with the "Ready for Stage" label.

@github-actions github-actions Bot added the Stale label Jul 1, 2026
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.

3 participants