Skip to content

Fail validation when app context receives an unknown property #782

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 6 commits into from
Mar 19, 2020

Conversation

i-like-robots
Copy link
Contributor

@i-like-robots i-like-robots commented Mar 19, 2020

All app context properties are appended to tracking events. The schema currently allows unknown properties to added for convenience, however this is causing the analytics team problems as they are receiving unexpected data.

This updates the app context schema to disallow unknown properties and reiterates how app context is used in the readme.

We will provide another appropriate mechanism for passing data between the server and client (cc #761).

Copy link
Contributor

@magsallen magsallen left a comment

Choose a reason for hiding this comment

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

Yup. Agree 👍 Do we have an idea of what might break once this is implemented?

@i-like-robots
Copy link
Contributor Author

Nothing that I'm aware of! 🤞

@i-like-robots
Copy link
Contributor Author

I had to add the pageKitVersion property to the schema 🤭

I also noticed some things that could be deleted from the kitchen sink example 😶

@i-like-robots i-like-robots merged commit 1dc8c16 into master Mar 19, 2020
@i-like-robots i-like-robots deleted the matth/fail-app-context-on-unknown branch March 19, 2020 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants