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

Set undefined user properties as undefined in webhooks messages #3685

Merged
merged 3 commits into from
Apr 16, 2021

Conversation

angelahuang89
Copy link
Contributor

Changes

Please describe.
If this affects the frontend, include screenshots.

This PR addresses the first part of #3659. When a property on user is undefined, it will be set as undefined in the webhooks message instead of raising a ValueError.

Checklist

  • All querysets/queries filter by Organization, by Team, and by User
  • Django backend tests
  • Jest frontend tests
  • Cypress end-to-end tests

@timgl timgl temporarily deployed to posthog-webhook-user-mi-shte2l March 17, 2021 16:27 Inactive
@timgl timgl temporarily deployed to posthog-webhook-user-mi-shte2l March 17, 2021 17:52 Inactive
@angelahuang89 angelahuang89 force-pushed the webhook-user-missing-properties branch from 038d734 to aef0512 Compare March 17, 2021 18:04
@timgl timgl temporarily deployed to posthog-webhook-user-mi-shte2l March 17, 2021 18:04 Inactive
@timgl timgl temporarily deployed to posthog-webhook-user-mi-shte2l March 17, 2021 18:18 Inactive
@Twixes
Copy link
Collaborator

Twixes commented Apr 1, 2021

Hey Angela! Is this reviewable?

Copy link
Collaborator

@Twixes Twixes left a comment

Choose a reason for hiding this comment

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

Well, looks good to me, thank you

@Twixes Twixes merged commit 6bbacbc into master Apr 16, 2021
@Twixes Twixes deleted the webhook-user-missing-properties branch April 16, 2021 13:59
fuziontech pushed a commit that referenced this pull request Apr 19, 2021
* master: (62 commits)
  Docker support on the Apple M1 chip / arm64 (#4024)
  Release session filters (#4030)
  Notify Sentry of production releases (#3998)
  Make new Sessions filter UI responsive (#3988)
  Change wording to be even clearer (#4027)
  Defer event fields on team model to make grabbing fields a bit more lazy (#4028)
  🤖: Add kevinhu as a contributor 🎉 (#4023)
  Patch 3638 (#4022)
  3638 trailing wau mau (#3929)
  Use virtual list for property select (#4020)
  Miscellaneous improvements (#4003)
  Autofocus filter dropdown (#3957)
  User ID convention naming (#3943)
  Pin prod docker-compose to Postgres 13 and Redis 6 (#4019)
  Invite sign up E2E tests (#3591)
  🤖: Add angelahuang89 as a contributor 🎉 (#4018)
  Set undefined user properties as undefined in webhooks messages (#3685)
  Avoid double-stacked <hr /> lines in trends (#4014)
  Update plugin server to 0.16.14 (#4017)
  Don't catch all exceptions for migrating clickhouse (#4016)
  ...
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.

3 participants