Skip to content

Commit

Permalink
chore(release): pull hotfix-release/v1.49.1 into main (#2817)
Browse files Browse the repository at this point in the history
  • Loading branch information
krishna2020 authored Nov 10, 2023
2 parents dd884dd + 608a4d5 commit b7d86d0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 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.49.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.49.0...v1.49.1) (2023-11-10)


### Bug Fixes

* update create-hotfix-branch.yml ([#2815](https://github.com/rudderlabs/rudder-transformer/issues/2815)) ([dd884dd](https://github.com/rudderlabs/rudder-transformer/commit/dd884ddc78898bd7de155ec4f05ce8fe6e2c4b80))

## [1.49.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.48.0...v1.49.0) (2023-11-06)


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.49.0",
"version": "1.49.1",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
13 changes: 3 additions & 10 deletions src/v0/destinations/am/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,9 @@ const handleTraits = (messageTrait, destination) => {

const getScreenevTypeAndUpdatedProperties = (message, CATEGORY_KEY) => {
const name = message.name || message.event || get(message, CATEGORY_KEY);
const updatedName = name ? `${name} ` : '';

return {
eventType: `Viewed ${updatedName}Screen`,
eventType: `Viewed ${message.name || message.event || get(message, CATEGORY_KEY) || ''} Screen`,
updatedProperties: {
...message.properties,
name,
Expand Down Expand Up @@ -577,8 +577,6 @@ const getGroupInfo = (destination, groupInfo, groupTraits) => {
}
return groupInfo;
};
const getUpdatedPageNameWithoutUserDefinedPageEventName = (name, message, CATEGORY_KEY) =>
name || get(message, CATEGORY_KEY) ? `${name || get(message, CATEGORY_KEY)} ` : undefined;

// Generic process function which invokes specific handler functions depending on message type
// and event type where applicable
Expand Down Expand Up @@ -614,12 +612,7 @@ const processSingleMessage = (message, destination) => {
.trim()
.replaceAll(/{{([^{}]+)}}/g, get(message, getMessagePath));
} else {
const updatedName = getUpdatedPageNameWithoutUserDefinedPageEventName(
name,
message,
CATEGORY_KEY,
);
evType = `Viewed ${updatedName || ''}Page`;
evType = `Viewed ${name || get(message, CATEGORY_KEY) || ''} Page`;
}
message.properties = {
...properties,
Expand Down
4 changes: 2 additions & 2 deletions test/__tests__/data/am_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -3944,7 +3944,7 @@
"id": "User Android",
"userId": "User Android"
},
"event_type": "Viewed Screen",
"event_type": "Viewed Screen",
"user_id": "User Android",
"device_brand": "Google",
"time": 1662393883250,
Expand Down Expand Up @@ -4276,7 +4276,7 @@
"app_name": "RudderLabs JavaScript SDK",
"app_version": "1.0.0",
"language": "en-US",
"event_type": "Viewed Page",
"event_type": "Viewed Page",
"event_properties": {
"path": "/destinations/amplitude",
"referrer": "",
Expand Down

0 comments on commit b7d86d0

Please sign in to comment.