Skip to content

chore(release): pull main into develop post release v1.108.2 - #4683

Merged
ItsSudip merged 5 commits into
developfrom
chore/pullMain
Sep 26, 2025
Merged

ItsSudip merged 5 commits into
developfrom
chore/pullMain

Conversation

@ItsSudip

Copy link
Copy Markdown
Member

👑 A manual PR

@ItsSudip
ItsSudip requested a review from a team as a code owner September 25, 2025 14:00
@coderabbitai

coderabbitai Bot commented Sep 25, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Bug Fixes

    • Improved error reporting for the Zendesk destination to surface clearer, more relevant responses from Zendesk when requests fail, aiding faster troubleshooting and reducing noise.
  • Refactor

    • Updated internal iteration logic within the Zendesk integration for consistency and maintainability. No functional changes expected for end-users, but this should enhance reliability and readability of the underlying implementation.

Walkthrough

Refactors iteration over user and organization fields from forEach to for-of loops in src/v0/destinations/zendesk/transform.js. Adjusts error handling in processTrack to pass only error.response.data to NetworkError instead of broader fallbacks.

Changes

Cohort / File(s) Summary
Zendesk destination transform
src/v0/destinations/zendesk/transform.js
- Replace .forEach with for-of loops for userFields and organizationFields assignment
- Narrow NetworkError payload in processTrack from (error?.response?.data

Sequence Diagram(s)

sequenceDiagram
  actor SDK as SDK/Event
  participant Transform as transform.js
  participant Zendesk as Zendesk API
  participant Err as NetworkError

  SDK->>Transform: processTrack(event)
  note over Transform: Build payloads via for-of loops
  Transform->>Zendesk: POST/PUT request
  alt Success
    Zendesk-->>Transform: 2xx response
    Transform-->>SDK: success result
  else Error
    Zendesk-->>Transform: error response
    note over Transform: Extract error.response.data only
    Transform->>Err: new NetworkError(error.response.data)
    Err-->>SDK: throw
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggestions:

  • Confirm error.response.data is always present; consider fallback or logging when undefined.
  • Add unit tests covering error paths to validate the narrowed payload.

Suggested reviewers

  • krishna2020
  • chandumlg
  • koladilip

Pre-merge checks and finishing touches

❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Description Check ⚠️ Warning The description only states “👑 A manual PR” and does not include any of the required sections from the repository’s PR template such as the change summary, related Linear task, objectives, or developer checklist, making it largely incomplete and non-informative. Please populate the description using the provided template by adding sections for “What are the changes introduced in this PR?”, the related Linear task, detailed objectives, and ensuring the developer checklist is addressed.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (1 passed)
Check name Status Explanation
Title Check ✅ Passed The title “chore(release): pull main into develop post release v1.108.2” accurately and concisely describes the primary change of merging the main branch into develop after the specified release, matching the PR’s objective and adhering to the project’s naming conventions.
✨ 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/pullMain

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 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 e6acf3e and 6217e7b.

⛔ Files ignored due to path filters (6)
  • .eslintrc.json is excluded by !**/*.json
  • CHANGELOG.md is excluded by !**/*.md
  • package-lock.json is excluded by !**/package-lock.json, !**/*.json
  • package.json is excluded by !**/*.json
  • test/integrations/destinations/zendesk/processor/data.ts is excluded by !**/test/**
  • test/integrations/destinations/zendesk/router/data.ts is excluded by !**/test/**
📒 Files selected for processing (1)
  • src/v0/destinations/zendesk/transform.js (3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.js

⚙️ CodeRabbit configuration file

Focus on ESLint errors (max 3) and warnings (max 5).

Files:

  • src/v0/destinations/zendesk/transform.js
🧠 Learnings (1)
📓 Common learnings
Learnt from: ItsSudip
PR: rudderlabs/rudder-transformer#4589
File: scripts/common.ts:74-78
Timestamp: 2025-08-28T15:39:08.293Z
Learning: User ItsSudip prefers simpler solutions over complex edge case handling, especially when the simpler approach is sufficient for the actual use case.
⏰ 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 User 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 Transformer Docker Image - PR / Build Transformer Docker Image AMD64
  • GitHub Check: Build Transformer Docker Image - PR / Build Transformer Docker Image ARM64
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Analyze (go)
  • GitHub Check: Code Coverage
  • GitHub Check: test_and_publish
  • GitHub Check: UT Tests
🔇 Additional comments (2)
src/v0/destinations/zendesk/transform.js (2)

310-312: Loop style change looks good.

Using a for...of here keeps the intent clear and aligns with the rest of the module’s iteration style. No issues spotted.


489-491: Iteration refactor is solid.

This mirrors the user-fields change and maintains readability while doing the same work. Looks good as-is.

@devops-github-rudderstack

Copy link
Copy Markdown
Contributor

Allure Test reports for this run are available at:

@codecov

codecov Bot commented Sep 25, 2025 •

Copy link
Copy Markdown

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4683   +/-   ##
========================================
  Coverage    91.79%   91.79%           
========================================
  Files          642      642           
  Lines        33998    34005    +7     
  Branches      8035     8043    +8     
========================================
+ Hits         31207    31214    +7     
+ Misses        2561     2539   -22     
- Partials       230      252   +22     

☔ 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.

@sonarqubecloud

Copy link
Copy Markdown

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.

5 participants