0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
posthog/ee
Michael Matloka d51e2b28b9
feat(insights): Parameterized first day of the week in queries (#16229)
* feat(insights): Allow either Monday or Sunday as week start

* "Weeks start on" to "Week starts on"

* Add `WeekStartDay` choices class

* Wrap interval SQL in `toDateTime()`

* Add printer test

* Fix malformed SQL

* Fix `BREAKDOWN_QUERY_SQL`

* Fix excess parenthesis

* Update test_event_query.py

* Fix `NULL_SQL`

* Add `team` to `Filter()` in a bunch of places

* Fix some num queries assertions

* Fix some timezone issues

* Fix funnel trends query syntax

* Fix a few issues

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix some query issues

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Fix properties timeline margin

* De-HogQL-ify `get_start_of_interval_sql`

* Make `get_start_of_interval_sql` robust

* Update UI snapshots for `chromium` (1)

* Restore snapshots from master

* Clean up and fix a missing timezone

* Make date and time settings nice

* Fix SUNDAY/MONDAY

Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>

* Revert `BUILT_IN_TABLE_NAMES`

* Revert new UI

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix `_table_names`

* Revert change adding more queries

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix minor issues flagged by tests

* Update query snapshots

* Split up `test_interval_filtering`

* Test Monday/Sunday setting in `test_timezones_weekly`

* Update query snapshots

* Add `WeekStartDay` cast

* Restore test_event_query.py

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2023-08-30 14:15:33 +02:00
..
api chore: remove unused organization metadata (#17235) 2023-08-29 19:52:15 +01:00
benchmarks chore(time-to-see-data): Make ClickHouse query tagging thread-safe (#12861) 2022-11-21 09:16:22 +02:00
billing feat: sync distinct ids with billing (#16919) 2023-08-17 11:41:25 -07:00
bin chore: removes unnecessary references to shared_dashboard.html (#10742) 2022-07-13 10:12:02 +02:00
certs chore(packaging): add dev CA root (#15908) 2023-06-06 14:35:30 +00:00
clickhouse feat(insights): Parameterized first day of the week in queries (#16229) 2023-08-30 14:15:33 +02:00
management/commands fix: materialised columns (#11558) 2022-08-31 21:02:33 +01:00
migrations feat: allow verified property definitions (#15937) 2023-06-08 11:52:25 +01:00
models fix: extras not extra :/ (#17010) 2023-08-14 07:55:30 +00:00
tasks fix: allow creating static cohorts for lifecycle (#16248) 2023-06-28 14:57:47 +01:00
test/fixtures feat: allow verified property definitions (#15937) 2023-06-08 11:52:25 +01:00
__init__.py
apps.py
conftest.py ci(flake8): enable unused import check (#8714) 2022-03-08 09:53:54 +01:00
LICENSE chore: 2023 (#13143) 2023-01-03 08:21:48 +00:00
pytest.ini refactor: Yeet PRIMARY_DB (#9017) 2022-03-21 13:15:50 +01:00
settings.py feat: Remove posthog-cloud step 2 (#16067) 2023-06-15 14:03:08 +02:00
urls.py feat: remove perf events for now (#16652) 2023-07-19 12:10:09 +01:00