Skip to content

fix(INT-256): handling non float price input for braze purchase events - #2431

Merged
utsabc merged 3 commits into
developfrom
fix.braze-purchase
Aug 4, 2023
Merged

utsabc merged 3 commits into
developfrom
fix.braze-purchase

Conversation

@utsabc

@utsabc utsabc commented Aug 4, 2023

Copy link
Copy Markdown
Contributor

Description of the change

Braze purchase events require the price value to be float. This commit is purposed to solve that

Braze purchase events require the price value to be float. This commit is purposed to solve that
@utsabc
utsabc requested a review from a team as a code owner August 4, 2023 04:05
@utsabc
utsabc requested review from ItsSudip, krishna2020, sanpj2292 and shrouti1507 and removed request for sanpj2292 and shrouti1507 August 4, 2023 04:05
@utsabc utsabc self-assigned this Aug 4, 2023
@utsabc utsabc added the bug fix label Aug 4, 2023
@codecov

codecov Bot commented Aug 4, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 95.38% and no project coverage change.

Comparison is base (9809d04) 86.62% compared to head (030300c) 86.63%.

❗ Current head 030300c differs from pull request most recent head 24474c5. Consider uploading reports for the commit 24474c5 to get more accurate results

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2431   +/-   ##
========================================
  Coverage    86.62%   86.63%           
========================================
  Files          556      556           
  Lines        27795    27817   +22     
  Branches      6642     6647    +5     
========================================
+ Hits         24078    24098   +20     
- Misses        3362     3364    +2     
  Partials       355      355           
Files Changed Coverage Δ
src/v0/destinations/braze/util.js 97.45% <95.00%> (-0.69%) ⬇️
src/v0/destinations/braze/transform.js 90.58% <100.00%> (-0.99%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

mihir-4116
mihir-4116 previously approved these changes Aug 4, 2023
Comment thread src/v0/destinations/braze/transform.js Resolved
@utsabc
utsabc requested a review from a team as a code owner August 4, 2023 06:44
@utsabc utsabc changed the title fix: handling non float price input for braze purchase events fix(INT-203): handling non float price input for braze purchase events Aug 4, 2023
@linear

linear Bot commented Aug 4, 2023

Copy link
Copy Markdown

@utsabc utsabc changed the title fix(INT-203): handling non float price input for braze purchase events fix: handling non float price input for braze purchase events Aug 4, 2023
@utsabc utsabc changed the title fix: handling non float price input for braze purchase events fix(INT-256): handling non float price input for braze purchase events Aug 4, 2023
@linear

linear Bot commented Aug 4, 2023

Copy link
Copy Markdown

@utsabc
utsabc merged commit f65ef89 into develop Aug 4, 2023
@utsabc
utsabc deleted the fix.braze-purchase branch August 4, 2023 07:27
@sonarqubecloud

sonarqubecloud Bot commented Aug 4, 2023

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

90.5% 90.5% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

expect(addAppId(payload, message)).toEqual(payload);
});
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No positive test case for Shopify scenario ?
Price: "10.99"

koladilip added a commit that referenced this pull request Aug 8, 2023
* chore: onboard swagger api on docker (#2400)

onboard swagger api on docker

* refactor: migrate destinations from cdk v1 to v2 (#2381)

* refactor: migrate autopilot to cdkv2

* refactor: migrate heap to cdkv2

Modified the tests according to cdk v2 style.

* refactor: migrate vitally to cdk v2

* chore: remove legacy profile routes

* chore: remove legacy profile routes

* refactor: migrate variance to cdk v2

* refactor: migrate statsig to cdkv2

* refactor: migrate userlist to cdkv2

* refactor: migrate zapier to cdk v2

* refactor: migrate lytics to cdk v2

* fix: pr comments

* refactor: migrate new relic to cdk v2

Migrate cdk v1 implementation to v2.

* refactor: migrate dcm_floodlight to cdk v1

* refactor: migrate kochava to cdk v2

* fix: pr comments

* fix:  stat labels (#2412)

fix stat labels

* feat: sessionId stitching (#2204)

* feat: sessionId stitching

* chore: comments addressed

* chore: test coverage improved

* chore: small fixes

* chore: update test file coverage and improvised metrics

* chore: update test file coverage

* Update src/v0/sources/shopify/transform.js

Co-authored-by: Utsab Chowdhury <[email protected]>

* chore: shifted to hgetall to retrieve all data from redis in one go

* chore: test case fix

* chore: increase test coverage

* chore: increase test coverage+1

* chore: sonarcloud issues

* chore: separate util test file for redis related test cases

---------

Co-authored-by: Sai Sankeerth <[email protected]>
Co-authored-by: Utsab Chowdhury <[email protected]>

* fix: customerIO source bugsnag issue for invalid timestamp (#2413)

* chore: outgoing request latency metric (#2421)

* fix: update images to fix integration tests (#2417)

* chore: update tiktok ads api version to 1.3 (#2423)

chore: update tiktok version to 1.3

* chore(transformation): set to default dns servers (#2416)

* chore: tags for missed destinations for latency metric (#2425)

Co-authored-by: Chandra shekar Varkala <[email protected]>

* fix: rETL timestamp order (#2343)

* fix(transformation): return retryable error when faas service exists … (#2427)

* feat: return relevant stack trace as error from ivm (#2314)

* feat: return relevant stack trace as error from ivm

* chore: throw platform error for get recordId

* chore: change error type for get recordId

* fix: continue on git action failure to next steps (#2429)

* fix(INT-256): handling non float price input for braze purchase events (#2431)

* fix: handling non fload price input for braze purchase events

Braze purchase events require the price value to be float. This commit is purposed to solve that

* fix: add test cases and refactored the code for puchase events for braze

---------

Co-authored-by: Mihir Bhalala <[email protected]>

* fix(tiktok_ads): format productId to string data type (#2434)

* fix: handle marketo auth token response when expires_in is 0 sec  (#2432)

* fix: handle marketo auth token response when expires_in is 0 sec

* Update src/v0/destinations/marketo/util.js

Co-authored-by: Dilip Kola <[email protected]>

---------

Co-authored-by: Dilip Kola <[email protected]>

* chore(release): 1.37.0

* fix(tiktok_ads): format products array product ids to string (#2445)

* fix: heap timestamp mapping (#2451)

* chore: update changelog entry for heap and tiktok (#2452)

---------

Co-authored-by: Utsab Chowdhury <[email protected]>
Co-authored-by: sandeepdigumarty <[email protected]>
Co-authored-by: Krishna Chaitanya <[email protected]>
Co-authored-by: Dilip Kola <[email protected]>
Co-authored-by: Anant Jain <[email protected]>
Co-authored-by: Sai Sankeerth <[email protected]>
Co-authored-by: chandumlg <[email protected]>
Co-authored-by: Jayachand <[email protected]>
Co-authored-by: Yashasvi Bajpai <[email protected]>
Co-authored-by: Chandra shekar Varkala <[email protected]>
Co-authored-by: Sankeerth <[email protected]>
Co-authored-by: Daniyal Parveez <[email protected]>
Co-authored-by: Gauravudia <[email protected]>
Co-authored-by: AASHISH MALIK <[email protected]>
Co-authored-by: Gauravudia <[email protected]>
Co-authored-by: Mihir Bhalala <[email protected]>
Co-authored-by: GitHub Actions <[email protected]>
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.

4 participants