:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(flags): show person names in the matching users list (#82943)
Phill10331f67252d
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 74a1a20977f7..b30140cfbebd 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6619,7 +6619,7 @@ snapshots:scenes-app-inbox-scene--installing-self-driving--dark:hash: v1.k794b7964.d2c648fd6ea8079c6746f4b5e979cac53dbd928dd06990c3bac2031eeaba12be.rCs94UBn0krUWBSp28BM_f7Jo4Smc85JTXR_iWzDjoYscenes-app-inbox-scene--installing-self-driving--light:- hash: v1.k794b7964.e1a381b17d55ad8c8505b8ee127f6b8ec2e7caa403085904807ab8be056cd473.L05I7niKEVLN1EcRwCcMf-z7xzO9wF0qAYqaNquMtN8+ hash: v1.k794b7964.86ee9cce8a3aae137acfc651445d7f777b7f98b3e74cc2c446acfcd516d36650.RZNC9GzqeEgKiAyww54tPExJ_N2htL9xhS5SZN-pqb4scenes-app-inbox-scene--self-driving-onboarding--dark:hash: v1.k794b7964.7602d02fad26586f0a4773abe0fbe76ad39c625403c7648ec58ff711aa38d3a0.9ssGMF2bvYFiK299rvJqLc9mbtZk4SeJHRoWnZP3Ed8scenes-app-inbox-scene--self-driving-onboarding--light:diff --git a/frontend/src/scenes/feature-flags/matchingActorsUrl.test.ts b/frontend/src/scenes/feature-flags/matchingActorsUrl.test.tsindex ed6ef38b6089..0832813cbef4 100644--- a/frontend/src/scenes/feature-flags/matchingActorsUrl.test.ts+++ b/frontend/src/scenes/feature-flags/matchingActorsUrl.test.ts@@ -1,5 +1,7 @@import { combineUrl } from 'kea-router'+import { PERSON_DISPLAY_NAME_COLUMN_NAME } from 'lib/constants'+import { AnyPropertyFilter, PropertyFilterType, PropertyOperator } from '~/types'import { matchingActorsUrl } from './matchingActorsUrl'@@ -23,6 +25,8 @@ describe('matchingActorsUrl', () => {expect(parsed.pathname).toBe('/persons')expect(parsed.hashParams.q.source.kind).toBe('ActorsQuery')expect(parsed.hashParams.q.source.properties).toEqual([personProperty])+ // Without this the backend picks its own columns and the list shows raw UUIDs+ expect(parsed.hashParams.q.source.select).toContain(PERSON_DISPLAY_NAME_COLUMN_NAME)})it('links a group-targeted condition to that group type list with the filters', () => {diff --git a/frontend/src/scenes/feature-flags/matchingActorsUrl.ts b/frontend/src/scenes/feature-flags/matchingActorsUrl.tsindex 7dd4c72a669f..90e350e791b8 100644--- a/frontend/src/scenes/feature-flags/matchingActorsUrl.ts+++ b/frontend/src/scenes/feature-flags/matchingActorsUrl.ts@@ -3,6 +3,7 @@ import { combineUrl } from 'kea-router'import { isFlagPropertyFilter } from 'lib/components/PropertyFilters/utils'import { urls } from 'scenes/urls'+import { defaultDataTableColumns } from '~/queries/nodes/DataTable/utils'import { DataTableNode, NodeKind } from '~/queries/schema/schema-general'import { AnyPersonScopeFilter, AnyPropertyFilter } from '~/types'@@ -36,6 +37,9 @@ export function matchingActorsUrl(kind: NodeKind.DataTableNode,source: {kind: NodeKind.ActorsQuery,+ // Without an explicit select the backend returns its own `person` column, and the global+ // product column renderers claim that key and render "Unknown" for an actors query.+ select: defaultDataTableColumns(NodeKind.ActorsQuery),// A person-targeted condition (resolvedGroupTypeIndex null) only carries person and// cohort filters, which are person-scoped; the group-targeted case takes the branch above.properties: actorFilters as AnyPersonScopeFilter[],