8000 feat: server side filters by chaitanyya · Pull Request #33836 · PostHog/posthog · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

feat: server side filters #33836

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

chaitanyya
Copy link
@chaitanyya chaitanyya commented Jun 18, 2025

Problem

Server side filters for feature flags on Persons page.

Fixes: #32437
Demo Video: https://www.loom.com/share/0e9fed684a2d444d80a805915bd0a262

Changes

Removed client side filtering for Type and Status filters for Feature Flags, the evaluation_reasons is still client side, I will open another PR for moving that to server side as well.

Did you write or update any docs for this change?

How did you test this code?

I have added tests and included a loom video that shows working implementation.

@chaitanyya chaitanyya marked this pull request as ready for review June 18, 2025 03:32
Copy link
Contributor
@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Migrates feature flag filtering from client-side to server-side on the Persons page, specifically for Type and Status filters, improving handling of paginated results with large feature flag sets.

  • Added relatedFeatureFlagsLogic.test.ts with comprehensive test coverage for server-side filter functionality
  • Modified filtering logic in relatedFeatureFlagsLogic.ts to transform local filter states into API-compatible parameters
  • Keeps evaluation_reasons filter on client-side temporarily, with plans to migrate in a future PR
  • Ensures filters work across all pages instead of just the currently displayed page, fixing issues for orgs with 100+ feature flags

2 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

@haacked haacked self-requested a review June 18, 2025 04:21
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.

1 participant
0