Skip to content

fix: add optional chaining and refactor get externalId util - #2454

Merged
Gauravudia merged 6 commits into
developfrom
fix/getExternalIdUtil
Aug 9, 2023
Merged

Gauravudia merged 6 commits into
developfrom
fix/getExternalIdUtil

Conversation

@Gauravudia

@Gauravudia Gauravudia commented Aug 8, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Resolves INT-421
Add optional chaining for type property and refactor the util

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 bugsnag issue

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

@Gauravudia
Gauravudia requested a review from mihir-4116 August 8, 2023 14:13
@Gauravudia Gauravudia self-assigned this Aug 8, 2023
@Gauravudia
Gauravudia requested a review from a team as a code owner August 8, 2023 14:13
@Gauravudia
Gauravudia requested a review from utsabc August 8, 2023 14:13
@codecov

codecov Bot commented Aug 8, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (c6d0a04) 86.60% compared to head (069b34f) 86.60%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2454      +/-   ##
===========================================
- Coverage    86.60%   86.60%   -0.01%     
===========================================
  Files          557      557              
  Lines        27778    27775       -3     
  Branches      6652     6652              
===========================================
- Hits         24058    24055       -3     
  Misses        3365     3365              
  Partials       355      355              
Files Changed Coverage Δ
src/v0/util/index.js 86.41% <100.00%> (-0.06%) ⬇️

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

krishna2020
krishna2020 previously approved these changes Aug 8, 2023
sanpj2292
sanpj2292 previously approved these changes Aug 8, 2023
@sanpj2292

Copy link
Copy Markdown

Can we add test-cases as well ?

@sanpj2292
sanpj2292 self-requested a review August 8, 2023 15:40
@Gauravudia Gauravudia added bug Something isn't working bug fix and removed bug Something isn't working labels Aug 9, 2023
@Gauravudia
Gauravudia dismissed stale reviews from sanpj2292 and krishna2020 via 1a0f321 August 9, 2023 05:07
Comment thread src/v0/util/index.js Resolved
@Gauravudia Gauravudia changed the title fix: add optional chaining in get externalId util fix: add optional chaining and refactor get externalId util Aug 9, 2023
@sonarqubecloud

sonarqubecloud Bot commented Aug 9, 2023

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

warning The version of Java (11.0.17) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@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

@Gauravudia
Gauravudia merged commit d4a8501 into develop Aug 9, 2023
@rudderlabs rudderlabs deleted a comment from linear Bot Aug 17, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix/getExternalIdUtil branch November 10, 2023 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants