Skip to content

💡 refactor(state): Rearranging states and fixing pm2 issue#47

Merged
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-1687_rearranging-states-and-fixing-pm2-issue
Oct 20, 2025
Merged

💡 refactor(state): Rearranging states and fixing pm2 issue#47
Charles Hudson (phobetron) merged 1 commit into
mainfrom
NT-1687_rearranging-states-and-fixing-pm2-issue

Conversation

@phobetron
Copy link
Copy Markdown
Collaborator

@phobetron Charles Hudson (phobetron) commented Oct 20, 2025

Moving the relevant states to the modules that rely on them most. This allows us to more easily separate Personalization and Analytics in the future, if that ever makes sense.

However, profile may be updated twice if the customer sets the defaults for both personalization and analytics, since it applies to both. Also, while the Core code can remain oblivious to the two modules' individual states collections, SDKs that rely on core may still need to be aware of the structure of the defaults for both modules for the purposes of caching.

NoClose

[NT-1687]

@wiz-inc-38d59fb8d7
Copy link
Copy Markdown

wiz-inc-38d59fb8d7 Bot commented Oct 20, 2025

Wiz Scan Summary

Scanner Findings
Vulnerability Finding Vulnerabilities -
Data Finding Sensitive Data -
Total -

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try using Wiz Code VS Code Extension.

@phobetron Charles Hudson (phobetron) force-pushed the NT-1687_rearranging-states-and-fixing-pm2-issue branch from b1fa951 to 2b25f7d Compare October 20, 2025 16:31
Moving the relevant states to the modules that rely on them most. This
allows us to more easily separate Personalization and Analytics in the
future, if that ever makes sense.

However, `profile` may be updated twice if the customer sets the
defaults for both personalization and analytics, since it applies to
both. Also, while the Core code can remain oblivious to the two
modules' individual states collections, SDKs that rely on core may
still need to be aware of the structure of the defaults for both
modules for the purposes of caching.

NoClose

[[NT-1687](https://contentful.atlassian.net/browse/NT-1687)]
@phobetron Charles Hudson (phobetron) force-pushed the NT-1687_rearranging-states-and-fixing-pm2-issue branch from 2b25f7d to 1c79f51 Compare October 20, 2025 16:40
@phobetron Charles Hudson (phobetron) merged commit b00d3ff into main Oct 20, 2025
16 checks passed
@phobetron Charles Hudson (phobetron) deleted the NT-1687_rearranging-states-and-fixing-pm2-issue branch October 20, 2025 16:46
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.

1 participant