Don't publish registry events to Redis for robots

The tutorial can only be used by users, so no need to publish for robots, which can cause issues in pulling for builders and other prod mechanisms if Redis is being finicky
This commit is contained in:
Joseph Schorr 2017-01-18 11:22:07 -05:00
parent 1bbb69367a
commit 89229a8f2c

View file

@ -65,7 +65,7 @@ def track_and_log(event_name, repo_obj, analytics_name=None, analytics_sample=1,
# Publish the user event (if applicable)
logger.debug('Checking publishing %s to the user events system', event_name)
if authenticated_user:
if authenticated_user and not authenticated_user.robot:
logger.debug('Publishing %s to the user events system', event_name)
user_event_data = {
'action': event_name,