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

Use uuids in funnels for consistency #2036

Merged
merged 3 commits into from
Oct 27, 2020
Merged

Use uuids in funnels for consistency #2036

merged 3 commits into from
Oct 27, 2020

Conversation

timgl
Copy link
Collaborator

@timgl timgl commented Oct 26, 2020

Changes

This fixes funnels not loading in clickhouse and also this sentry error: https://sentry.io/organizations/posthog/issues/1926590421/?project=1899813&query=is%3Aunresolved

Checklist

  • All querysets/queries filter by Organization, Team, and User (if this PR affects ANY querysets/queries).
  • Django backend tests (if this PR affects the backend).
  • Cypress end-to-end tests (if this PR affects the frontend).

@timgl timgl requested a review from EDsCODE October 26, 2020 20:10
@timgl timgl temporarily deployed to posthog-use-uuids-in-fu-rxnmmo October 26, 2020 20:11 Inactive
@@ -102,7 +102,7 @@ def run(self, *args, **kwargs) -> List[Dict[str, Any]]:
res = []
for result_tuple in results:
result = list(result_tuple)
person = Person(pk=result[0])
person = Person(pk=result[0], uuid=result[0])
Copy link
Member

Choose a reason for hiding this comment

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

how is this used later? this seems to be begging for type incompatibility

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hm not sure I understand the question. It's used in queries/funnel.py in data_to_return. We only use the uuid now. How do you think we could improve this?

Copy link
Member

Choose a reason for hiding this comment

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

ah nvm

@timgl timgl temporarily deployed to posthog-use-uuids-in-fu-rxnmmo October 27, 2020 09:52 Inactive
@timgl timgl temporarily deployed to posthog-use-uuids-in-fu-rxnmmo October 27, 2020 10:33 Inactive
@timgl timgl merged commit e958bf9 into master Oct 27, 2020
@timgl timgl deleted the use-uuids-in-funnels branch October 27, 2020 12:01
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

2 participants