Skip to content

fix: handle nested response for marketo - #2219

Merged
utsabc merged 9 commits into
developfrom
fix.marketo
Jun 15, 2023
Merged

utsabc merged 9 commits into
developfrom
fix.marketo

Conversation

@utsabc

@utsabc utsabc commented May 30, 2023 •

Copy link
Copy Markdown
Contributor

##Handle Nested Response Structure for Marketo

This PR addresses to handle nested response structure for marketo
refer to following docs for more ref:

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

@utsabc
utsabc requested a review from a team as a code owner May 30, 2023 18:52
@codecov

codecov Bot commented May 30, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 73.91% and project coverage change: +88.68 🎉

Comparison is base (c3aedbf) 0.00% compared to head (581d441) 88.68%.

Additional details and impacted files
@@             Coverage Diff              @@
##           develop    #2219       +/-   ##
============================================
+ Coverage         0   88.68%   +88.68%     
============================================
  Files            0      510      +510     
  Lines            0    25862    +25862     
  Branches         0     6348     +6348     
============================================
+ Hits             0    22936    +22936     
- Misses           0     2611     +2611     
- Partials         0      315      +315     
Impacted Files Coverage Δ
src/v0/destinations/marketo/util.js 84.61% <73.91%> (ø)

... and 509 files with indirect coverage changes

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

@utsabc
utsabc requested a review from a team as a code owner June 2, 2023 05:17
Comment thread src/v0/destinations/marketo/util.js Resolved
Comment thread src/v0/destinations/marketo/util.js Resolved
Comment thread src/v0/destinations/marketo/util.js Resolved
Comment thread src/v0/destinations/marketo/util.js Resolved
@sanpj2292

sanpj2292 commented Jun 6, 2023 •

Copy link
Copy Markdown

@utsabc A little tangential thought, what if we take facebook_pixel approach for this ? I mean using the error extractor & set each of the status-code & error-message(clean-one) accordingly. Just a thought feel free to proceed with current implementation as well

@utsabc

utsabc commented Jun 6, 2023

Copy link
Copy Markdown
Contributor Author

@utsabc A little tangential thought, what if we take facebook_pixel approach for this ? I mean using the error extractor & set each of the status-code & error-message(clean-one) accordingly. Just a thought feel free to proceed with current implementation as well

Yes a long term clean approach needed for immediate unblocker went with this

@sonarqubecloud

sonarqubecloud Bot commented Jun 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 2 Code Smells

59.1% 59.1% Coverage
0.0% 0.0% Duplication

@utsabc
utsabc merged commit 8572817 into develop Jun 15, 2023
@utsabc
utsabc deleted the fix.marketo branch June 15, 2023 05:21
krishna2020 pushed a commit that referenced this pull request Jun 20, 2023
* fix: handle nested response for marketo

* fix: add docs

* fix: update record level status code for marketo

* fix: address review comment for marketo response handler

* fix: fix test cases

* fix: add more test case for coverage
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