* simplify cypress nav menu clicks
* clean unused annotations code
* don't blank all cohorts when deleting one
* add data-test-filters-loading to better target loading indicators in tests
* move event and property definitions to models, refactor models to import via component if user present
* rename Logic to Model
* add personPropertiesModel
* refactor sessionFilters to use personPropertiesModel
* remove personProperties from inside propertyFilterLogic and use the model
* break ternary
* fix cohort and feature flag tests (for virutalized lists)
* wip: support test_ api key
* Renamed test_environment property to
* Added Prod/Test switch to determine which environment to show data for
* moved environment toggle behind feature flag
* corrected key name to standard $ names
* Moved hidden filters to PropertyKeyInfo for improved clarity
* fix typing
* proposed UI
* Renamed to ; Changed to a string and added environment const types: production, test; Moved into a hidden filter along with environment types for the frontend; Corrected tests to use environment constants; is no longer set by default but only when test_ is supplied in the apiKey or is manually supplied; Moved environment to navigationLogic;
* Added filter for test environments so that when it's enabled all test environments are filtered out
* Remove component if feature flag for test-environment is enabled
* adjust style of tooltip
* adjust UI based on @corywatilo's input
* implemented toggle functionality
* Made Environments an enum for clarity
* Moved environment constants to constants.py for consistency
* Moved Environments into constants for consistency
* Using parameter destructuring for better syntax
* Make sure type is set as a string
* Removed test filters
* Created _clean_token to ensure test_ is removed from all the places
* Bug fixes for adding filter property so that it work properly
* Show test account filter
* ensure token isn't None so that mypy checks pass
* Corrected css selector syntax
* removed quote since it's not needed
* Corrected cypress test by excluding featureFlag usage on shared dashboard scene
* Fixed test
* corrected syntax style issues
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
Co-authored-by: Buddy Williams <buddy@Buddys-MacBook-Pro.local>
* Closes #3901 add PropertyKeyInfo to select box list
* add more event properties
* update standard events on insights dropdowns with PropertyKeyInfo
* fix borked styling
* add more events to the property key info list
* update standard events with property key info for events tables
* typescript error fixes
* resolve finicky typescript null object error
* e2e updates
* update e2e
* update e2e trends filter selector
* fix events filter bug
* update break down button event name
* e2e fix
* wrap in div and style fix
* fix person header icon
* refactor and simplify WebhookIntegration
* do not show error messages related to /billing endpoint
* fix a bunch of ts errors
* clarify anonymous users
* minor tweaks
* Replace README contents with a single link to Never Gonna Give You Up
* Assert event name
* Add some clicks
* Remove a sessions Cy test because of insufficient demo data
* Reenable Apply table filter test
* Revert "Replace README contents with a single link to Never Gonna Give You Up"
This reverts commit 1b2fe76304.
* Add test for bar charts
Since our charts are rendered on a canvas we can't really interact well
with it. Instead, we take a screenshot now (new dependency).
* Debug error in CI
* Make sure images are the same size on CI and locally
* Fix links to people from Retention modal and Funnels.
More details under issue https://github.com/PostHog/posthog/issues/3480
* Fix funnel calculations on self-hosted
Broken by renames within https://github.com/PostHog/posthog/pull/3301
* Handle cached calculations in e2e test runner
When executing e2e tests, celery tasks are evaluated immediately. Previously
due to the caching the funnels never loaded as we overwrite the results immediately.
* Add test for navigating to persons from funnels
* Test for retention visualization and person navigation
* Don't colorize sql for output
* Handle setting array props as values
* Handle arrays exact/is_not property filters
Also updates tests to use parameterization
* Avoid autoclosing PropertyFilter popup
As key changes, old one got removed from DOM
* Improve filter UX
Don't allow filter to become multi-line and keep inputs the same size.
Previous flex={1} was doing flex: 1 1 auto which was messing things up
* Fix typescript issue
* Handle array lookups in postgres
* Update types
* Fix fixture to recreate tables
* Make replace spaces logic consistent with what was there before
* Handle list filtering better in postgres
* Update frontend tests
* Handle edge case: Switching between multi operator and single operators
* WIP: get cypress something doing
* Get a test running
* Get css loading, stub posthog
* Move helpers to separate file
* Givens > given2
It plays nicer with beforeEach
* Test for session filters
* Test date navigation
* Test filtering
* Try keep old tests running
* Try get tests running under CI
* Prettify fixtures
* Cleanup, use cypress 6
* Add yarn build
* Fix e2e cypress tests
* given2 => givens
* Rename `frontend-test-runner` to `e2e-test-runner`
* Fix cypress test
* Add webpack-preprocessor as a devDependency
* Improve freezing time
* Make css inclusions automatic for component tests
* Grab all events and properties even if job hasn't run yet
* Use next on generator instead of list comprehension
* Replace IndexError with StopIteration
* Don't raise StopIteration at all
* try delay
Co-authored-by: Michael Matloka <dev@twixes.com>
* Unify clickhouse and pg demo data creation
* Adapt yakkos demo data generation to normal demo
* Split demo.py into subfolder
* Add original, web data import
Note that elements are not added because they can't be added
automagically :(.
* Improve wording
* dont generate dashboards
* try get tests passing
* fix types
* Get cypress tests green
* Support multiple groups in feature flags model
This will be part of #3007
I did not do a migration since it would cause errors for decide endpoint
once migrations have run but new schema not up.
* Update analytics_metadata method
* Allow defining multiple groups in frontend
* Allow sorting
* Update tests, allow submit without filters.
* Update cypress
* Avoid N+1 queries
* Indicate filters better in table
* Upload static cohort using CSV, closes #2868
* fix tests
* Fix tests
* Fix e2e test
* Avoid double inserts
* Speed up query
* Move to params
* fix tests
* Use JSON instead of protobuf
* unused import
* produce instead of produce_proto
* Insert directly into clickhouse, no need for kafka
* a few quick fixes
* insert in batch to clickhouse
* test SQLi since we can't really trust what we are inserting
* Extra check for duplicates
Co-authored-by: James Greenhill <fuziontech@gmail.com>
* separate math aggregates
* add data attr back
* adjust cypress
* make sure tooltip is viewable
* Show total by default
Co-authored-by: Tim Glaser <tim@glsr.nl>
* Polish system status page
* Show system health badge to is_staff users on Cloud
* Update Cypress test
* Correct inconsistent scene name
* Use RDBMS enum instead of constants
* Add "Analytics database in use" to System Status
* Fix typing