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

feat(django): Remove allowlist for elements_chain in decide #19332

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

davemurphysf
Copy link

@davemurphysf davemurphysf commented Dec 14, 2023

Problem

Next step in enabling elements_chain processing on client. Previously had both allowlist and denylist. Large teams already in denylist. Removing allowlist now. Clients need to be on posthog-js > 1.92.0 to send elements_chain directly so we'll still see the old behavior for a while until clients get updated.

Related PRs:
PostHog/posthog-js#823
#18701
#19193

Changes

Removed allowlist check in decide

How did you test this code?

Updated tests to be denylist only

@davemurphysf davemurphysf requested a review from a team December 14, 2023 16:41
settings.ELEMENT_CHAIN_AS_STRING_EXCLUDED_TEAMS is None
or str(team.id) not in settings.ELEMENT_CHAIN_AS_STRING_EXCLUDED_TEAMS
)
settings.ELEMENT_CHAIN_AS_STRING_EXCLUDED_TEAMS
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: giving an empty ELEMENT_CHAIN_AS_STRING_EXCLUDED_TEAMS would not release it for everyone, but disable it for everyone, which feels counter-intuitive. I'd remove this check, unless that's your intent

@davemurphysf davemurphysf merged commit d9a2605 into master Dec 14, 2023
74 checks passed
@davemurphysf davemurphysf deleted the dave/remove-elements-chain-allowlist branch December 14, 2023 16:51
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.

2 participants