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(web-anaytics): Add extra redis functions (SCard, SAddNX, buffers) #27060

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

robbie-c
Copy link
Member

@robbie-c robbie-c commented Dec 19, 2024

Problem

Split out of https://github.com/PostHog/posthog/pull/25915/files to make it easier to review

Changes

Add a few extra redis functions

  • SCARD
  • SADD + SCARD in a transaction
  • getting and setting buffers
  • set NX (only set if a value is not set already)

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

Yes

How did you test this code?

Added some tests

@robbie-c robbie-c changed the title feature(web-anaytics): Add extra redis functions (SCard, SAddNX, buffers) feat(web-anaytics): Add extra redis functions (SCard, SAddNX, buffers) Dec 19, 2024
@robbie-c robbie-c requested review from rafaeelaudibert and a team December 19, 2024 15:52
Copy link
Member

@rafaeelaudibert rafaeelaudibert left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor typo in one of the logs :)

plugin-server/src/utils/db/db.ts Outdated Show resolved Hide resolved
@robbie-c robbie-c enabled auto-merge (squash) December 19, 2024 16:54
Copy link
Collaborator

@mariusandra mariusandra left a comment

Choose a reason for hiding this comment

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

LGTM

@robbie-c robbie-c merged commit 13cc6a0 into master Dec 20, 2024
92 checks passed
@robbie-c robbie-c deleted the feat/add-extra-redis-functions branch December 20, 2024 13:12
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