* Refactor table engine logic
This brings us closer to having production and local schemas in sync
* Raise an error if running async migration but events table is distributed
* Use django.conf settings
* Remove unneeded debug code
* Make EVENTS_TABLE_MV_SQL lazy
* Make events data table name dynamic
* Make event inserts, mv table lazy
* Refactor table engines code (again)
* Schema for writable_events and events distributed tables
* Session recordings sharding support in schema
* test_schema cleanup
* fixup session recordings schema
* Fix CLICKHOUSE_REPLICATED migrations
* Skip ch migration 0016 on CLICKHOUSE_REPLICATED
* Search the right db
* Do operations in right order for session recording events
* CREATE DATABASE before the first migration
* Add parens
* track when a plugin drops an event so we don't ingest it
* Update plugin-server/src/main/ingestion-queues/ingest-event.ts
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: Tiina Turban <tiina303@gmail.com>
* include a link to coding conventions, change some other words
* Replace "Follow" with "Stay up-to-date-with"
Co-authored-by: Michael Matloka <dev@twixes.com>
* split files up
* clean up various experiment states
* return secondary results with results
* fix funnel add step, remove required marks, display metrics results properly
* linting
* secondary metrics when no results yet
* fix yucky loading in between experiment states
* typescript fix
* undo backend changes
* load secondary metrics one at a time and spinner
* prettier and fix test
* fix backend test
* linting
* fix spinner
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Currently this would throw on a fresh install with an error similar to
```
│ posthog-events Migration would get applied: 0024_materialize_window_and_session_id │
│ posthog-events Traceback (most recent call last): │
│ posthog-events File "manage.py", line 21, in <module> │
│ posthog-events main() │
│ posthog-events File "manage.py", line 17, in main │
│ posthog-events execute_from_command_line(sys.argv) │
│ posthog-events File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", li │
│ posthog-events utility.execute() │
│ posthog-events File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", li │
│ posthog-events self.fetch_command(subcommand).run_from_argv(self.argv) │
│ posthog-events File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 3 │
│ posthog-events self.execute(*args, **cmd_options) │
│ posthog-events File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 3 │
│ posthog-events output = self.handle(*args, **options) │
│ posthog-events File "/home/posthog/code/ee/management/commands/migrate_clickhouse.py", line 41, in │
│ posthog-events self.migrate(CLICKHOUSE_HTTP_URL, options) │
│ posthog-events File "/home/posthog/code/ee/management/commands/migrate_clickhouse.py", line 57, in │
│ posthog-events sql = getattr(op, "_sql") │
│ posthog-events AttributeError: 'RunPython' object has no attribute '_sql'
```
This is due to the command not working with `RunPython` commands.
* Make clickhouse server image version configurable
* Attempt to use a reusable workflow for backend tests
* Try a composite action
* Add missing shell: bash
* Temporarily remove a step
* Cache id parameter
* Include the action when needing to rerun
* Move checking migrations to separate file
This didn't work in composite actions tests and slows down every
parallelized test execution for no reason. This should have been
separate in the first place.
* Rename job
* Improve check-migrations
* Start stack in the new job
* Remove shell
* Solve flaky test
* Remove unused file
* Create a test timings job
* Use checkout@v2 - https://github.com/cds-snc/github-actions/issues/23
* Ignore coverage files
* Save backend test durations
* Install pytest-split
* Clean up ci-backend
* Move actions code around
* wording improvement
* Save backend test durations
* Add a comment
* Make it possible to run tests with a different clickhouse version
* Remove debugging code
* Fix typo
* Boolean inputs please work
Fixes overeager test running as per https://github.com/actions/runner/issues/1483
Co-authored-by: PostHog Bot <hey@posthog.com>
* option to expand taxonomic filter infinite lists
* make the button blue, update copy
* remove duplicate
* test for is_event_property filter
* fix test
* refactor fetching
* test expandable infinite list
* fix clicking on "$time" in event prop cypress
* remove debug
* fix data-attr
* clean up shared attrs
* test with flag
* use "scoped endpoint" instead of "extended"
* don't click on skeleton
* describe scoped endpoint
* Revert "describe scoped endpoint"
This reverts commit 8450b66ef5.
* describe scoped endpoint
* remove comment
* type div props
* pluralize list
* cleaner variable names
* make sure there's something there
* pluralize some more
* don't tab if we can select something in the list