rudderlabs / rudder-transformer

Open-source, warehouse-first Customer Data Pipeline and Segment-alternative. Collects and routes clickstream data and builds your customer data lake on your data warehouse.
https://www.rudderstack.com
Other
79 stars 110 forks source link

fix: add correct validation for purchase events #3766

Closed utsabc closed 2 weeks ago

utsabc commented 2 weeks ago

What are the changes introduced in this PR?

In Bluecore we were having validation which were resulting in truthy outcome for numeric values like 0

Screenshot 2024-09-27 at 5 44 21 PM

This PR approaches to fix the same

What is the related Linear task?

Resolves INT-2722

Alert: https://rudderstack.grafana.net/a/grafana-oncall-app/alert-groups/I41S6Q2NG82DL?perpage=25&start=1&started_at=now-30d_now&status=0&status=1&team=TRBAJ7M5Y8MEJ

Please explain the objectives of your changes below

Put down any required details on the broader aspect of your changes. If there are any dependent changes, mandatorily mention them here

Any changes to existing capabilities/behaviour, mention the reason & what are the changes ?

N/A

Any new dependencies introduced with this change?

N/A

Any new generic utility introduced or modified. Please explain the changes.

N/A

Any technical or performance related pointers to consider with the change?

N/A

@coderabbitai review


Developer checklist

Reviewer checklist

devops-github-rudderstack commented 2 weeks ago

Test report for this run is available at: https://test-integrations-dev.s3.amazonaws.com/integrations-test-reports/rudder-transformer/3766/test-report.html

codecov[bot] commented 2 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.92%. Comparing base (4c0c681) to head (998c720). Report is 7 commits behind head on develop.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #3766 +/- ## =========================================== + Coverage 88.89% 88.92% +0.02% =========================================== Files 600 599 -1 Lines 32658 32609 -49 Branches 7757 7745 -12 =========================================== - Hits 29032 28998 -34 - Misses 3318 3334 +16 + Partials 308 277 -31 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
11 New issues
1 Accepted issue

Measures
0 Security Hotspots
93.2% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud