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

1684 allow ip override #1744

Merged
merged 6 commits into from
Sep 30, 2020
Merged

1684 allow ip override #1744

merged 6 commits into from
Sep 30, 2020

Conversation

timgl
Copy link
Collaborator

@timgl timgl commented Sep 29, 2020

Changes

Allow users to pass $ip as a property without it being overridden.

Checklist

  • All querysets/queries filter by Team (if this PR affects any querysets/queries)
  • Backend tests (if this PR affects the backend)
  • Cypress E2E tests (if this PR affects the front and/or backend)

@timgl timgl temporarily deployed to posthog-1684-allow-ip-o-eickwv September 29, 2020 08:43 Inactive
Person.objects.create(team=self.team, distinct_ids=["asdfasdfasdf"])

process_event_ee(
"asdfasdfasdf",
Copy link
Contributor

@yakkomajuri yakkomajuri Sep 29, 2020

Choose a reason for hiding this comment

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

Definitely a nitpick (and not specifically related to this PR), but these "asdfasdfasdf" ids seem to be all over the tests. Probably helpful for newcomers + nicer aesthetically to have them actually be a little more descriptive. You can see it generates confusion because the test test_capture_no_sent_at actually passes "movie played" as the distinct_id

Copy link
Member

@fuziontech fuziontech left a comment

Choose a reason for hiding this comment

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

looks good

@timgl timgl merged commit ea7c156 into master Sep 30, 2020
@timgl timgl deleted the 1684-allow-ip-override branch September 30, 2020 11:54
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.

None yet

3 participants