0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-30 19:41:46 +01:00
Commit Graph

1204 Commits

Author SHA1 Message Date
Marius Andra
8316edc87d
feat(hogvm): save bytecode for actions (#16932) 2023-08-10 11:13:03 +02:00
Marius Andra
1012a0c771
fix(backend): old style property search (#16930) 2023-08-09 00:00:39 +02:00
Paul D'Ambra
5804600b54
feat: remove more recording events queries (#16878) 2023-08-03 10:01:44 +02:00
Thomas Obermüller
51ae61d4e0
fix(funnels): fix step funnel & correlation persons cache invalidation (#16802)
* add cache_invalidation_key to converted_people_url and dropped_people_url

* add cache_invalidation_key to success_people_url and failure_people_url
2023-07-28 10:22:40 +02:00
Michael Matloka
53cafa636e
fix(formulas): Support aggregated session duration (#16780)
* Fix aggregated session duration in formula

* Clarify comment

* Tolerate unset `entity.index`

* Fix this in a sane way

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-27 13:13:25 +02:00
Paul D'Ambra
2b3a45697b
revert "feat: return 429 when recordings are quota limited (#16725)" (#16775)
Revert "feat: return 429 when recordings are quota limited (#16725)"

This reverts commit 8f3ae7515d.
2023-07-26 14:17:45 +01:00
Paul D'Ambra
8f3ae7515d
feat: return 429 when recordings are quota limited (#16725)
* feat: return 429 when recordings are quota limited

* fix

* fix

* Update query snapshots

* Update query snapshots

* limit events and recordings separately, process the full batch

* Update query snapshots

* default to one minute rate limiting

* fix tests

* Update query snapshots

* Update query snapshots

* don't 429 on events _yet_

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-26 09:02:55 +01:00
Paul D'Ambra
aeb89fc9fc
feat: remove perf events for now (#16652)
* feat: remove perf events for now

* Update query snapshots

* fix

* fix

* fix

* fix

* just remove it all :/

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-19 12:10:09 +01:00
Marius Andra
339a0ce2de
feat(persons & groups): search by UUID (#16609)
* search by person id

* fix load more button that does not load more

* also search by group key

* shorten

* Update query snapshots

* de-nit

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-18 19:10:17 +02:00
Marius Andra
a9e6486a29
fix(hogql): improve null handling for other operators (#16506) 2023-07-12 17:58:25 +02:00
Neil Kakkar
976bc037a9
feat(experiments): Bring back default participant selection (#16468) 2023-07-11 14:31:39 +00:00
Neil Kakkar
91106f6aab
feat(experiments): Allow setting manual exposure (#16400) 2023-07-11 09:53:21 +01:00
Paul D'Ambra
32b0552a27
fix: posthog insight tests depend on ee code (#16447)
* fix: posthog insight tests depend on ee code

* Update query snapshots

* Update query snapshots

* Update query snapshots

* fuzzy the bear

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-09 14:06:10 +01:00
Neil Kakkar
e8680f5646
fix(flags): Several minor fixes for experiments and flags (#16402) 2023-07-06 14:52:53 +00:00
Neil Kakkar
b0932b3071
feat(experiments): Bring funnel options to the experiment (#16263) 2023-06-29 16:11:15 +00:00
Marius Andra
ccac226b14
feat(paths): aggregate by hogql expression (#16212) 2023-06-28 16:35:34 +00:00
Marius Andra
97a352579b
fix(hogql): null handling with == and != comparisons, attempt 2 (#16259) 2023-06-27 17:14:10 +02:00
Neil Kakkar
a676122db6
fix(experiments): Fix bugs around creating new experiment (#16261) 2023-06-27 14:55:02 +01:00
James Greenhill
0f0fa28932
Revert "fix(hogql): null handling with == and != comparisons" (#16257)
Revert "fix(hogql): null handling with == and != comparisons (#16216)"

This reverts commit 46d80f3e93.
2023-06-26 14:13:27 -07:00
Marius Andra
46d80f3e93
fix(hogql): null handling with == and != comparisons (#16216) 2023-06-26 21:14:21 +02:00
Eric Duong
150eec66ff
feat(ff-dashboard-templates): feature flag dashboard templates model (#15947)
* model and migration

* api

* init

* migration manifest

* test

* Update query snapshots

* Update query snapshots

* fix n+1

* fix n+1

* change naming

* handle connection already exists

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-09 10:11:50 -04:00
Paul D'Ambra
5b268df29c
feat: allow verified property definitions (#15937)
Today it annoyed me I could verify an event but not a property

Changes
Adds property definition verification, which was mostly copy-pasta from existing code
2023-06-08 11:52:25 +01:00
Frank Hamand
941dedc7a9
feat: Add support for querying different clickhouse hosts per team (#15622)
* Add support for querying different clickhouse hosts per team

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Run formatting

* Fix typing issues

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Add missing argument type

* Fix bad merge

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-06-05 10:05:13 +01:00
Marius Andra
4d1116a7b7
fix(tests): make assertNumQueries fuzzy (#15831) 2023-06-01 09:15:56 +00:00
Marius Andra
8069762e45
feat(billing): track HogQLQuery and EventsQuery usage (#15512) 2023-06-01 09:19:41 +02:00
Michael Matloka
39ad3cd68c
feat(actions): Support "Link target contains/matches regex" (#15535)
* Add `ActionStep.href_matching` + `ActionStep.text_matching`

* Use `href_matching` and `text_matching` in matching

* Show new matching options in the UI

* Update query snapshots

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Add support in the API

* Fix `LemonLabel` overflow

* Add support in the toolbar

* Update plugin server tests

* Add Django support

* Update query snapshots

* Add Django test

* Don't italicize text input placeholder

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

* Fix typing

* Update query snapshots

* Fix typing more

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (1)

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-25 16:35:02 -07:00
Paul D'Ambra
d2e15f4a11
feat: notebooks api (#15475)
* wip

* wip

* Update query snapshots

* add a content json field to the model

* a user from team a in org b can create things in team c in org b

* Update posthog/api/notebook.py

Co-authored-by: Ben White <ben@posthog.com>

* remove notebook title

* fix

* less lines of code is good lines of code

* Update query snapshots

* Added version check

* Fixed up to use backend

* Style

* Fixed tests

* Update UI snapshots for `chromium` (2)

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
2023-05-25 14:35:47 -07:00
Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume (#15672) 2023-05-25 16:31:35 +01:00
Neil Kakkar
2652bf3c76
feat(decide): Check db availability on an interval (#15699) 2023-05-25 14:18:51 +01:00
Paul D'Ambra
2be56dce8e
chore: gauge insight redis cache access (#15702)
* chore: gauge insight redis cache access

* Update query snapshots

* counter instead and python style names

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-24 18:35:34 +01:00
Ben White
a6f11b0626
fix: Recording properties loading (#15643) 2023-05-23 11:38:15 +00:00
Neil Kakkar
2083ff97bf
feat(experiments): Support avg count per user trend metrics (#15623) 2023-05-23 11:05:13 +01:00
Michael Matloka
8a67db9e12
fix(insights): Support path cleaning rules with wildcard groups (#15637)
* fix(insights): Allow combining path cleaning rules and wildcard groups

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-22 15:56:59 +01:00
Michael Matloka
bfae851bfd
test(insights): Clean up User Paths tests + snapshot CH queries (#15631)
* Remove `paths_test_factory` layer

* Snapshot paths API ClickHouse queries

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Fix stability of `session_id in [...]`

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-22 11:21:29 +01:00
Yakko Majuri
226caf186e
chore(tests): run poe tests on v2 rather than v1 (#15511)
* chore(tests): run poe tests on v2 rather than v1

* Update query snapshots

* fix

* fix

* make foss tests work

* properly fix foss tests

* Update query snapshots

* final hogql tests fixed

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-16 19:55:32 +00:00
Michael Matloka
6daabb7b36
perf(persons): Prefilter person property conditions for reduced memory usage (#15507)
* perf: Prefilter rows in person search for reduced memory usage

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Better document `aggregate_by_person_version`

* Snapshot queries in more tests

* Use `DIRECT_ON_PERSONS` instead of new arg

* Explain `PersonPropertiesMode` options

* Streamline the various clauses

* Fix formatting

* Add comments and restore join optimization

* 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 comment typo

* Clarify persons-on-events v2

* Reduce parens

* Disambiguate prepends

* Update query snapshots

* Fix unmatched parens

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-15 17:54:51 +02:00
Michael Matloka
afe6103e6e
fix(correlation-analysis): Fix team missing in a Filter (#15502)
* fix(correlation-analysis): Fix `team` missing in a `Filter`

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-12 09:15:57 +00:00
Marius Andra
5221eda6d4
feat(hogql): handle null properties (#15244) 2023-05-11 13:57:51 +02:00
Yakko Majuri
a61087aa1b
fix(poe-v2): fix funnels with cohort breakdowns (#15457)
* fix(poe-v2): fix funnels with cohort breakdowns

* fix properly

* snapshots

* Update query snapshots

* Update query snapshots

* add also_test_with_person_on_events_v2 decorator to relevant tests

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-10 10:45:38 -03:00
Neil Kakkar
ca03fdda26
fix(trends): Make breakdowns work with cohorts in poe v2 (#15450) 2023-05-09 17:49:32 +00:00
Michael Matloka
08eab1f9c0
style: Fix "Posthog" capitalization (#15426)
* style: Fix "Posthog" capitalization

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 18:31:34 +02:00
Yakko Majuri
aa1fc7d4d5
fix(groups): do a left join for group props (#15423)
* fix(groups): do a left join for group props

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* lol

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-08 14:27:26 -03:00
Marius Andra
105d7e8b10
feat(insights): support 'any event' filter (#15209) 2023-05-08 17:25:14 +02:00
Marius Andra
c91b2feebd
feat(insights): funnel on sessions (#15317) 2023-05-05 10:32:24 +02:00
Neil Kakkar
06c5db6dcb
feat: calculate count of static cohort (#15370)
Co-authored-by: psykomal <bkomalsai@gmail.com>
2023-05-04 12:15:23 +00:00
Thomas Obermüller
502a408aa6
fix(person): use display name setting (#15315) 2023-05-03 14:17:30 +02:00
Michael Matloka
3e9fd2e49e
refactor(api): Include team and organization in serializer context (#15294)
* refactor(api): Include `team` and `organization` in serializer context

* Optimize team/organization access

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update posthog/api/routing.py

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

* Rename `access_team/organization` to `get_*`

* 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>
2023-05-01 18:55:24 +02:00
Yakko Majuri
b8b132a847
fix(person-query): query cohorts correctly (#15288)
* fix(person-query): query cohorts correctly

* update

* Update query snapshots

* Update query snapshots

* black

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-01 10:25:06 +01:00
Yakko Majuri
d68c5bf70d
fix(poe-v2): use argMax to get latest override (#15264)
* fix(poe-v2): use argMax to get latest override

* add new file

* fix

* lol

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* black

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-04-28 11:49:52 -03:00
Eric Duong
853e264a7b
chore: feature management refactor (#15099)
* really lazy tables attempt 1

* Use feature-management-enabled `posthog-js`

* lazy tables

* can select if hogql

* fix small test bugs

* more fixes

* Update query snapshots

* Add backend

* created shareholder value

* freeze time for a funnel

* dogfood

* add to site popover menu and add toggles to enable features

* Add frontend base

* fix more tests

* move up

* fix last test

* Add basic feature creation flow

* Use live previews on the Feature Preview page

* Link to feature page

* Update posthog-js

* Improve editing experience

* few more fixes

* dogfood

* few more fixes

* don't overreach

* Update query snapshots

* Add persons list

* Revert EditableField change

* Revert `MinimalFeatureFlagSerializer` rename

* Revert Feature Preview page

* Revert HogQL identifier syntax change

* Revert `LemonInput` placeholder italicization

* Update test_decide.py

* Update 0312_feature.py

* Update HogQLParserVisitor.py

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Make migration safety test smarter around `CONSTRAINT`

* Update UI snapshots for `webkit` (2)

* cleanup imports

* rough draft

* add code switch

* ui reorientation

* Update UI snapshots for `chromium` (2)

* working form with connect existing flag functionality

* Update UI snapshots for `chromium` (2)

* update lemonselectmultiple to use labelinvalues and add select person functionality

* move modal

* carry changes locally

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* change order

* remaining fields

* address comments

* bugz

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* format

* constant

* more types

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* fix types

* fix types

* Update UI snapshots for `chromium` (2)

* num queries

* Update UI snapshots for `chromium` (2)

* reconfigure and cleanup

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* fix test

* remove image_url

* Update UI snapshots for `chromium` (2)

* update tests

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* refactor model, add separate endpoint for previews

* revert yalc and kafka

* add migration

* revert lockfile changes

* update lockfile from right master

* lint

* lint with updated prettier version

* fix storybook

* Update UI snapshots for `chromium` (2)

* rename to early access

* update frontend naming

* update more frontend naming

* breadcrumbs

* Update UI snapshots for `chromium` (1)

* update naming

---------

Co-authored-by: Marius Andra <marius.andra@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: James Hawkins <47497682+jamesefhawkins@users.noreply.github.com>
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-04-27 14:41:14 -04:00