-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat(correlation): Enable person-on-events querying #9952
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the NIT reuse, looks good. Still not super comfortable with how many inline checks we do to swap in and out given the flag, but seems to check out
entities_to_use = entities or self._filter.entities | ||
|
||
extra_fields = [] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Can reuse _get_person_and_group_properties
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extra_fields is reused below, hence didn't 😅
parsed_fields = f", {', '.join(fields)}" if fields else "" | ||
return parsed_fields | ||
|
||
def _get_person_and_group_properties_aggregate(self) -> str: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NIT: Can consider just making _get_person_and_group_properties
an "aggregate" bool field that determines how the select field should look.
** These two NITS were mainly readability. I was confused at first why it was repeating
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, done!
🚀 |
Problem
Part X of #9802
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?