Skip to content

feat: add custom event name support in pinterest v5 - #2773

Merged
Gauravudia merged 4 commits into
release/v1.47.0from
feat/pinterest-custom-event-name
Oct 30, 2023
Merged

Gauravudia merged 4 commits into
release/v1.47.0from
feat/pinterest-custom-event-name

Conversation

@Gauravudia

@Gauravudia Gauravudia commented Oct 28, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Resolves INT-913
Add the support of sending events with custom names to Pinterest using V5 API.

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

@Gauravudia Gauravudia self-assigned this Oct 28, 2023
@codecov

codecov Bot commented Oct 28, 2023 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a210cbd) 87.14% compared to head (ff447f0) 87.13%.

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

Additional details and impacted files
@@                 Coverage Diff                 @@
##           release/v1.47.0    #2773      +/-   ##
===================================================
- Coverage            87.14%   87.13%   -0.01%     
===================================================
  Files                  766      766              
  Lines                28445    28443       -2     
  Branches              6657     6655       -2     
===================================================
- Hits                 24787    24785       -2     
  Misses                3321     3321              
  Partials               337      337              
Files Coverage Δ
src/v0/destinations/pinterest_tag/utils.js 96.36% <100.00%> (-0.05%) ⬇️
...tions/destinations/pinterest_tag/processor/data.ts 100.00% <ø> (ø)
...tegrations/destinations/pinterest_tag/step/data.ts 100.00% <ø> (ø)

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

@Gauravudia
Gauravudia marked this pull request as ready for review October 30, 2023 04:58
@Gauravudia
Gauravudia requested review from a team and sivashanmukh as code owners October 30, 2023 04:58
@Gauravudia
Gauravudia requested a review from a team October 30, 2023 04:58
@Gauravudia
Gauravudia changed the base branch from develop to release/v1.47.0 October 30, 2023 14:58
@Gauravudia
Gauravudia merged commit a586a92 into release/v1.47.0 Oct 30, 2023
@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

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@@ -179,10 +179,8 @@ steps:
eventNames = $.convertToSnakeCase(eventNames);
eventNames.length === 0 ? eventNames = $.ecomEventMaps.(){eventInLowerCase in .src}.dest[] ?? [];
(eventNames.length === 0 && .destination.Config.sendAsCustomEvent) ? eventNames = ["custom"];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this toggle destination.Config.sendAsCustomEvent still required ? Can't we consider the events as custom ones if they are not part of ecomEventMaps ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this toggle is enabled then we send the event name "custom" which is one of the allowed events in Pinterest. If this toggle is disabled we will send the event name as it is.

@Gauravudia
Gauravudia deleted the feat/pinterest-custom-event-name branch December 14, 2023 04: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.

3 participants