Skip to content

Commit 3de0116

Browse files
authored
Merge pull request #2 from dataquestio/175034101-ds-500-error
#175034101: Remove dq_user_id from most events
2 parents ba48ce0 + daf6cf3 commit 3de0116

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

plugin.rb

+4-8
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ def emit_segment_user_tracker
9292
name: "#{controller_name}##{action_name}",
9393
properties: {
9494
url: request.original_url,
95-
user_email: current_user.email,
96-
dq_user_id: current_user.single_sign_on_record.external_id
95+
user_email: current_user.email
9796
},
9897
context: {
9998
ip: request.ip,
@@ -124,8 +123,7 @@ def emit_segment_post_created
124123
created_at: created_at,
125124
since_topic_created: (created_at - topic.created_at).to_i,
126125
reply_to_post_number: reply_to_post_number,
127-
user_email: user.email,
128-
dq_user_id: user.single_sign_on_record.external_id
126+
user_email: user.email
129127
}
130128
)
131129
end
@@ -143,8 +141,7 @@ def emit_segment_topic_created
143141
slug: slug,
144142
title: title,
145143
url: url,
146-
user_email: user.email,
147-
dq_user_id: user.single_sign_on_record.external_id
144+
user_email: user.email
148145
}
149146
)
150147
end
@@ -178,8 +175,7 @@ def emit_segment_post_liked
178175
post_id: target_post_id,
179176
topic_id: target_topic_id,
180177
like_count: target_topic.like_count,
181-
user_email: user.email,
182-
dq_user_id: user.single_sign_on_record.external_id
178+
user_email: user.email
183179
}
184180
)
185181
end

0 commit comments

Comments
 (0)