Skip to content

fix: salesforce upsert when identifier is not present - #2468

Merged
sanpj2292 merged 2 commits into
developfrom
fix.sf-upsert
Aug 11, 2023
Merged

sanpj2292 merged 2 commits into
developfrom
fix.sf-upsert

Conversation

@sanpj2292

@sanpj2292 sanpj2292 commented Aug 10, 2023 •

Copy link
Copy Markdown

Description of the change

When the external identifier is not present, we are throwing an error instead of inserting it automatically. This PR aims to fix it

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

@sanpj2292 sanpj2292 self-assigned this Aug 10, 2023
@sanpj2292
sanpj2292 requested a review from a team as a code owner August 10, 2023 19:46
@codecov

codecov Bot commented Aug 10, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch and project coverage have no change.

Comparison is base (d257be4) 86.61% compared to head (37caf37) 86.62%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2468   +/-   ##
========================================
  Coverage    86.61%   86.62%           
========================================
  Files          564      564           
  Lines        27830    27827    -3     
  Branches      6659     6658    -1     
========================================
  Hits         24104    24104           
+ Misses        3371     3369    -2     
+ Partials       355      354    -1     
Files Changed Coverage Δ
src/v0/destinations/salesforce/transform.js 81.06% <ø> (+1.80%) ⬆️

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

@yashasvibajpai

Copy link
Copy Markdown
Contributor

Error handling was breaking the old flow of record getting created if not present.

@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 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@sanpj2292
sanpj2292 merged commit 8a18de4 into develop Aug 11, 2023
@sanpj2292
sanpj2292 deleted the fix.sf-upsert branch August 11, 2023 05:58
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.

2 participants