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

fix(batch-exports): Cast str config values #27571

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

tomasfarias
Copy link
Contributor

Problem

Encrypted fields are cased to str, thus losing type precision. This should affect only a handful of config fields.

Changes

  • Cast a few well-known fields back to their types.

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

Does this work well for both Cloud and self-hosted?

How did you test this code?

@tomasfarias tomasfarias force-pushed the fix/cast-encrypted-values-back-from-str branch 2 times, most recently from af8f7b2 to 0ba8d56 Compare January 15, 2025 23:28
@tomasfarias tomasfarias changed the title fix: Cast str config values fix(batch-exports): Cast str config values Jan 15, 2025
@tomasfarias tomasfarias force-pushed the fix/cast-encrypted-values-back-from-str branch from 0ba8d56 to c247b75 Compare January 15, 2025 23:35
@tomasfarias tomasfarias requested a review from rossgray January 16, 2025 08:51
Copy link
Contributor

@rossgray rossgray left a comment

Choose a reason for hiding this comment

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

good catch!

@tomasfarias tomasfarias merged commit 44f4898 into master Jan 16, 2025
92 checks passed
@tomasfarias tomasfarias deleted the fix/cast-encrypted-values-back-from-str branch January 16, 2025 09:31
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