Skip to content

Commit

Permalink
chore(release): pull main into develop post release v1.54.4 (#3050)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna2020 authored Feb 2, 2024
2 parents 387df13 + be56ed7 commit 5ee1b7c
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.54.4](https://github.com/rudderlabs/rudder-transformer/compare/v1.54.3...v1.54.4) (2024-01-31)


### Bug Fixes

* purchsse events for reddit ([56d24ec](https://github.com/rudderlabs/rudder-transformer/commit/56d24ec74c0c21bcdcdf262b4feec6edd1dff51c))

### [1.54.3](https://github.com/rudderlabs/rudder-transformer/compare/v1.54.2...v1.54.3) (2024-01-30)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-transformer",
"version": "1.54.3",
"version": "1.54.4",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
6 changes: 3 additions & 3 deletions src/cdk/v2/destinations/reddit/procWorkflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ steps:
const event_type = (eventNames.length === 0 || eventNames[0]==="") ? ({"tracking_type": "Custom", "custom_event_name": event}): ({tracking_type: eventNames[0]});
- name: customFields
condition: $.outputs.eventType.tracking_type === "Purchase"
condition: $.outputs.prepareTrackPayload.eventType.tracking_type === "Purchase"
template: |
const customFields = .message.().({
"currency": .properties.currency,
"value": .properties.revenue !== undefined ? Number(.properties.revenue) : undefined,
"value_decimal": .properties.revenue !== undefined ? Number(.properties.revenue) : undefined,
"item_count": (Array.isArray(.properties.products) && .properties.products.length) || (.properties.itemCount && Number(.properties.itemCount)),
"value_decimal": .properties.revenue !== undefined ? Number(.properties.revenue)/100 : undefined,
"value": .properties.revenue !== undefined ? Number(.properties.revenue)*100 : undefined,
"conversion_id": .properties.conversionId || .messageId,
});
$.removeUndefinedAndNullValues(customFields)
Expand Down
5 changes: 4 additions & 1 deletion test/integrations/destinations/reddit/processor/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ export const data = [
screen_dimensions: {},
},
event_metadata: {
item_count: 3,
item_count: 2,
currency: 'USD',
value: 1500,
value_decimal: 15,
products: [
{
id: '123',
Expand Down
5 changes: 4 additions & 1 deletion test/integrations/destinations/reddit/router/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,10 @@ export const data = [
screen_dimensions: {},
},
event_metadata: {
item_count: 3,
item_count: 2,
currency: 'USD',
value: 1500,
value_decimal: 15,
products: [
{ id: '123', name: 'Monopoly', category: 'Games' },
{ id: '345', name: 'UNO', category: 'Games' },
Expand Down

0 comments on commit 5ee1b7c

Please sign in to comment.