0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 21:49:51 +01:00
posthog/bin
Michael Matloka 3e2d28f233
fix(insights): HogQL calculation of saved legacy insights v2 (#21595)
* fix(insights): HogQL calculation of saved legacy insights v2

This reverts commit a6314c6bb7.

* Only use cached results in `process_query` for insight serializer

* Fix type of results

* Rename `RecalculationMode` to `ExecutionMode`

* Fix typing more

* Properly support dashboard filters

* Hacky fix for schema.py

* Don't test legacy `generate_insight_cache_key` with `query`

* Fix importing & typing

* Fix typo

* Update test_query_runner.py

* Account for property filter groups in dashboard filters

* Do return stale result in CACHE_ONLY case

* Fix `execute_hogql_query` espionage

Wow, this was a pain to figure out, only was an issue in CI, because the trigger was `TestCohort::test_creating_update_and_calculating_with_new_cohort_query` running prior to `TestInsight:: test_insight_refreshing_query` – had to use trial and error.

* Fix typing even more

* Don't require `pnpm` for `schema:build:python`

Matters in CI.

* Fix `schema:build:python`

* Fix sed usage

* Move `schema:build:python` to a bash script

* Validate cache properly

Clarifies the `cached_response.is_cached = True` situation.

* Fix Python formatting

* Update UI snapshots for `webkit` (2)

* Add test to ensure /query/ and /inisghts/ use the same cache

* Update mypy-baseline.txt

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-04-22 10:30:18 +02:00
..
build-schema-json.mjs fix(insights): HogQL calculation of saved legacy insights v2 (#21595) 2024-04-22 10:30:18 +02:00
build-schema-python.sh fix(insights): HogQL calculation of saved legacy insights v2 (#21595) 2024-04-22 10:30:18 +02:00
celery-queues.env
check_kafka_clickhouse_up
check_temporal_up feat(hogql): in cohort joins with version as well (#21552) 2024-04-16 17:51:23 +02:00
copy-posthog-js chore: make exception autocapture available to CDN (#21225) 2024-04-08 11:33:24 +01:00
deploy-hobby
docker
docker-backend
docker-dev
docker-dev-web
docker-frontend
docker-migrate
docker-server
docker-server-unit feat: allow asgi/wsgi to be configurable by env var (#21635) 2024-04-18 10:13:06 +01:00
docker-worker
docker-worker-beat
docker-worker-celery feat(celery): Add prefetch multiplier to flags (#21399) 2024-04-08 12:22:06 +00:00
e2e-test-runner
hobby-ci.py chore: tune up the hobby deploy testing (#21142) 2024-03-26 09:54:22 -07:00
install-macosx_arm64
migrate
migrate_kafka_data.py
migrate-check
plugin-server
start chore: remove ingestion experiment (#21583) 2024-04-17 15:12:59 +01:00
start-backend
start-frontend
start-frontend-https
start-https
start-worker
temporal-django-worker
tests
unit_metrics.py
upgrade-hobby