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: add and handle never drop data field #17978

Merged
merged 5 commits into from
Oct 16, 2023
Merged

Conversation

raquelmsmith
Copy link
Member

@raquelmsmith raquelmsmith commented Oct 13, 2023

#17365 was doing weird things with migrations (because we are trying to do weird things with migrations) so I'm breaking it up into two: this PR with the basic functionality, then the next with the email changes.

Problem

See: https://posthog.slack.com/archives/C043VJ93L3B/p1694100638757679

It would be nice if for larger customers we made sure that their data was never dropped.

Changes

Adds a field to the organization model never_drop_data. This field retrieved from the customer's billing response (added in https://github.com/PostHog/billing/pull/358). If true, then we never quota limit the org.

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

Added a test.

This code was reviewed in #17365 so I'm gonna skip reviews.

@raquelmsmith raquelmsmith changed the title add and handle never drop data field feat: add and handle never drop data field Oct 13, 2023
@raquelmsmith raquelmsmith merged commit 723238e into master Oct 16, 2023
74 checks passed
@raquelmsmith raquelmsmith deleted the feat/never-drop-data-2 branch October 16, 2023 14:51
daibhin pushed a commit that referenced this pull request Oct 23, 2023
* add and handle never drop data field

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant