Skip to content

chore(release): pull main into develop post release v1.108.1 - #4674

Merged
maheshkutty merged 6 commits into
developfrom
chore.back_merge_1.108.1
Sep 24, 2025
Merged

maheshkutty merged 6 commits into
developfrom
chore.back_merge_1.108.1

Conversation

@maheshkutty

@maheshkutty maheshkutty commented Sep 24, 2025 •

Copy link
Copy Markdown
Contributor

What are the changes introduced in this PR?

Back merge pr

What is the related Linear task?

Resolves INT-XXX

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

  • My code follows the style guidelines of this project

  • No breaking changes are being introduced.

  • All related docs linked with the PR?

  • All changes manually tested?

  • Any documentation changes needed with this change?

  • Is the PR limited to 10 file changes?

  • Is the PR limited to one linear task?

  • Are relevant unit and component test-cases added in new readability format?

Reviewer checklist

  • Is the type of change in the PR title appropriate as per the changes?

  • Verified that there are no credentials or confidential data exposed with the changes.

@maheshkutty
maheshkutty requested a review from a team as a code owner September 24, 2025 05:51
@coderabbitai

coderabbitai Bot commented Sep 24, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Added support for additional Emarsys identify field mappings, including active_customer (32) and expiring_5_days_journey (34). welcome_journey (33) is supported when defined.
  • Bug Fixes

    • Prevent sending null/undefined traits in identify payloads, ensuring cleaner, more accurate data.
  • Refactor

    • Modernized crypto import and replaced forEach with for-of loops for improved clarity and performance.
  • Tests

    • Expanded coverage to validate new field mappings and updated identify payload expectations.

Walkthrough

Replaced a truthy check with isDefinedAndNotNull when building Emarsys identify payload so defined falsy values (e.g., 0, false, "") are included; switched import to node:crypto; loops updated from .forEach to for...of with eslint-disable comments; tests expanded to cover additional traits and field mappings (IDs 32, 33, 34) and expect key 32 with value 0 in the payload.

Changes

Cohort / File(s) Summary
Emarsys utils
src/cdk/v2/destinations/emarsys/utils.js
Switched crypto import to node:crypto. Replaced several .forEach usages with for...of loops and added ESLint disable comments where applied. In buildIdentifyPayload, replaced if (value) with if (isDefinedAndNotNull(value)) to preserve defined falsy values. No public API signature changes.
Emarsys tests
src/cdk/v2/destinations/emarsys/utils.test.js
Expanded identify tests: added traits active_customer: 0 and welcome_journey: undefined, extended fieldMapping with IDs 32, 33, 34, and updated expected payload to include 32: 0.

Sequence Diagram(s)

sequenceDiagram
    participant Caller as Identify caller
    participant Utils as emarsys/utils.buildIdentifyPayload
    participant API as Emarsys payload

    Note over Caller,Utils: Build identify payload request
    Caller->>Utils: call buildIdentifyPayload(message, fieldMapping)
    rect rgb(220,240,220)
      Utils->>Utils: iterate traits (for...of)
      Utils->>Utils: lookup field ID from mapping
      Utils->>Utils: if isDefinedAndNotNull(value) then assign to contacts payload
    end
    Utils-->>API: return contacts payload (includes defined falsy values like 0)
    API-->>Caller: payload ready for send
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested reviewers

  • utsabc
  • vinayteki95
  • sivashanmukh

Suggestions for improvements

  • Add unit tests for other falsy values (e.g., false, "") to ensure they're preserved.
  • Remove or minimize ESLint disable comments by refactoring loops where possible, or add inline comments explaining the reason for the disables.
  • Add a brief comment near isDefinedAndNotNull usage clarifying the intent: include defined falsy values but exclude undefined/null.

Pre-merge checks and finishing touches

❌ Failed checks (1 inconclusive)
Check name Status Explanation Resolution
Description Check ❓ Inconclusive The PR description uses the repository template structure but is overly terse ("Back merge pr"), leaves most template sections as N/A, and the developer checklist is unchecked, so it does not provide sufficient detail about what changed, why the back-merge was necessary, or any impact/testing performed. Please expand the "What are the changes introduced in this PR?" with a brief summary of notable file changes (for example: small refactors in src/cdk/v2/destinations/emarsys/utils.js and corresponding test updates adding new Emarsys fields), confirm there are no breaking changes, complete the developer checklist, replace the "Resolves INT-XXX" placeholder with the actual task ID or remove it, and add any relevant test/report links (the Allure report is available) and merge notes before approving.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The PR title "chore(release): pull main into develop post release v1.108.1" is a concise, single-sentence summary that clearly communicates the primary action (a back-merge after release) and follows conventional commit styling, so it accurately represents the changeset's intent.
Docstring Coverage ✅ Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore.back_merge_1.108.1

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 8fc2bfb and c0e7bda.

📒 Files selected for processing (1)
  • src/cdk/v2/destinations/emarsys/utils.js (6 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/cdk/v2/destinations/emarsys/utils.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build User Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 24, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.79%. Comparing base (2a5b355) to head (c0e7bda).
⚠️ Report is 27 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4674   +/-   ##
========================================
  Coverage    91.78%   91.79%           
========================================
  Files          642      642           
  Lines        33976    33998   +22     
  Branches      8034     8035    +1     
========================================
+ Hits         31186    31207   +21     
- Misses        2560     2561    +1     
  Partials       230      230           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@sonarqubecloud

Copy link
Copy Markdown

@maheshkutty
maheshkutty merged commit e53a610 into develop Sep 24, 2025
@maheshkutty
maheshkutty deleted the chore.back_merge_1.108.1 branch September 24, 2025 09:51
@coderabbitai coderabbitai Bot mentioned this pull request Sep 25, 2025
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants