Skip to content

fix: type issue in lookup via externalid, row lock error as retryable - #2553

Merged
yashasvibajpai merged 2 commits into
hotfix/sep.06from
fix.salesforce.search.extid
Sep 6, 2023
Merged

yashasvibajpai merged 2 commits into
hotfix/sep.06from
fix.salesforce.search.extid

Conversation

@yashasvibajpai

@yashasvibajpai yashasvibajpai commented Sep 6, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Fix the type comparison logic of externalId to compare strings, in compliance to the string returned by Salesforce. We are also retrying errors related to row locking now.

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

@yashasvibajpai yashasvibajpai self-assigned this Sep 6, 2023
@yashasvibajpai
yashasvibajpai requested a review from a team as a code owner September 6, 2023 07:11
@yashasvibajpai
yashasvibajpai requested review from sauravlal15 and utsabc and removed request for a team September 6, 2023 07:11
@codecov

codecov Bot commented Sep 6, 2023 •

Copy link
Copy Markdown

Codecov Report

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

Comparison is base (dfd6af6) 86.84% compared to head (bfd3150) 86.84%.
Report is 2 commits behind head on hotfix/sep.06.

❗ Current head bfd3150 differs from pull request most recent head a5eb7de. Consider uploading reports for the commit a5eb7de to get more accurate results

Additional details and impacted files
@@                Coverage Diff                @@
##           hotfix/sep.06    #2553      +/-   ##
=================================================
- Coverage          86.84%   86.84%   -0.01%     
=================================================
  Files                566      566              
  Lines              27946    27950       +4     
  Branches            6655     6660       +5     
=================================================
+ Hits               24271    24273       +2     
- Misses              3342     3343       +1     
- Partials             333      334       +1     
Files Changed Coverage Δ
src/v0/destinations/salesforce/transform.js 80.91% <0.00%> (-0.15%) ⬇️
src/v0/destinations/salesforce/utils.js 91.48% <60.00%> (-3.75%) ⬇️

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

@yashasvibajpai
yashasvibajpai requested review from sanpj2292 and removed request for sauravlal15 September 6, 2023 09:14
@sanpj2292

Copy link
Copy Markdown

@yashasvibajpai can we add test-cases for the fixed scenarios ?

@yashasvibajpai
yashasvibajpai requested a review from a team as a code owner September 6, 2023 10:08
@sonarqubecloud

sonarqubecloud Bot commented Sep 6, 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

45.5% 45.5% Coverage
0.0% 0.0% Duplication

@yashasvibajpai
yashasvibajpai merged commit 319ff90 into hotfix/sep.06 Sep 6, 2023
@sanpj2292
sanpj2292 deleted the fix.salesforce.search.extid branch September 7, 2023 03:07
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