Skip to content

chore: refactoring amplitude using optional chaining - #2645

Merged
anantjain45823 merged 30 commits into
developfrom
refactor.am
Nov 2, 2023
Merged

anantjain45823 merged 30 commits into
developfrom
refactor.am

Conversation

@anantjain45823

Copy link
Copy Markdown
Contributor

Description of the change

Resolves INT-152
Used Optional Chaining
Increased test coverage
Added Validations

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

@codecov

codecov Bot commented Sep 22, 2023 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3387cb0) 87.13% compared to head (9320251) 87.18%.
Report is 8 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2645      +/-   ##
===========================================
+ Coverage    87.13%   87.18%   +0.04%     
===========================================
  Files          763      766       +3     
  Lines        28432    28465      +33     
  Branches      6654     6644      -10     
===========================================
+ Hits         24774    24816      +42     
+ Misses        3321     3312       -9     
  Partials       337      337              
Files Coverage Δ
src/v0/destinations/am/config.js 100.00% <100.00%> (ø)
src/v0/destinations/am/transform.js 97.41% <100.00%> (+1.91%) ⬆️
src/v0/destinations/am/utils.js 100.00% <100.00%> (ø)
src/v0/util/index.js 88.17% <100.00%> (+0.08%) ⬆️

... and 8 files with indirect coverage changes

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

Comment thread src/v0/util/index.js Resolved
Comment thread src/v0/util/index.js Resolved
@Gauravudia

Copy link
Copy Markdown
Contributor

@anantjain45823 Add unit tescases of your changes

@anantjain45823

Copy link
Copy Markdown
Contributor Author

@anantjain45823 Add unit test cases of your changes
There is not anything major done but big chunk of functions divided into small ones.

Comment thread src/v0/util/index.js Resolved
Comment thread src/v0/util/index.js Resolved
mihir-4116
mihir-4116 previously approved these changes Oct 30, 2023
koladilip
koladilip previously approved these changes Oct 30, 2023
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
Comment thread src/v0/destinations/am/transform.js Resolved
sanpj2292
sanpj2292 previously approved these changes Nov 2, 2023
@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 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

98.1% 98.1% Coverage
0.0% 0.0% Duplication

@anantjain45823
anantjain45823 merged commit 57fee04 into develop Nov 2, 2023
@anantjain45823
anantjain45823 deleted the refactor.am branch December 13, 2023 14:39
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