feat: Add sandbox mode to attributes#559
Conversation
rmi22186
left a comment
There was a problem hiding this comment.
Please add tests for the following cases:
Can you add a test case for:
- mock the environment and doesn't pass a sandbox attribute to ensure the environment variable is being used
- mock the environment as development, but passes sandbox attribute as
falseand ensurefalseis set onselectPlacements
rmi22186
left a comment
There was a problem hiding this comment.
this looks good. can you add tests first though?
73f2388 to
5910509
Compare
|
@Mansi-mParticle looks like this needs to be properly rebased. it has too many commits in it. then you still need to add tests |
7e0d142 to
fddaefd
Compare
9c9ed4d to
8ce20c6
Compare
0e00b32 to
5d4cc0e
Compare
BrandonStalnaker
left a comment
There was a problem hiding this comment.
Logic looks good/matches iOS. Had one small question/suggestion on the code but good otherwise
| } | ||
| } | ||
| if (user != null) { | ||
| user.setUserAttributes(objectAttributes); |
There was a problem hiding this comment.
The logic here seems a little convoluted to me. Why are we making and updating this new variable objectAttributes ? Could you just
if (user != null) {
user.setUserAttributes(objectAttributes);
}
on line 1376 in the if where you confirm its not sandbox mode? Oh maybe there's not a setUserAttribute method? ( a method to set them one at a time)
There was a problem hiding this comment.
We only need the attributes except the one for sandbox mode, so objectAttributes should not include the sandbox mode attribute.
## [5.65.0](v5.64.0...v5.65.0) (2025-06-09) ### Features * Add sandbox mode to attributes ([#559](#559)) ([cbccd13](cbccd13)) ### Bug Fixes * Add @nonnull and @nullable annotations to execute method parameters ([#579](#579)) ([9089098](9089098)) * add Rokt dimensions layout to show embedded placements correctly ([#580](#580)) ([9d6813c](9d6813c)) ### Updates & Maintenance * Update submodules ([4ed38b5](4ed38b5))
|
🎉 This PR is included in version 5.65.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Instructions
developmentSummary
Testing Plan
Reference Issue (For mParticle employees only. Ignore if you are an outside contributor)