Skip to content

feat: added noFunctional and noTargeting flags#1059

Merged
jaissica12 merged 5 commits into
developmentfrom
feat/SDKE-69-add-noFunctional-noTargeting-privacy-flags-in-store
Sep 8, 2025
Merged

feat: added noFunctional and noTargeting flags#1059
jaissica12 merged 5 commits into
developmentfrom
feat/SDKE-69-add-noFunctional-noTargeting-privacy-flags-in-store

Conversation

@jaissica12

Copy link
Copy Markdown
Contributor

Instructions

  1. PR target branch should be against development
  2. PR title name should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-title-check.yml
  3. PR branch prefix should follow this format: https://github.com/mParticle/mparticle-workflows/blob/main/.github/workflows/pr-branch-check-name.yml

Summary

  • Added two privacy flags - noTargeting noFunctional which will be extracted from config and used further to evaluate local storage / cookie.

Testing Plan

  • Was this tested locally? If not, explain why. - Tested locally through testing app
  • {explain how this has been tested, and what, if any, additional testing should be done}

Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)

@rmi22186 rmi22186 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

minor nits

Comment thread test/jest/store.flags.spec.ts Outdated
});

// Default case
it('defaults to false when not provided', () => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i'd be more specific

Suggested change
it('defaults to false when not provided', () => {
it('defaults noFunctional and noTargeting to false when not provided', () => {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback! Will update it

Comment thread test/src/tests-store.ts Outdated
Comment on lines +1679 to +1680
(window.mParticle.config).noFunctional = true;
(window.mParticle.config).noTargeting = true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

any reason for the parentheses?

Suggested change
(window.mParticle.config).noFunctional = true;
(window.mParticle.config).noTargeting = true;
window.mParticle.config.noFunctional = true;
window.mParticle.config.noTargeting = true;

@jaissica12 jaissica12 requested a review from rmi22186 August 27, 2025 19:15
@sonarqubecloud

sonarqubecloud Bot commented Sep 8, 2025

Copy link
Copy Markdown

@jaissica12 jaissica12 merged commit 9235483 into development Sep 8, 2025
120 of 129 checks passed
github-actions Bot pushed a commit that referenced this pull request Sep 15, 2025
# [2.45.0](v2.44.0...v2.45.0) (2025-09-15)

### Features

* add use method for rokt kit ([#1067](#1067)) ([bdcd4c5](bdcd4c5))
* added noFunctional and noTargeting flags ([#1059](#1059)) ([9235483](9235483))
@mparticle-automation

Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 2.45.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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