Skip to content

fix(klaviyo): flatten properties if flattenProperties setting enabled from UI - #2491

Merged
krishna2020 merged 9 commits into
developfrom
fix/klaviyo-flatten-property
Aug 20, 2023
Merged

krishna2020 merged 9 commits into
developfrom
fix/klaviyo-flatten-property

Conversation

@ujjwal-ab

@ujjwal-ab ujjwal-ab commented Aug 18, 2023 •

Copy link
Copy Markdown
Contributor

Description of the change

Resolved INT-418

flatten properties if flattenProperties setting enabled from UI

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

@ujjwal-ab
ujjwal-ab requested review from a team as code owners August 18, 2023 08:45
mihir-4116
mihir-4116 previously approved these changes Aug 18, 2023
@codecov

codecov Bot commented Aug 18, 2023 •

Copy link
Copy Markdown

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1f9bda7) 86.64% compared to head (ff6b1c4) 86.65%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2491   +/-   ##
========================================
  Coverage    86.64%   86.65%           
========================================
  Files          563      563           
  Lines        27916    27926   +10     
  Branches      6661     6669    +8     
========================================
+ Hits         24189    24199   +10     
  Misses        3374     3374           
  Partials       353      353           
Files Changed Coverage Δ
src/v0/destinations/klaviyo/transform.js 91.02% <100.00%> (+0.42%) ⬆️
src/v0/util/index.js 86.75% <100.00%> (+0.05%) ⬆️

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

@ujjwal-ab ujjwal-ab self-assigned this Aug 18, 2023
@ujjwal-ab
ujjwal-ab requested a review from krishna2020 August 18, 2023 09:00
Comment thread test/__tests__/data/klaviyo.json Resolved
Comment thread test/__tests__/data/klaviyo.json Resolved
Comment thread test/__tests__/data/klaviyo.json Resolved
Comment thread test/__tests__/data/klaviyo.json Resolved
@linear

linear Bot commented Aug 18, 2023

Copy link
Copy Markdown
INT-418 Klaviyo: Nested properties not flattened for Klaviyo

Klaviyo does NOT support nested properties for identify (source)

I think there might be a few reasons why you weren’t having success calling your profile property previously. First, variables can only be nested if its an event variable, profile properties can’t be nested.

Klaviyo does support nested properties for events, but there are caveats for it that make them very difficult to use (source):

Nested data cannot be used in filters for flows or in segments since the information is buried too deep in the event data. Only top-level properties can be searched for in flow filters and segment definitions. The only place where you can use nested data is in a flow email triggered by the event, where you can display any piece of info that lives in the event's dynamic data.

Issue raised in the repo: #2472

For backward compatibility, if required, plan for configuration toggle to be provided in the destination UI configuration.

@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

@krishna2020
krishna2020 merged commit 1091981 into develop Aug 20, 2023
@devops-github-rudderstack
devops-github-rudderstack deleted the fix/klaviyo-flatten-property branch November 20, 2023 01:26
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