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

Initial attempt to refactor persistence #847

Draft
wants to merge 6 commits into
base: development
Choose a base branch
from

Conversation

alexs-mparticle
Copy link
Collaborator

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

  • {provide a thorough description of the changes}

Testing Plan

  • Was this tested locally? If not, explain why.
  • {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)

@@ -67,10 +67,9 @@ export default function filteredMparticleUser(
return userAttributesLists;
},
getAllUserAttributes: function() {
// TODO: May not need to make a copy since Store should return a copy
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note te self: we need this empty object to create a new subset of attributes for filtering.

src/identity.js Outdated
// QUESTION: can we just use mpInstance._Store.setUserAttributes here?
if (persistence && persistence[mpid]) {
persistence[mpid].ua = userAttributes;
// QUESTION: why is mpid an argument here when it's not in the signature?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Note to self: Defined in getCurrentUser at the top of this nested block

@alexs-mparticle alexs-mparticle force-pushed the refactor/add-persistence-to-store branch from c3e71d0 to d2d6b82 Compare March 21, 2024 15:17
@rmi22186 rmi22186 force-pushed the development branch 2 times, most recently from 0853bc2 to dd1920f Compare March 25, 2024 13:56
@alexs-mparticle alexs-mparticle force-pushed the refactor/add-persistence-to-store branch 2 times, most recently from 6e7bb41 to e2cd1b7 Compare March 27, 2024 12:04
@alexs-mparticle alexs-mparticle force-pushed the refactor/add-persistence-to-store branch from e2cd1b7 to c366737 Compare March 27, 2024 12:05
Copy link

sonarcloud bot commented Mar 28, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
18.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

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.

1 participant