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(hogql): Bring back cohort filter support in actors query #22462

Merged
merged 2 commits into from
May 23, 2024

Conversation

Twixes
Copy link
Member

@Twixes Twixes commented May 23, 2024

Problem

Made ActorsQuery schema too strict in #21820, as I missed that cohort filters are supported and commonly used there. This means we currently can't load lists of actors filtered on a specific cohort, like on the cohort page.

Changes

Made AnyPersonScopeFilter, which includes all the supported filter types, including cohorts.

@Twixes Twixes requested a review from a team May 23, 2024 12:13
@Twixes Twixes enabled auto-merge (squash) May 23, 2024 12:16
@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

2 snapshot changes in total. 0 added, 2 modified, 0 deleted:

  • chromium: 0 added, 2 modified, 0 deleted (diff for shard 1)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

Copy link
Contributor

Size Change: 0 B

Total Size: 1.04 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.04 MB

compressed-size-action

@Twixes Twixes disabled auto-merge May 23, 2024 12:38
@Twixes
Copy link
Member Author

Twixes commented May 23, 2024

Backend tests green on bf0108e

@Twixes Twixes merged commit d0675e4 into master May 23, 2024
56 of 57 checks passed
@Twixes Twixes deleted the fix-cohort-filtering branch May 23, 2024 12:38
xrdt pushed a commit that referenced this pull request May 24, 2024
* fix(hogql): Bring back cohort filter support in actors query

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
timgl pushed a commit that referenced this pull request May 24, 2024
* fix(hogql): Bring back cohort filter support in actors query

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
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