Skip to content

Conversation

@lynnagara
Copy link
Member

This code didn't previously work (user should be an interface of an
event), it just happens to not currently be called in any situation
where snuba data isn't populated.

This code didn't previously work (user should be an interface of an
event), it just happens to not currently be called in any situation
where snuba data isn't populated.
@lynnagara lynnagara requested a review from a team December 31, 2019 20:59
@lynnagara
Copy link
Member Author

This came up in both #16222 and #16230

Comment on lines -440 to -444
else:
user_id = self.data["user_id"]
email = self.data["email"]
username = self.data["username"]
ip_address = self.data["ip_address"]
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure I get why this did actually not work.

Copy link
Member Author

@lynnagara lynnagara Jan 2, 2020

Choose a reason for hiding this comment

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

These properties are actually nested under self.data["user"] if they are present, this just gave a KeyError. The EventCommon implementation get_interface("user") takes care of loading them properly.

@lynnagara lynnagara merged commit d75b0c7 into master Jan 3, 2020
@lynnagara lynnagara deleted the fix-snubaevent branch January 3, 2020 00:09
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants