Skip to content

fix: keen bugsnag issue for null context passed - #2405

Merged
anantjain45823 merged 1 commit into
hotfix/customerio-identify-updatefrom
fix.bugsnagKeen
Jul 26, 2023
Merged

anantjain45823 merged 1 commit into
hotfix/customerio-identify-updatefrom
fix.bugsnagKeen

Conversation

@anantjain45823

Copy link
Copy Markdown
Contributor

Description of the change

When context is passed as null in message we are fetching context.userAgent which is throwing error since context is null.
In this PR we have provided optional chaining when fetching userAgent

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 requested a review from a team as a code owner July 26, 2023 10:25
@anantjain45823 anantjain45823 self-assigned this Jul 26, 2023
@anantjain45823
anantjain45823 requested a review from a team as a code owner July 26, 2023 10:25
@anantjain45823
anantjain45823 changed the base branch from develop to hotfix/customerio-identify-update July 26, 2023 10:26
@codecov

codecov Bot commented Jul 26, 2023

Copy link
Copy Markdown

Codecov Report

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

Comparison is base (5bc6360) 86.59% compared to head (0b92e27) 86.61%.

Additional details and impacted files
@@                          Coverage Diff                          @@
##           hotfix/customerio-identify-update    #2405      +/-   ##
=====================================================================
+ Coverage                              86.59%   86.61%   +0.01%     
=====================================================================
  Files                                    552      555       +3     
  Lines                                  27658    27687      +29     
  Branches                                6610     6617       +7     
=====================================================================
+ Hits                                   23951    23980      +29     
  Misses                                  3352     3352              
  Partials                                 355      355              
Files Changed Coverage Δ
src/v0/destinations/keen/transform.js 95.94% <100.00%> (ø)

... and 4 files with indirect coverage changes

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

@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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@anantjain45823
anantjain45823 merged commit c80bd2a into hotfix/customerio-identify-update Jul 26, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix.bugsnagKeen branch October 27, 2023 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants