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

fix: Deleting property stripping from product when sent unbundled #86

Conversation

v-mamaya
Copy link
Contributor

@v-mamaya v-mamaya commented Feb 7, 2024

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

  • This PR allows sending the product name, category and affiliation when sending each product separately for a purchase event. I've modified the associated test as well.

Testing Plan

  • Was this tested locally? If not, explain why.
    It was tested manually by checking the payloads that braze receives.

This is a sample payload of a product with category without the change:
image

This is a sample payload with the change:
image

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

@v-mamaya
Copy link
Contributor Author

v-mamaya commented Feb 7, 2024

Hey @einsteinx2 @BrandonStalnaker, this is the issue I've told you about in the Dev Tools. Can you take a look at it and let me know if it looks ok? Thx!

@@ -430,7 +430,8 @@ - (void)testlogPurchaseCommerceEvent {
@"Total Amount" : @13.00,
@"Total Product Amount" : @"13",
@"Tax Amount" : @3,
@"Transaction Id" : @"foo-transaction-id"
Copy link
Contributor

Choose a reason for hiding this comment

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

could we add example of all 3 of the keys to this test? Everything else looks great!

Copy link
Contributor

@BrandonStalnaker BrandonStalnaker left a comment

Choose a reason for hiding this comment

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

LGTM

@BrandonStalnaker BrandonStalnaker merged commit d0b477b into mparticle-integrations:development Feb 7, 2024
3 checks passed
mparticle-automation added a commit that referenced this pull request Feb 7, 2024
## [8.3.1](v8.3.0...v8.3.1) (2024-02-07)

### Bug Fixes

* Deleting property stripping from product when sent unbundled ([#86](#86)) ([d0b477b](d0b477b))
@mparticle-automation
Copy link
Collaborator

🎉 This PR is included in version 8.3.1 🎉

The release is available on GitHub release

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