0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-27 16:26:50 +01:00
Commit Graph

169 Commits

Author SHA1 Message Date
Tomás Farías Santana
b262cdf2d6
feat: Postgres supports custom schemas (#20095)
* feat: API and model support for batch exports

* Update query snapshots

* chore: Update mypy-baseline.txt

* feat: Batch exports now takes custom schema parameter

* refactor: Use new iter_records in all destinations

* fix: Postgres batch exports supports new iter_records

* fix: BigQuery batch exports supports iter_records

* fix: Remove extra new-line

* fix: Snowflake batch exports supports new iter_records

* fix: Update bigquery batch exports tests

* fix: S3 batch exports supports new iter_records

* fix: Redshift batch exports supports new iter_records

* fix: Type issue

* chore: Remove unnecessary try/except

* chore: Add batch_export_schema fixture

* feat: Always set _inserted_at even with custom schemas

* test: Batch export schema fixture

* Update query snapshots

* Update query snapshots

* fix: Do not mutate fields

* fix: Use types from service instead of defining own

* fix: Yield record batches to get access to schema

* feat: Add utility to peek and rewind generator

* feat: Postgres supports custom schemas

* fix: Typing issue and mypy sync

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-02 16:19:37 +01:00
Tomás Farías Santana
e73388b068
feat: Batch exports now takes custom schema parameter (#20022)
* feat: API and model support for batch exports

* Update query snapshots

* chore: Update mypy-baseline.txt

* feat: Batch exports now takes custom schema parameter

* refactor: Use new iter_records in all destinations

* fix: Postgres batch exports supports new iter_records

* fix: BigQuery batch exports supports iter_records

* fix: Remove extra new-line

* fix: Snowflake batch exports supports new iter_records

* fix: Update bigquery batch exports tests

* fix: S3 batch exports supports new iter_records

* fix: Redshift batch exports supports new iter_records

* fix: Type issue

* chore: Remove unnecessary try/except

* chore: Add batch_export_schema fixture

* feat: Always set _inserted_at even with custom schemas

* test: Batch export schema fixture

* Update query snapshots

* Update query snapshots

* fix: Do not mutate fields

* fix: Use types from service instead of defining own

* fix: Yield record batches to get access to schema

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-02 14:35:53 +01:00
Tomás Farías Santana
23a4a529d0
feat: API and model support for batch exports (#20013)
* feat: API and model support for batch exports

* Update query snapshots

* chore: Update mypy-baseline.txt

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-02 10:17:16 +01:00
Tom Owers
46ec36c76e
feat(actors_modal): Added breakdowns and series selectors to the actors modal (#19983)
* Added breakdowns and series selectors to the actors modal
* Added compare to the actor modal
* Fixed breakdowns making a bazillon queries

* Repair modal state logic cause loadActors only uses actorsQuery selector
I suppose this was changed at some point. We cannot use the query
argument anymore.

* Adjust the breakdown limit when not hiding other data
* Turn off "Other" breakdown option for modal for now

---------

Co-authored-by: Julian Bez <julian@posthog.com>
2024-02-01 12:29:01 +00:00
Julian Bez
5e6e3d0e36
feat(hogql): Add matching records to actors query runner and paths query (#19959) 2024-01-31 08:40:23 +00:00
Robbie
72c6ae0e77
fix(web-analytics): Remove bounce rate from most stats tables (#19937) 2024-01-24 10:06:41 +00:00
Tom Owers
a93d86f0a6
feat(trends): added persons modal to all trends graph types (#19758)
* Added persons modal to all trends graph types

* Persons modal returns the correct figures for trends

* mypy sync

* Fixed breakdown value limit being a float

* Fixed persons modal showuing the breakdown_other internal value instead of the string other

* Use util method
2024-01-23 16:27:43 +00:00
Tom Owers
135a4a813a
feat(trends): enables conjoined cohorts for hogql trends (#19864)
* Enable conjoined cohorts if we pass multiple cohort breakdowns in

* Default in cohort back

* Added more tests

* Fixed test

* Updated mypy

* Use auto for in cohort via

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* Update query snapshots

* Update UI snapshots for `webkit` (2)

* Fixed tests

* Moved setting the cohort into the printer

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-23 15:04:53 +00:00
Julian Bez
eb93490cea
feat(hogql): Add paths query runner (#19761)
* Add paths query runner
* Enhance frontend
* Align switch with filter test users
2024-01-19 15:25:13 +00:00
Tom Owers
d946f661f2
feat(hogql): Allow a placeholder to be used in place of a select statement (#19767)
* Allow a placeholder to be used in place of a select statement in a union all

* Updated the hogql parser version

* Use new hogql-parser version

* Fixed tests

* Update query snapshots

* Update query snapshots

* Rejigged the g4 file

* Updated mypy

* Updated mypy

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-18 15:14:39 +00:00
Marius Andra
4c9977b0fc
fix(insights): convert floats to integers (#19834)
* fix(insights): breakdown numbers are integers

* few more integers

* fix 2 mypy errors
2024-01-18 15:20:04 +01:00
Tom Owers
103280fc06
feat(trends): parallelize trends query runner for multiple series (#19784)
* Parallelize trends query runner for multiple series

* Fixed tests

* Update query snapshots

* Added comment for closing db connection

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-01-17 16:54:37 +00:00
Tom Owers
626e880ea2
feat(hogql): cohort left join conjoined (#19725)
* WIP

* Added a new cohort modifier for a conjoined left query

* Missing changes

* Regenned mypy sync file

* Fixed tests

* Update query snapshots

* Seperate out dynamic and static cohorts

* Use version when filtering dynamic cohorts

* Fixed tests

* Update query snapshots

* Updated mypy baseline

* Removed group by

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Thomas Obermüller <thomas.obermueller@gmail.com>
2024-01-16 14:54:08 +00:00
Thomas Obermüller
927a72a928
chore(query-nodes): rename breakdown to breakdownFilter (#19737) 2024-01-15 12:55:03 +01:00
Tom Owers
f9792e916f
feat(stickiness): compare periods and actor query (#19698) 2024-01-11 16:57:50 +01:00
Julian Bez
d3f230abda
chore(types): Remove all unused type ignore comments (#19692) 2024-01-10 14:23:18 +00:00
Tom Owers
e4591cbd97
feat(hogql): stickiness query runner (#19676)
* WIP

* Added stickiness query runner
2024-01-10 12:59:07 +00:00
Julian Bez
1c6215981f
fix(types): Fix type errors by adding defaults for optional dataclass fields (#19691)
Fix type errors by adding defaults for optional dataclass fields
2024-01-10 12:28:50 +00:00
Julian Bez
7cabe21ae3
chore: Upgrade pydantic, mypy, and others (#19660)
* Upgrade pydantic and all related
* Upgrade mypy
* Add mypy-baseline

To update baseline when you fix something (only then!) use:

    [mypy cmd] | mypy-baseline sync
2024-01-10 08:32:55 +00:00