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

Add missing feature flags #2944

Merged
merged 4 commits into from Jan 15, 2021
Merged

Add missing feature flags #2944

merged 4 commits into from Jan 15, 2021

Conversation

timgl
Copy link
Collaborator

@timgl timgl commented Jan 14, 2021

Changes

Quite often, /decide hasn't loaded yet by the time we've sent the first $pageview event. This means the data on feature flags looks wrong. See below pie chart. This is a feature flag that is set to 50% of users, so clearly we are losing quite a bit of data.

We also don't want to have $pageview events waiting for /decide, as that'll cause us to miss pageview events.

This PR automatically adds those missing feature flags to the event.

image

Checklist

  • All querysets/queries filter by Organization, by Team, and by User
  • Django backend tests
  • Jest frontend tests
  • Cypress end-to-end tests

@timgl timgl requested a review from macobo January 14, 2021 12:27
@timgl timgl temporarily deployed to posthog-add-missing-fea-oqnbb3 January 14, 2021 12:30 Inactive
@timgl timgl temporarily deployed to posthog-add-missing-fea-oqnbb3 January 14, 2021 12:32 Inactive
@timgl timgl temporarily deployed to posthog-add-missing-fea-oqnbb3 January 14, 2021 12:39 Inactive
Copy link
Contributor

@macobo macobo left a comment

Choose a reason for hiding this comment

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

Small restructuring request, otherwise lgtm.

posthog/tasks/process_event.py Outdated Show resolved Hide resolved
@timgl timgl temporarily deployed to posthog-add-missing-fea-oqnbb3 January 14, 2021 18:40 Inactive
@timgl timgl merged commit a1ccbd1 into master Jan 15, 2021
@timgl timgl deleted the add-missing-feature-flags branch January 15, 2021 10:09
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