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

9842 Commits

Author SHA1 Message Date
posthog-contributions-bot[bot]
b705f2b7de
chore(contributors): 🤖 - Add gpetrioli as a contributor 🎉 (#12927) 2022-11-23 11:22:37 +00:00
Alex Gyujin Kim
4bb104f417
fix(recordings): disable save changes button if there are no changes (#12922) 2022-11-23 01:25:57 +00:00
Alex Gyujin Kim
2b6675d67f
fix(recordings): remove save changes button from static playlist (#12921) 2022-11-23 01:15:55 +00:00
Alex Gyujin Kim
18dd44fdc5
fix(recordings): fix infinite reloading recordings list page (#12920) 2022-11-23 01:10:20 +00:00
Michael Matloka
635498cea4
perf: Optimize deleting CohortPeople (#12919) 2022-11-23 00:32:43 +00:00
Michael Matloka
5764ffd417
fix: Fix AsyncDeletions for projects and organizations (#12817)
* fix: Ignore duplicate AsyncDeletions and roll back on failure

* Remove transaction

* Roll back `delete_person` name update

* Don't cascade-delete async deletions with teams

* Mark column rename as safe

* Update test_person.py
2022-11-23 00:11:54 +00:00
Michael Matloka
c4b2fec3b6
chore: Include event_error_id in 500 error responses (#12895) 2022-11-23 00:54:05 +01:00
Marius Andra
558234a881
feat(data-exploration): typed nodes and frontend querying interface (#12745)
* draft of node interfaces

* add flag and endpoint

* bit of cleanup

* route insights through a query

* stories

* add a few storeis

* start of some kind of frontend routing

* query/response

* add events queries

* fix docs

* query scene

* highlight active

* cosmetic fixes

* fix url

* builtin test

* feat(frontend): show TS errors when running yarn start

* feat(insights): split up type for PropertyFilter (#12827)

* edit without triggering run

* actually show some data

* use the monaco editor

* editable json schema for queries

* autoformat

* split query editor from scene

* global types

* more messages

* extract nodes

* split events table node

* serialize compact json

* rename things

* clean up

* setQuery

* be a bit more helpful in the error

* fix api key type

* add minimap

* wrap with error boundary

* full screen stories

* bring back data nodes, type responses, fix EventType

* clarify what changed

* rename to schema.json

* post merge mangling

* make it future proof

* use a const

* refactor insightsLogic query, remove SavedInsightQuery, annotate things

* remove code that is not yet there

* fix
2022-11-22 23:09:45 +00:00
Paul D'Ambra
711fdc6c1b
fix: is cached blocks some updates (#12894)
Problem
https://sentry.io/organizations/posthog/issues/3749964259/?query=is%3Aunresolved+is_cached&referrer=issue-stream&statsPeriod=14d

we added is_cached but the dashboard API uses DRF's initial data and so doesn't know that it's a readonly field

Changes
pops is_cached from the data because we don't need to store it...
2022-11-22 22:26:45 +00:00
Alex Gyujin Kim
d426e63a2b
fix(recordings): empty static playlists should return no recordings (#12916) 2022-11-22 19:33:09 +00:00
PostHog bot
414b4786b4
chore(deps): Update posthog-js to 1.36.0 (#12915) 2022-11-22 18:57:34 +00:00
Michael Matloka
8f5bfe1f09
fix(tz-label): Restore .tz-label-popover (#12910) 2022-11-22 18:27:21 +00:00
Yakko Majuri
e1afc7ba75
feat(plugins-schedule): add clear metric for number of scheduled tasks executed (#12913) 2022-11-22 18:07:52 +00:00
Karl-Aksel Puulmann
708116aef6
feat(time-to-see-data): Save filter object to metrics_query_log table (#12911)
Save filter object to metrics_query_log table
2022-11-22 17:31:55 +00:00
posthog-contributions-bot[bot]
d6d9233c87
chore(contributors): 🤖 - Add MoSattler as a contributor 🎉 (#12887) 2022-11-22 17:18:43 +00:00
Raquel Smith
ef4c806a92
feat(signup): add experiment for signup product details (#12898)
* Add experiment for signup product details

* Show test version on test, not on not test

* Rename the feature flag
2022-11-22 08:41:29 -08:00
Raquel Smith
181b8faba1
test(signup): test social login organization form (#12880)
Test the social login organization form
2022-11-22 08:41:17 -08:00
Karl-Aksel Puulmann
c5f19d8443
feat(time-to-see-data): ClickHouse query tagging (#12884)
* Decouple tagging from statsd metrics

* Add tags as JSON to log_comments in system.query_log

* tag by route_id

* Add insight_sync_execute utility

* Add filter.query_tags() and tag by number of dates

* Tag breakdown and trends with props

* rename, funnel correlations

* Tag actors queries

* Tag property_values query

* Tag get_earliest_timestamp query

* Tag paths query

* Tag retention query

* Tag stickiness query

* Tag trends formula query

* Update threading query a bit

* Tag retention actors query

* Tag lifecycle people query

* Tag funnel queries

* Add breakdown_by query tag

* Tag queries with more things

* Resolve a conflict

* Resolve circular imports

* Reformat

* Fix trends

* Remove corner casing for tags

* Tag graphs with user

* client_query_id tags

* More generic type

* Team access iteration

* Update test

* Add simple MV

* Fix date ranges

* Add comment to decorator
2022-11-22 13:38:57 +00:00
Joe Martin
23cce26ed7
fix: Broken link in JS flow (#12790)
fix
2022-11-22 09:26:01 +00:00
Karl-Aksel Puulmann
67e687eeba
feat: Update auto refresh threshold for dashboards to 20h (#12897)
Update auto refresh threshold for dashboards
2022-11-22 09:02:17 +00:00
Alex Gyujin Kim
dccbde23b0
feat(recordings): static playlists (#12775) 2022-11-21 19:12:54 -05:00
Michael Matloka
51998650b4
fix(rate-limit): Fix rate limiting for non-project-based endpoints (#12892) 2022-11-21 18:13:56 +01:00
Paul D'Ambra
4716878857
fix: edit queries should be cacheable (#12862)
* fix: edit queries should be cacheable

* add a more specific test

* can remove the method not just the decorator

* add a comment to the regression test
2022-11-21 15:35:44 +00:00
Michael Matloka
2f02f33122
fix(error-toast): Choose error message more intelligently (#12890) 2022-11-21 15:26:00 +00:00
Paul D'Ambra
b75744e303
chore: better error when json is none (#12889)
Problem
If the csv exporter encounters a response from the API whose response.json() return None (which is a valid outcome for that method). We log an error because we still try and decode it as JSON.

Changes
raises an error that includes the response and its response text
2022-11-21 15:00:40 +00:00
Michael Matloka
c7e9071d77
fix(admin): Optimize organization and user pages (#12888) 2022-11-21 14:10:25 +00:00
Michael Matloka
4e363a9f98
fix(dashboards): Remove "UTC" indicator, which is not true anymore (#12874) 2022-11-21 12:48:38 +01:00
Paul D'Ambra
bc9caf3734
chore: allow elements limit to be set from URL (#12680)
* chore: allow elements limit to be set from URL

* must be anumber

* it wasn't necessary in CI 🤷
2022-11-21 11:58:02 +01:00
Thomas Obermüller
4f04363cdb
feat(insights): reoganize chart filter options (#12801)
* feat(insights): reoganize chart filter options

* refactor(insights): remove leftover code in chart filter
2022-11-21 11:18:53 +01:00
Marius Andra
d63486718e
feat(insights): refactor insightLogic loadResults (#12878)
* remove indirection

* get bytes from response

* not needed

* fix funnelLogic

* fix dashboards

* rename raw to response

* rename raw to response

* rename raw to response, fix error with getting length in dashboardLogic.tsx
2022-11-21 10:03:39 +01:00
Karl-Aksel Puulmann
4ea25abbab
chore(time-to-see-data): Make ClickHouse query tagging thread-safe (#12861)
* chore(time-to-see-data): Make query tagging thread-safe

* Resolve test fail

* Remove excessive commenting

* benchmark helpers
2022-11-21 09:16:22 +02:00
posthog-contributions-bot[bot]
e449db131c
chore(contributors): 🤖 - Add Growthfyi as a contributor 🎉 (#12882) 2022-11-20 21:28:48 +00:00
Raquel Smith
fc05c4277f
feat(signup): include signup role select on confirm org screen (#12879)
Include signup role select on confirm org screen
2022-11-19 17:26:24 +00:00
Marius Andra
8d2d88ebe8
chore(frontend): upgrade jest (#12866)
* upgrade to jest 27

* mock billing errors

* upgrade to 28

* do that thing where I remove a broken test and hope nobody catches that in a review

* upgrade to 29

* update snapshots

* change to esbuild-jest

* fix config

* make tests compatible with esbuild
2022-11-19 13:09:00 +01:00
Raquel Smith
34d95bc6d4
fix(signup): rename the test logic (#12873)
* Rename the test logic

* Fix bad import

* Rename signupLogicTest to signupTestLogic

* Rename signupLogic to signupControlLogic
2022-11-18 16:11:34 -08:00
Raquel Smith
12287da2b4
fix(signup): hide the entire art wrapper on mobile (#12872)
Hide the entire wrapper on mobile
2022-11-18 14:34:45 -08:00
posthog-contributions-bot[bot]
4346456817
chore(contributors): 🤖 - Add BTruer as a contributor 🎉 (#12870) 2022-11-18 16:27:24 +00:00
Thomas Obermüller
fca30e92b9
feat(charts): improve value chart ux for many breakdown values (#12822) 2022-11-18 17:10:52 +01:00
Thomas Obermüller
1102b49184
fix(style): fix saved insights icon spacing (#12868) 2022-11-18 16:57:07 +01:00
Tiina Turban
7b54900af6
fix: 0007 test to not re-use distinct id after person deletion (#12867) 2022-11-18 16:09:49 +01:00
Michael Matloka
83ba30e6e3
chore(error-boundary): Present more relevant info in case of error (#12865) 2022-11-18 14:51:00 +01:00
Karl-Aksel Puulmann
2b486d0a5f
feat(time-to-see-data): Track dashboard loading time in ClickHouse (#12859)
* Track dashboard loading times

* Track more information on dashboard loading

* Resolve style warning

* Fix a test

* Fix backend test

* PR feedback
2022-11-18 14:59:09 +02:00
Harry Waye
3a9e0370cd
chore(events): increase timeout for kafka events producer (#12864)
* chore(events): increase timeout for kafka events producer

It was 1 second, this updates it to 10 seconds. We're getting some
errors in the logs about this so I'm just going to increase it, but have
also made configurable such that we can tweak it in the future.

* wip

* wip

* wip
2022-11-18 12:52:49 +00:00
Michael Matloka
1bfd6d6d17
chore(insights): Track all aggregated_values being NaN or Infinity (#12863) 2022-11-18 13:29:52 +01:00
Harry Waye
4bfac6e22a
chore(events): remove conditional to events Kafka ack (#12848)
* chore(events): remove conditional to events Kafka ack

I added a safety measure while rolling out the acking of Kafka produce
requests. This is no longer needed.

* wip
2022-11-18 11:32:23 +00:00
Michael Matloka
190f275700
fix: Purge CohortPeople rows before purging Person rows (#12857)
* fix: Purge CohortPeople rows before purging Person rows

* Fix imports
2022-11-18 10:49:13 +01:00
Karl-Aksel Puulmann
b3c00f4324
feat(time-to-see-data): Track insight loading time in ClickHouse (#12838)
* refactor: Move signal argument into an options object

* JS_CAPTURE_TIME_TO_SEE_DATA

* quote ON CLUSTER for clusters with hyphens

* WIP: Capture time to see data in insights

* Stricter typing

* Extract dictionary source construction

* Set up (unmigrated) file with schema for time_to_see_data metrics

* Cleanup

* Reformat file

* Change dictionary settings

* Revert async migration change
2022-11-18 10:50:05 +02:00
Paul D'Ambra
b0a4c45fff
feat: hide description in card meta if there isn't one (#12821) 2022-11-18 08:49:06 +00:00
Michael Matloka
cfcc7671d3
chore(admin): Replace direct password change form with reset link (#12852) 2022-11-18 00:15:48 +01:00
Harry Waye
2c6a31c31b
ci(plugin-server): make function test output less confusing (#12847)
* ci(plugin-server): make function test output less confusing

Redirect logs to file, output only on test failure.

* kick ci

* put setup in group

* wip

* wip

* wip
2022-11-17 18:32:00 +00:00