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

MA-157 Move context back into properties. #6172

Merged
merged 1 commit into from
Dec 10, 2014
Merged

Conversation

nasthagiri
Copy link
Contributor

https://openedx.atlassian.net/browse/MA-157

Here's the updated gist from android-generated video events:
https://gist.github.com/nasthagiri/58ec88c1a92e6641dd0e

Here's the updated gist from ios-generated video events:
https://gist.github.com/nasthagiri/d2ee58d93c90faae1b65

ARCHIVE (before BI blacklist and before android-app updates):
Here's a gist of the events in the event log: https://gist.github.com/nasthagiri/8d9e83734791cfc4950e

@mulby
Copy link
Contributor

mulby commented Dec 8, 2014

👍

@nasthagiri
Copy link
Contributor Author

Thanks @mulby
I need to make another update so it doesn't store the BI events in the event logs.

@mulby
Copy link
Contributor

mulby commented Dec 8, 2014

K, I'll re-review then

@nasthagiri
Copy link
Contributor Author

@mulby I have updated this PR with the changes we discussed yesterday. Please re-review.

@nasthagiri
Copy link
Contributor Author

@aleffert please take a look as well.

if (
not segment_event_type or
(segment_event_type.lower() not in allowed_types) or
any(disallowed_subs_name in segment_event_name.lower() for disallowed_subs_name in disallowed_substring_names)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would prefer we had a different error message for this since I see the wrong type and a filtered name as two very different problems.

In fact, we may not want to log any warnings for an ignored name since that will likely cause a lot of log noise.

We don't expect to receive events with an unhandled type very often.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mulby There will also be many events with types other than "track". In particular, all "screen" and "identity" event types are ignored and are listed in the logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So should we not raise an error for disallowed Types as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mulby As discussed, we'll keep this as an error message for now, in case it will be helpful to debug any webhook issues on prod. We will remove this error message a few weeks after enabling on prod.

@mulby
Copy link
Contributor

mulby commented Dec 9, 2014

Once my one comment is addressed this looks good.

👍

@aleffert
Copy link
Contributor

aleffert commented Dec 9, 2014

👍

@mulby
Copy link
Contributor

mulby commented Dec 9, 2014

+1
On Dec 9, 2014 4:33 PM, "Akiva Leffert" [email protected] wrote:

[image: 👍]


Reply to this email directly or view it on GitHub
https://github.com/edx/edx-platform/pull/6172#issuecomment-66361754.

@nasthagiri
Copy link
Contributor Author

@stroilova FYI.

Move app-generated context back into properties.
Ignore BI events through segment's webhook.
Ignore events without Data in Properties.
@nasthagiri
Copy link
Contributor Author

The sole LMS acceptance failure is a known flaky test. Merging.

nasthagiri added a commit that referenced this pull request Dec 10, 2014
MA-157 Move context back into properties.
@nasthagiri nasthagiri merged commit c6f991f into master Dec 10, 2014
@nasthagiri nasthagiri deleted the mobile/update-analytics branch December 10, 2014 01:25
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