Skip to content

feat(eventbuilder): Track attributes with valid attribute types #166

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

Merged
merged 7 commits into from
Sep 21, 2018

Conversation

msohailhussain
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Sep 20, 2018

Coverage Status

Coverage increased (+0.05%) to 97.116% when pulling 097d567 on fahad/attribute-types into feb34eb on master.

@@ -43,4 +45,8 @@ module.exports = {
throw new Error(sprintf(ERROR_MESSAGES.INVALID_ATTRIBUTES, MODULE_NAME));
}
},

isAttributeValid: function(attributeKey, attributeValue) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

need to update attribute value 'null' shouldn't be sent to logtier.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done.

type: CUSTOM_ATTRIBUTE_FEATURE_TYPE,
value: attributes[attributeKey],
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we log a message if isAttributeValid returns false?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think not, because attributes are omitted for log tier, nothing to deal at user side. User will get all attributes. it will be confusing if logtier message is logged.

key: "integer_key"
}, {
id: "808797686",
key: "double_key"
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: can we fix the indentation?

@mikeproeng37 mikeproeng37 merged commit c41493e into master Sep 21, 2018
@mikeproeng37 mikeproeng37 deleted the fahad/attribute-types branch September 21, 2018 22:35
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.

5 participants