Skip to content

fix: active campaign: message.context not sent and tags sent in non array format - #2389

Merged
anantjain45823 merged 16 commits into
developfrom
fix/bugsnagissues
Jul 21, 2023
Merged

anantjain45823 merged 16 commits into
developfrom
fix/bugsnagissues

Conversation

@anantjain45823

Copy link
Copy Markdown
Contributor

Description of the change

This PR includes the changes needed to be done for active campaign destination to solve bugsnag issue asociated to msgTags

  1. Introducing Optional Chaining at multiple places for message.context.traits so it won't not go on to finding traits in message.context.traits when context is not present hence won’t throw error.
  2. Correcting an if condition to check if the msgTags are present and also if they are in array format or not

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Related issues

Fix #1

Checklists

Development

  • Lint rules pass locally
  • The code changed/added as part of this pull request has been covered with tests
  • All tests related to the changed code pass in development

Code review

  • This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
  • "Ready for review" label attached to the PR and reviewers mentioned in a comment
  • Changes have been reviewed by at least one other engineer
  • Issue from task tracker has a link to this pull request

@anantjain45823 anantjain45823 self-assigned this Jul 21, 2023
@anantjain45823
anantjain45823 requested review from a team as code owners July 21, 2023 03:36
@anantjain45823
anantjain45823 requested a review from a team July 21, 2023 03:36
@anantjain45823 anantjain45823 changed the title Fix/bugsnagissues fix: active campaign: message.context not sent and tags sent in non array format Jul 21, 2023
@codecov

codecov Bot commented Jul 21, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 71.42% and project coverage change: +0.01 🎉

Comparison is base (707cff0) 86.57% compared to head (e8428e8) 86.59%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2389      +/-   ##
===========================================
+ Coverage    86.57%   86.59%   +0.01%     
===========================================
  Files          550      552       +2     
  Lines        27587    27655      +68     
  Branches      6598     6608      +10     
===========================================
+ Hits         23884    23948      +64     
- Misses        3348     3352       +4     
  Partials       355      355              
Impacted Files Coverage Δ
...ons/destinations/active_campaign/processor/data.js 100.00% <ø> (ø)
src/v0/destinations/active_campaign/transform.js 81.15% <71.42%> (+0.38%) ⬆️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

mihir-4116
mihir-4116 previously approved these changes Jul 21, 2023

@mihir-4116 mihir-4116 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.

LGTM

@sanpj2292
sanpj2292 requested a review from chandumlg July 21, 2023 06:24
sanpj2292
sanpj2292 previously approved these changes Jul 21, 2023
@anantjain45823
anantjain45823 dismissed stale reviews from sanpj2292 and mihir-4116 via 65460ff July 21, 2023 07:33
@sonarqubecloud

Copy link
Copy Markdown

Please retry analysis of this Pull-Request directly on SonarCloud.

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

82.4% 82.4% Coverage
0.0% 0.0% Duplication

@anantjain45823
anantjain45823 merged commit 8bc9589 into develop Jul 21, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix/bugsnagissues branch October 22, 2023 01:26
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.

3 participants