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(plugin-server): assert fields we iterate over are objects #22201

Closed
wants to merge 1 commit into from

Conversation

bretthoerner
Copy link
Contributor

@bretthoerner bretthoerner commented May 8, 2024

This is a WIP that will require tests to be updated if we actually want to merge it.

However, it [seems to me that capture-rs will reject events] if the user sends a string as the toplevel properties, $set, or $set_once. We could just add an assertion for properties.$set and properties.$set_once and reject those events too, which seems cleaner...

Anyone have opinions on whether we should just reject these events as misshapen in capture?

Worth noting that Python capture definitely doesn't require (or check) that these are objects, to our detriment: https://posthog.sentry.io/issues/5321764413/

@bretthoerner bretthoerner marked this pull request as draft May 8, 2024 20:06
@bretthoerner bretthoerner requested a review from a team May 8, 2024 20:45
@posthog-bot
Copy link
Contributor

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week.

@posthog-bot
Copy link
Contributor

This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants