* Add `min-width` to `SitePopover`
* Add "you" as a special case of a `ProfilePicture` user name
* Add a funnel to Hedgebox data
* Open demo signup CTA in new tab
* Provide all paid feature in demo
* Add nbsp;s on signup pages
* Align simulate_matrix defaults with demo signin
* Automate taxonomy generation in Matrix
* Register first seen and last seen dates for events
* Improve naming
* Improve `run_on_team` return type
* Copy data from master team for performance
* Add type annotations
* Fix Postgres analytics data
* Support groups in demo data
* Silence logspam
* Divide clusters into company and social ones
* Fix `calculate_event_property_usage_for_team`
* Add `COPY_ROWS_BETWEEN_TEAMS_BASE_SQL` const
* Rework demo data generation system
* Fix `setup_dev` and `posthog-foss`
* Keep old demo data generators to reduce hassle
* Move to Hoglify concept
* Separate new generator from old version
* Fix issues
* Rework simulation structure
* Restore package.json
* Reformat `requirements`
* Fix signup button margin
* Refactor things
* Remove snapshots
* Strip old stuff
* Rearrange more
* Fix bad imports
* Add simulation scaffolding
* Add `dry_run_matrix` command
* Fix determinism
* Update naming
* Update dry_run_matrix.py
* Model web client, add sessions, enable full-cluster simulation
* Update flake8 config
* Ignore T001 violation
* Fix saving data
* Instrument `set_project_up` more
* Add demo cohorts, feature flag, experiment
* Parametrize `start` and `end` in `simulate_matrix`
* Add neighbor effects
* Add more events
* Allow silencing events in `simulate_matrix`
* Improve effect scheduling and add more activities
* Fix time measurement
* Disallow creating extra orgs for demo users
* Add more useful info to `simulate_matrix` output
* Add super properties, refine world
* Fix first-seen moment
* `create_event` to Kafka if possible for speed
* Alias `$distinct_id` to `distinct_id` in `keyMapping`
* Extend simulation to 120 days
* Fix experiment instrumentation
* Fix some error message
* Fix experiment flag
* Increase number of demo sim clusters
* Fix typing
* Remove unused agent actions
* Support Python 3.8
* Avoid `Union[Team, int]`
* Fix an arg
* Remove dodgy alias
* fix(clickhouse): resolve 21.8 -> 21.9 test issues
This is the minimum change to make
ee/clickhouse/queries/funnels/test/test_funnel_unordered.py::TestFunnelUnorderedStepsBreakdown::test_funnel_aggregate_by_groups_breakdown_group
pass. There may be other tests still failing.
The issue was introduced with the [addition of
heredocs](https://github.com/ClickHouse/ClickHouse/pull/26671) into the
clickhouse syntax. heredocs use `$` as delimiters. We're using `$` for
column identifiers in quite a few places, so now we need to ensure that
we have quoted these before rendering into SQL.
* update other snapshots
* update snapshots
* fix(clickhouse): quote materialized column identifiers
* Use GroupTypeIndex type in BE
* Consistent ordering for group types
* Better BE type for group type index
* Handle non-url safe keys in groups
Previously this would crash due to never decoding the url and not
handling it in the backend
* Allow fetching related groups from the API
* Solve minor type errors
* Add a tooltip
* data-attr for tracking links
* Add related groups onto person page
* Fix an import
* Kill useEffect
* Update wording
* Update view to use postgres tables
We keep these in sync now
* Add retrieve endpoint
* Link to a (blank) groups page
* Show events table and properties under group
* Update pagination for groups
* update testing utils
* Update tests
* Patch tests relying on returned models
* Remove duplicated line
* wip
* get list of groups
* move backend endpoints
* frontend wip
* fix routes for groups
* add groups file
* try to fix tab nav
* fix groups query
* reformat results, add limits and offsets and next url
* move groups pages logic into own file
* fix and clean up tabs
* account for pagination and response reformatting
* lint fixes
* optional prev input
* typescript errors
* typescript fixes
* address feedback comments
* groups list logic test
* render properties expandable row
* fix test and lints
* prettier
* simplify table column title
* Fix a typing issue
* Use enum > boolean parameter
This makes what's going on more explicit
* Turn off pagination at the bottom of the table
* Rename table column
* Make pagination in groups work
Quite bugs fixed:
1. `previous` page was always shown, even if going into negative offsets
2. query_result could never be larger than `limit` with the code
* Cleanup code
* Make sidenav active under persons
* Use the correct query
* Add tests for pagination
* Update wording again
Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
* Migration to use materialized columns for groups
Workaround for https://github.com/PostHog/posthog/issues/6422
* Use groups materialized columns in queries
* Update mat column creation tests
* Simplify aggregation_target_field
* Fix migration
* Update snapshots
* Add group type, group_type_index
* Raise an error when handling unsupported properties in CH
* Improve repr
* Fix is_superset function
This was previously broken - sorting and zipping doesn't really work for
this intent.
* Add group_type_index to analysis results
* Add `group_types_to_query`
* Minor typing fixes
* Create groups tables in tests
* Simple first filter by groups query
* isort
* Use snapshot testing in event_query tests, add test for groups