0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
Commit Graph

12761 Commits

Author SHA1 Message Date
Michael Matloka
0d05aa19d0
fix(insights): Hide empty "Display" options section (#17044)
* fix(insights): Hide empty "Display" options section

* Don't use different color for options count
2023-08-18 11:34:31 +02:00
PostHog Bot
d87e4350a1
chore(deps): Update posthog-js to 1.77.0 (#17085) 2023-08-18 10:59:52 +02:00
Li Yi Yu
beec9074d4
feat(surveys): exclude users who have already seen survey wait period (#17064)
* add condition value for wait period

* do not allow for wait periods under 1 day

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-17 15:14:24 -04:00
Raquel Smith
4e53dc74b7
feat: sync distinct ids with billing (#16919)
* update billing distinct IDs on user join/leave org

* temporarily update on usage report send
to update existing orgs

* abstract a bit more

* update existing tests

* add billing_manager test for the method

* Update query snapshots

* specify date

* move outside the transaction

* cache the instance license

* use new instance license method in other places

* fix mypy and some tests

* Update query snapshots

* Update query snapshots

* fix caching in tests

* constrain try/except

* Update query snapshots

* make sure we hae license before update billing

* Update query snapshots

* Update query snapshots

* set to false if no instance license

* fix date

* Update query snapshots

* use correct var

* Update UI snapshots for `chromium` (1)

* clear license cache before running tests

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* fix tests

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-17 11:41:25 -07:00
Ellie Huxtable
ecf7a959dd
fix: Docker compose not picking up env for some reason (#17079)
Docker compose not picking up env for some reason

Will this help?
2023-08-17 15:48:15 +00:00
Tiina Turban
f2ff653a33
chore: metrics for step completions within webhooks (#17056) 2023-08-17 17:07:56 +02:00
Tiina Turban
3c40c8610b
chore: Allow impersonated users to trigger historical exports (#16979) 2023-08-17 16:20:43 +02:00
Ellie Huxtable
377018539d
feat: Use buildjet for ci-backend (#17069)
* ci-backend runs-on -> buildkite

* Use buildjet runners

* Go away old cache

* Fix deps

* Ensure to update the package registry

* Use bigger runners for django tests

* Use ARM for jobs with less concurrency

* Revert "Use ARM for jobs with less concurrency"

This reverts commit bcbf0d7524.

* Fix typo
2023-08-17 15:16:43 +01:00
Xavier Vello
4b5e41d2cc
chore(plugin-server): add tags to redisGet/Set (#17057) 2023-08-17 16:07:17 +02:00
Tomás Farías Santana
74267b0308
fix: Do not parse elements_chain (#17073) 2023-08-17 12:18:32 +00:00
Neil Kakkar
4aeb6d6577
fix(decide): Log all exceptions (#17061) 2023-08-17 10:29:39 +00:00
Tiina Turban
233aa15f2a
chore: Log for failing webhooks (#17062) 2023-08-17 11:30:43 +02:00
Ben White
c93426ae10
fix: Min value for Blobby lag (#17065) 2023-08-17 09:42:32 +01:00
David Newell
017d2fa041
fix: only handle external links (#17063)
only handle external links
2023-08-17 09:21:50 +01:00
Marius Andra
c051d68d4e
feat(data-tables): column configurator on other event tables (#17039)
* feat(data-tables): column configurator on other event tables, persistence setting

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* build schema

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 20:17:20 +02:00
David Newell
68cdc7f2b8
chore: remove Typography (#17024)
remove typography
2023-08-16 20:09:45 +02:00
Tomás Farías Santana
4edcc0fe99
feat: Create BatchExport from Export App (#16927)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 18:01:18 +00:00
Eric Duong
bc02bef1af
feat(data-warehouse): s3 global join/IN (#16820)
* backend basics for a view

* view parsing "working"

* add tests and make view name unique

* adjust tests

* api tests and edge cases

* typing

* try comment

* fix migration check

* 3 separate tabs

* working create and view view

* add validity checker

* update test

* update test

* Update query snapshots

* Update query snapshots

* add types

* update schema

* Update UI snapshots for `chromium` (2)

* update copy

* adjustments

* view definition

* adjust buttons and ux

* dummy

* edge case for IN operator on s3 table

* remove unnecessary migration

* remove console log

* naming

* Update query snapshots

* Update query snapshots

* update test

* modify statements

* remove ctes and use subquery

* Update query snapshots

* Update query snapshots

* use global join if left is events and right is s3

* add null check

* fix test views

* update tests

* abbreviate test

* abbreviate test

* Update test_s3_table.py

* Update test_database.py

* move IN handling from printer to resolver

* move to resolver

* short circuit

* explicit type check

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 14:00:42 -04:00
David Newell
0df3ce722e
fix: notebooks inserter icon (#17060) 2023-08-16 16:30:38 +01:00
Ben White
6f71de3574
fix: Crash on S3 upload issues (#17059) 2023-08-16 15:51:50 +01:00
Tomás Farías Santana
aa6b381ded
fix: Add support for Snowflake legacy export apps schema in BatchExports (#16928)
Co-authored-by: Tiina Turban <tiina303@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 16:07:40 +02:00
Ben White
e1dc70e635
feat: Batch Exports UI rework (#16926) 2023-08-16 15:06:09 +01:00
David Newell
8394a77b66
feat: support links as marks (#16805)
* Merge backlinks with links

* async node paste rule experiments

* paste inline nodes

* Basic mark based link

* cleanup imports

* click handlers

* click handling

* cleanup

* fix async typing

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 14:45:53 +01:00
Tiina Turban
a7db71670c
chore: enable app metrics for all (#16563) 2023-08-16 15:19:33 +02:00
Paul D'Ambra
8b174819e4
feat: notebook filtering by recordings presence (#16955)
* add filtering by recording

* document for API docs, only show API docs for Notebooks when in debug

* Update query snapshots

* add not working button

* wat

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update query snapshots

* 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 `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* wat

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Update query snapshots

* move logic interactions closer to thome

* Update query snapshots

* Update query snapshots

* wait for the editor before acting on it

* add a method for getting an arbitrary node position

* fix

* Update query snapshots

* Update UI snapshots for `chromium` (2)

* why an array, yesterday me?

* fix

* contains style API filtering

* without no-op clicks

* fix

* Update UI snapshots for `chromium` (2)

* refresh notebook comment button on notebook created

* inline variable

* removes speculative change

* move knowledge around

* add timestamps to existing book in timestamp order

* Fi

* add a cypress test

* Update UI snapshots for `chromium` (2)

* somet stuff

* Update query snapshots

* slightly neater waiting for the editor

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* do we know editor is going to be present?

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* witha finally?

* add todo

* handle commenting when already in a notebook

* allow in-notebook commenting to insert in timestamp order

* Update UI snapshots for `chromium` (1)

* Update UI snapshots for `chromium` (1)

* feat: add examples and extend notebook backend filtering to be more generic (#17032)

* feat: add examples and allow relatively generic notebook filtering

* depluralise and absence is truthy

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 13:00:25 +00:00
Li Yi Yu
31749e197b
fix(experiments): secondary results with average count fix (#16874)
Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2023-08-16 12:53:52 +00:00
Neil Kakkar
05d36c2fa7
fix(flags): Ensure deleting dashboard doesnt delete flag (#17054) 2023-08-16 13:41:14 +01:00
Michael Matloka
52967ecda7
fix(insights): Properly use cached results when query restored (#16974) 2023-08-16 13:53:23 +02:00
Xavier Vello
5f941b4303
fix(ingestion): run processEvent apps on overflow and historical (#17049) 2023-08-16 13:38:16 +02:00
Ben White
a8ade37de5
fix: Recording ingestion metrics with proper lag metric (#17048) 2023-08-16 12:23:02 +01:00
Thomas Obermüller
2831b4c64f
fix(insights): fix refresh link z-index (#17047) 2023-08-16 13:10:01 +02:00
Michael Matloka
e74b2e7d46
fix(insights): Fully support aggregated session duration (#17043)
* fix(insights): Fully support aggregated session duration

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 13:07:19 +02:00
Neil Kakkar
c135dd78ae
chore(billing): Ensure we bill old clients for local evaluation (#17053) 2023-08-16 10:56:21 +00:00
Ben White
df3ba837b1
fix: Fix keying of kafka partition based on session_id (#17052) 2023-08-16 10:40:35 +00:00
Neil Kakkar
d08426d7cb
feat(flags): Integrates flag autocapture deeply into other components (#16982) 2023-08-16 10:07:46 +00:00
Michael Matloka
22ecc24847
fix: Fix switching back to previous project after auto-switch (#16941)
* fix: Fix switching back to previous project after auto-switch

* Remove cache updates that mess something up

This was a side change anyway.

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

* Remove weirdly not working response body assertion

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-16 10:00:02 +02:00
Li Yi Yu
d83cce9920
fix(surveys): do not show header for results insight viz (#17040) 2023-08-15 16:27:19 +00:00
Marius Andra
59eca63f30
fix: Revert "feat(hogvm): hogvm bytecode action matching in the plugin server" (#17036)
Revert "feat(hogvm): hogvm bytecode action matching in the plugin server (#16937)"

This reverts commit e0d2582e32.
2023-08-15 16:22:19 +01:00
Marius Andra
e0d2582e32
feat(hogvm): hogvm bytecode action matching in the plugin server (#16937) 2023-08-15 15:37:19 +02:00
Marius Andra
b2b71121fa
feat(hogql): compile the not(), and() and or() functions (#17014) 2023-08-15 13:24:04 +02:00
David Newell
62e93249ce
fix: pause video & audio elements along with replay playback (#16978)
* fix: pause video elements along with replay playback

* fix typing

* add audio and video elements

* Add initial state
2023-08-15 10:54:42 +01:00
Neil Kakkar
f6e5567a2d
revert: "chore(flags): Try reverting cohorts cache" (#17029)
Revert "chore(flags): Try reverting cohorts cache (#17021)"

This reverts commit a8bf51b209.
2023-08-15 10:53:02 +01:00
David Newell
d321b0c9df
fix: account for urls that do not use the slashed protocol (#17011)
* account for urls that do not use the slashed protocol

* test case for protocols on backend

* Update query snapshots

* Update query snapshots

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-15 09:36:52 +01:00
David Newell
35ff97f086
chore: proper notebook types (#16987)
* chore: add types to notebook nodes (first pass)

* making progress

* add types to every node attribute

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `webkit` (2)

* remove comment

Co-authored-by: Paul D'Ambra <paul@posthog.com>

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2023-08-15 09:27:46 +01:00
Robbie
bee0b07c41
feat(insights): Add filtering properties on labels (#16943)
* feat(insights): Add filtering properties on labels

* Add tests for event property querying using an alias

* Make comments bidirectional

* Revert trying to be clever with unknown

* Fix failing tests

* Improve query performance for property filtering

* Improve efficiency of querying properties by alias

* Remove old property name alias code

* Add code to output PROPERTY_NAME_ALIASES

* Add script for regenerating property name aliases
2023-08-15 09:10:11 +01:00
Paul D'Ambra
0a29d780c1
chore: split summary analytics (#17028) 2023-08-15 08:08:11 +00:00
Paul D'Ambra
d3ea3a2b40
feat: remove superceded listing mechanisms (#16602)
* support hogql in listing by replay summary

* remove backend listing alternatives

* remove additional listing from the front end

* Remove final feature flag

* bonfire of the flagities

* fix

* fix

* ah, tests need fixing - WIP

* have to change how we check metadata

* remove a breakpoint()

* Update query snapshots

* fix test

* Update query snapshots

* fix

* grrrr

* Update query snapshots

* slightly flatter inheritance structure

* fix

* Update query snapshots

* 🤷

* Update query snapshots

* Update query snapshots

* Update query snapshots

* fix tests

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-15 08:59:17 +01:00
Li Yi Yu
6a956a7683
fix(surveys): add hogql table for mcq results (#17025) 2023-08-15 02:53:53 +00:00
Thomas Obermüller
d45198c8ce
feat(insights): move advanced options to "more" menu (#16858)
* funnel with wrapping canvas label(s)

* move some options to advance menu

* fix hiding advance menu when no options available

* spacing

* display count

* append filter to stack view component

* move legend button into more menu

* Remove `default-dark` and rename "More" to "Options"

* Restore original funnel padding

* Pull out compare to previous period

* Reduce spacing

* Fix color of highlighted sticky table column

* Simplify

* Update UI snapshots for `webkit` (2)

* Update UI snapshots for `chromium` (2)

* Disambiguate time-series line charts

---------

Co-authored-by: Michael Matloka <michal@matloka.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-08-14 18:41:47 +00:00
Neil Kakkar
7b12674c2c
revert(flags): revert going to replica for setting cache (#17023) 2023-08-14 16:57:37 +00:00