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(capture): Add historical_migration flag to batch capture #20350

Merged
merged 2 commits into from
Feb 20, 2024

Conversation

bretthoerner
Copy link
Contributor

@bretthoerner bretthoerner commented Feb 14, 2024

Problem

Rather than (or in addition to) having to manually add/remove tokens to/from TOKENS_HISTORICAL_DATA, we could automatically opt in migration tools.

Changes

Add historical_migration flag to the batch endpoint, to be used by migration scripts in the future.

(Historical migrations should always use the batch endpoint.)

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

How did you test this code?

New and existing tests.

@bretthoerner bretthoerner requested a review from a team February 14, 2024 21:25
Copy link
Contributor

@tiina303 tiina303 left a comment

Choose a reason for hiding this comment

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

you have a new capture companion too, correct?

@bretthoerner
Copy link
Contributor Author

you have a new capture companion too, correct?

No, new capture doesn't support batch yet.

@bretthoerner bretthoerner merged commit 7d6fc16 into master Feb 20, 2024
74 checks passed
@bretthoerner bretthoerner deleted the brett/historical_migration branch February 20, 2024 15:37
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