Skip to content

fix: destination response in error message - #2275

Merged
sanpj2292 merged 10 commits into
developfrom
fix.transformation-dest-response
Jun 21, 2023
Merged

sanpj2292 merged 10 commits into
developfrom
fix.transformation-dest-response

Conversation

@sanpj2292

@sanpj2292 sanpj2292 commented Jun 15, 2023 •

Copy link
Copy Markdown

Description of the change

For destinations where in there are API calls made during transformation, we are not showing the raw destination response. This is making things very difficult when we are trying to debug an error.
We usually set destinationResponse whenever there is an error from the destination API.

Whenever destinationResponse is being sent as part of the error thrown, we are stringifying showing the message and destinationResponse as stringified error-message
{ message, destinationResponse }

This would make things easier for developer to look at the error, understand and take required action

### Side Note:

We are removing building image for arm64 platform to improve build times(temporary fix)

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 requested a review from a team as a code owner June 15, 2023 10:10
@sanpj2292 sanpj2292 self-assigned this Jun 15, 2023
@sanpj2292
sanpj2292 requested a review from a team as a code owner June 15, 2023 10:10
@sanpj2292
sanpj2292 requested a review from a team June 15, 2023 10:10
@sanpj2292
sanpj2292 requested a review from sivashanmukh as a code owner June 15, 2023 10:10
@sanpj2292
sanpj2292 requested review from mihir-4116 and utsabc June 15, 2023 10:10
@codecov

codecov Bot commented Jun 15, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 87.50% and no project coverage change.

Comparison is base (2d9c9a8) 86.28% compared to head (8437aa9) 86.28%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2275   +/-   ##
========================================
  Coverage    86.28%   86.28%           
========================================
  Files          500      500           
  Lines        25701    25706    +5     
  Branches      6349     6351    +2     
========================================
+ Hits         22176    22181    +5     
  Misses        3114     3114           
  Partials       411      411           
Impacted Files Coverage Δ
src/controllers/obs.delivery.js 21.73% <ø> (ø)
...ntegrations/destinations/zendesk/processor/data.js 100.00% <ø> (ø)
...t/integrations/destinations/zendesk/router/data.js 100.00% <ø> (ø)
src/v0/util/index.js 83.93% <85.71%> (+0.10%) ⬆️
src/legacy/router.js 47.81% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

koladilip
koladilip previously approved these changes Jun 15, 2023
Signed-off-by: Sai Sankeerth <[email protected]>
@sanpj2292
sanpj2292 requested a review from koladilip June 15, 2023 13:42
koladilip
koladilip previously approved these changes Jun 15, 2023
koladilip
koladilip previously approved these changes Jun 16, 2023
koladilip
koladilip previously approved these changes Jun 17, 2023
Sai Sankeerth added 2 commits June 20, 2023 13:41
krishna2020
krishna2020 previously approved these changes Jun 20, 2023
koladilip
koladilip previously approved these changes Jun 20, 2023
…to fix.transformation-dest-response

# Conflicts:
#	src/services/destination/postTransformation.ts
@sanpj2292
sanpj2292 dismissed stale reviews from koladilip and krishna2020 via 8437aa9 June 20, 2023 12:00
@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

92.9% 92.9% Coverage
0.0% 0.0% Duplication

@sanpj2292
sanpj2292 merged commit 432a130 into develop Jun 21, 2023
@sanpj2292
sanpj2292 deleted the fix.transformation-dest-response branch June 21, 2023 08:33
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.

4 participants