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

chore(release): pull release/v1.68.0 into main #3415

Merged
merged 30 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
88b2d57
feat: onboard koddi destination
manish339k May 10, 2024
847e3e0
fix: config
Gauravudia May 10, 2024
ddf8d46
fix: added conversions bidders validation and improved implementation
manish339k May 12, 2024
bc7970c
fix: fixed some issue and added unit test
manish339k May 13, 2024
d4a82e2
fix: fixed unit test issue
manish339k May 13, 2024
189cf93
fix: added componenet test
manish339k May 14, 2024
fce4ef9
feat: facebook custom audience app secret support (#3357)
shrouti1507 May 15, 2024
3ff9a5e
feat(ga4): component test refactor (#3220)
mihir-4116 May 15, 2024
31e6460
fix: minor mapping issue in conversions
manish339k May 15, 2024
a06ddce
chore(release): pull main into develop post release v1.66.0 (#3374)
ItsSudip May 16, 2024
e9409fd
feat(integrations/auth0): include Auth0 event type in Rudderstack mes…
zenpaul May 20, 2024
dc47afa
Merge branch 'develop' into feat.koddi
manish339k May 20, 2024
7c0d963
fix: resolving comments
manish339k May 20, 2024
b9ef30a
chore(release): pull main into develop post release v1.66.1 (#3394)
krishna2020 May 20, 2024
ffd4958
chore: fetch and checkout the pull request head commit instead of mer…
sandeepdsvs May 21, 2024
d387bd1
Merge branch 'develop' into feat.koddi
manish339k May 21, 2024
0196f20
feat: add json-data type support in redis (#3336)
sanpj2292 May 21, 2024
2030f99
Merge branch 'develop' into feat.koddi
manish339k May 21, 2024
90e60a5
refactor: deprecate mixpanel /track endpoint (#2833) (#3399)
Gauravudia May 22, 2024
c249a69
fix: standardise hashing for all CAPI integrations (#3379)
anantjain45823 May 22, 2024
6e7b5a0
fix: tiktok_v2 remove default value for content-type for custom event…
anantjain45823 May 22, 2024
f74c4a0
feat: onboard koddi destination (#3359)
manish339k May 23, 2024
d842da8
feat: filtering unknown events in awin (#3392)
manish339k May 23, 2024
919fd3f
chore(release): pull main into develop post release v1.67.0 (#3411)
anantjain45823 May 23, 2024
668d331
feat: onboarding adjust source (#3395)
shrouti1507 May 24, 2024
d1a2bd6
fix: fb custom audience html response (#3402)
aashishmalik May 27, 2024
402aa2c
chore(release): 1.68.0
web-flow May 27, 2024
7a2ab63
chore: added reconcile fn for openfaas fn pods (#3420)
abhimanyubabbar May 28, 2024
7719741
chore: updating changelog
abhimanyubabbar May 28, 2024
11ac86b
fix: remove individual commits from CHANGELOG.md
anantjain45823 May 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build-push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Setup Docker Buildx
Expand Down Expand Up @@ -88,6 +89,7 @@ jobs:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 1

- name: Setup Docker Buildx
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

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.68.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.67.0...v1.68.0) (2024-05-27)


krishna2020 marked this conversation as resolved.
Show resolved Hide resolved
### Features

* add json-data type support in redis ([#3336](https://github.com/rudderlabs/rudder-transformer/issues/3336)) ([0196f20](https://github.com/rudderlabs/rudder-transformer/commit/0196f20cc79e1f470d96a649dd9404c3c9284329))
* facebook custom audience app secret support ([#3357](https://github.com/rudderlabs/rudder-transformer/issues/3357)) ([fce4ef9](https://github.com/rudderlabs/rudder-transformer/commit/fce4ef973500411c7ad812e7949bb1b73dabc3ba))
* filtering unknown events in awin ([#3392](https://github.com/rudderlabs/rudder-transformer/issues/3392)) ([d842da8](https://github.com/rudderlabs/rudder-transformer/commit/d842da87a34cb63023eba288e0c5258e29997dcf))
* **ga4:** component test refactor ([#3220](https://github.com/rudderlabs/rudder-transformer/issues/3220)) ([3ff9a5e](https://github.com/rudderlabs/rudder-transformer/commit/3ff9a5e8e955b929a1b04a89dcf0ccbc49e18648))
* **integrations/auth0:** include Auth0 event type in Rudderstack message ([#3370](https://github.com/rudderlabs/rudder-transformer/issues/3370)) ([e9409fd](https://github.com/rudderlabs/rudder-transformer/commit/e9409fde6063d7eaa8558396b85b5fdf99f964e1))
* onboard koddi destination ([#3359](https://github.com/rudderlabs/rudder-transformer/issues/3359)) ([f74c4a0](https://github.com/rudderlabs/rudder-transformer/commit/f74c4a0bc92ae6ccb0c00ac5b21745e496a015bc))
* onboarding adjust source ([#3395](https://github.com/rudderlabs/rudder-transformer/issues/3395)) ([668d331](https://github.com/rudderlabs/rudder-transformer/commit/668d3311aadacbb92b1873bf43919db7d341afbb))


### Bug Fixes

* fb custom audience html response ([#3402](https://github.com/rudderlabs/rudder-transformer/issues/3402)) ([d1a2bd6](https://github.com/rudder
* standardise hashing for all CAPI integrations ([#3379](https://github.com/rudderlabs/rudder-transformer/issues/3379)) ([c249a69](https://github.com/rudderlabs/rudder-transformer/commit/c249a694d735f6d241a35b6e21f493c54890ac84))
* tiktok_v2 remove default value for content-type for custom events ([#3383](https://github.com/rudderlabs/rudder-transformer/issues/3383)) ([6e7b5a0](https://github.com/rudderlabs/rudder-transformer/commit/6e7b5a0d8bf2c859dfb15b9cad7ed6070bd0892b))
* added step for reconciling openfaas functions for python transformations ([#3420](https://github.com/rudderlabs/rudder-transformer/issues/3420)) ([7a2ab63](https://github.com/rudderlabs/rudder-transformer/commit/7a2ab63674d40870af4d16f0673a2a2594c899e9))

## [1.67.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.66.1...v1.67.0) (2024-05-23)


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.67.0",
"version": "1.68.0",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
39 changes: 39 additions & 0 deletions src/cdk/v2/destinations/koddi/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const { getMappingConfig } = require('../../../../v0/util');

/**
* ref :- https://developers.koddi.com/reference/winning-ads
* impressions - https://developers.koddi.com/reference/impressions-1
* clicks - https://developers.koddi.com/reference/clicks-1
* conversions - https://developers.koddi.com/reference/conversions-1
*/
const EVENT_TYPES = {
IMPRESSIONS: 'impressions',
CLICKS: 'clicks',
CONVERSIONS: 'conversions',
};

const CONFIG_CATEGORIES = {
IMPRESSIONS: {
type: 'track',
name: 'ImpressionsConfig',
},
CLICKS: {
type: 'track',
name: 'ClicksConfig',
},
CONVERSIONS: {
type: 'track',
name: 'ConversionsConfig',
},
};

const MAPPING_CONFIG = getMappingConfig(CONFIG_CATEGORIES, __dirname);

module.exports = {
EVENT_TYPES,
CONFIG_CATEGORIES,
MAPPING_CONFIG,
IMPRESSIONS_CONFIG: MAPPING_CONFIG[CONFIG_CATEGORIES.IMPRESSIONS.name],
CLICKS_CONFIG: MAPPING_CONFIG[CONFIG_CATEGORIES.CLICKS.name],
CONVERSIONS_CONFIG: MAPPING_CONFIG[CONFIG_CATEGORIES.CONVERSIONS.name],
};
35 changes: 35 additions & 0 deletions src/cdk/v2/destinations/koddi/data/ClicksConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"sourceKeys": "properties.tracking_data",
"required": true,
"destKey": "trackingData"
},
{
"sourceKeys": "properties.rank",
"required": true,
"destKey": "rank"
},
{
"sourceKeys": "properties.beacon_issued",
"required": true,
"destKey": "beaconIssued"
},
{
"sourceKeys": "userId",
"sourceFromGenericMap": true,
"required": true,
"destKey": "userGuid"
},
{
"sourceKeys": "properties.test_version_override",
"destKey": "testVersionOverride"
},
{
"sourceKeys": "properties.destination_url",
"destKey": "destinationUrl"
},
{
"sourceKeys": "properties.overrides",
"destKey": "overrides"
}
]
53 changes: 53 additions & 0 deletions src/cdk/v2/destinations/koddi/data/ConversionsConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
[
{
"sourceKeys": "context.page.referring_domain",
"destKey": "domain"
},
{
"sourceKeys": "context.locale",
"required": true,
"destKey": "culture"
},
{
"sourceKeys": "properties.currency",
"required": true,
"destKey": "currency"
},
{
"sourceKeys": ["context.ip", "request_ip"],
"destKey": "user_ip"
},
{
"sourceKeys": "context.userAgent",
"destKey": "user_agent"
},
{
"sourceKeys": "userId",
"sourceFromGenericMap": true,
"required": true,
"destKey": "user_guid"
},
{
"sourceKeys": "context.device.type",
"destKey": "device_type"
},
{
"sourceKeys": ["properties.order_id", "properties.transaction_id"],
"required": true,
"destKey": "transaction_id"
},
{
"sourceKeys": "properties.conversion_source",
"destKey": "conversion_source"
},
{
"sourceKeys": "timestamp",
"sourceFromGenericMap": true,
"destKey": "unixtime"
},
{
"sourceKeys": "properties.bidders",
"required": true,
"destKey": "bidders"
}
]
22 changes: 22 additions & 0 deletions src/cdk/v2/destinations/koddi/data/ImpressionsConfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[
{
"sourceKeys": "properties.tracking_data",
"required": true,
"destKey": "trackingData"
},
{
"sourceKeys": "properties.rank",
"required": true,
"destKey": "rank"
},
{
"sourceKeys": "properties.beacon_issued",
"required": true,
"destKey": "beaconIssued"
},
{
"sourceKeys": "timestamp",
"sourceFromGenericMap": true,
"destKey": "ts"
}
]
33 changes: 33 additions & 0 deletions src/cdk/v2/destinations/koddi/procWorkflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
bindings:
- name: EventType
path: ../../../../constants
- path: ../../bindings/jsontemplate
- name: removeUndefinedAndNullValues
path: ../../../../v0/util
- path: ./utils
- path: ./config

steps:
- name: messageType
template: |
.message.type.toLowerCase();
- name: eventType
template: |
.message.integrations.koddi.eventType.toLowerCase();
- name: validateInput
template: |
let messageType = $.outputs.messageType;
let eventType = $.outputs.eventType;
$.assert(messageType, "message Type is not present. Aborting message.");
$.assert(messageType in {{$.EventType.([.TRACK])}}, "message type " + messageType + " is not supported");
$.assert(eventType in {{$.EVENT_TYPES.([.IMPRESSIONS, .CLICKS, .CONVERSIONS])}}, "event type " + eventType + " is not supported");
$.assertConfig(.destination.Config.apiBaseUrl, "API Base URL is not present. Aborting");
$.assertConfig(.destination.Config.clientName, "Client Name is not present. Aborting");
- name: preparePayload
template: |
const payload = $.constructFullPayload($.outputs.eventType, .message, .destination.Config);
$.context.payload = $.removeUndefinedAndNullValues(payload);
- name: buildResponse
template: |
const response = $.constructResponse($.outputs.eventType, .destination.Config, $.context.payload);
response
31 changes: 31 additions & 0 deletions src/cdk/v2/destinations/koddi/rtWorkflow.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
bindings:
- name: handleRtTfSingleEventError
path: ../../../../v0/util/index

steps:
- name: validateInput
template: |
$.assert(Array.isArray(^) && ^.length > 0, "Invalid event array")

- name: transform
externalWorkflow:
path: ./procWorkflow.yaml
loopOverInput: true

- name: successfulEvents
template: |
$.outputs.transform#idx.output.({
"batchedRequest": .,
"batched": false,
"destination": ^[idx].destination,
"metadata": ^[idx].metadata[],
"statusCode": 200
})[]
- name: failedEvents
template: |
$.outputs.transform#idx.error.(
$.handleRtTfSingleEventError(^[idx], .originalError ?? ., {})
)[]
- name: finalPayload
template: |
[...$.outputs.successfulEvents, ...$.outputs.failedEvents]
Loading
Loading