Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix version free entity matching #37

Closed
adatzer opened this issue Jul 3, 2023 · 0 comments
Closed

Fix version free entity matching #37

adatzer opened this issue Jul 3, 2023 · 0 comments

Comments

@adatzer
Copy link
Contributor

adatzer commented Jul 3, 2023

In Snowplow Entities to Add/Edit mapping, when Apply to all versions is set to True, matching allows for com_acme_test_1 to match com_acme_test_me_1.

Steps to reproducible example:

  1. Construct event payload with entities: com_acme_product_1 and com_acme_product_entity_1
  2. Set as entities rules:
{
      key: 'iglu:com.acme/product/jsonschema/1-5-0',
      mappedKey: 'something',
      propertiesObjectToPopulate: 'event_object',
      version: 'free',
},

The bug is that while iterating through the entities of the event, the com_acme_product_entity_1 will wrongly match the version-free com_acme_product

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

No branches or pull requests

1 participant