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

7103 Commits

Author SHA1 Message Date
Yakko Majuri
67ba234237
add ingestion metric using increment (#8779) 2022-03-01 11:47:10 +00:00
Karl-Aksel Puulmann
401e6f5932
Make CLICKHOUSE_REPLICATION work correctly (#8730)
* Refactor table engine logic

This brings us closer to having production and local schemas in sync

* Raise an error if running async migration but events table is distributed

* Use django.conf settings

* Remove unneeded debug code

* Make EVENTS_TABLE_MV_SQL lazy

* Make events data table name dynamic

* Make event inserts, mv table lazy

* Refactor table engines code (again)

* Schema for writable_events and events distributed tables

* Session recordings sharding support in schema

* test_schema cleanup

* fixup session recordings schema

* Fix CLICKHOUSE_REPLICATED migrations

* Skip ch migration 0016 on CLICKHOUSE_REPLICATED

* Search the right db

* Do operations in right order for session recording events

* CREATE DATABASE before the first migration

* Add parens
2022-03-01 13:08:53 +02:00
Michael Matloka
d331a61092
Fix Popup animation when the overlay is above reference (#8765) 2022-03-01 10:06:10 +01:00
Michael Matloka
29b183c9ab
Add Figma link reminder to PR template (#8764) 2022-03-01 08:54:48 +01:00
Paolo D'Amico
f6d26ccb71
Release 1.33.0 (#8773) 2022-02-28 17:28:23 -06:00
Rick Marron
792373810a
Add project homepage (behind FF) (#8711)
* add project homepage behind ff

* update ff owner

* clean up merge
2022-02-28 13:32:02 -08:00
Paolo D'Amico
e08976e88a
Fix async migrations banner on Cloud (#8774) 2022-02-28 21:31:04 +00:00
Tiina Turban
36f9a44bc9
Async migrations to have separate status (#8772)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-02-28 14:20:56 -06:00
Yakko Majuri
7f2a2b23cd
Add link to async migrations (#8762)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-02-28 13:43:59 -06:00
Michael Matloka
fadedacbd6
Fix determination of what dashboard collaborators have _implicit_ access (#8769) 2022-02-28 17:53:57 +00:00
Tim Glaser
90d30c3e60
Plugins: replace @current with team_id in api calls (#8751)
* Plugins: replace @current with team_id in api calls

* prettier

* Fix test

* reallyf ix test
2022-02-28 17:29:01 +00:00
Yakko Majuri
378809998a
track when a plugin drops an event so we don't ingest it (#8767)
* track when a plugin drops an event so we don't ingest it

* Update plugin-server/src/main/ingestion-queues/ingest-event.ts

Co-authored-by: Tiina Turban <tiina303@gmail.com>

Co-authored-by: Tiina Turban <tiina303@gmail.com>
2022-02-28 17:21:15 +00:00
Tim Glaser
c1a2bad819
Add annotations to bar chart (#8747)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2022-02-28 16:58:30 +00:00
Alex Gyujin Kim
019c1f203a
Remove untyped Line Graph version (#8705)
* remove FF

* typecheck
2022-02-28 15:02:04 +01:00
Marius Andra
f7c133e8fc
Include a link to coding conventions (#8744)
* include a link to coding conventions, change some other words

* Replace "Follow" with "Stay up-to-date-with"

Co-authored-by: Michael Matloka <dev@twixes.com>
2022-02-28 09:17:25 +00:00
Li Yi Yu
15c2118a3f
Experiment secondary metric results UI (#8506)
* split files up

* clean up various experiment states

* return secondary results with results

* fix funnel add step, remove required marks, display metrics results properly

* linting

* secondary metrics when no results yet

* fix yucky loading in between experiment states

* typescript fix

* undo backend changes

* load secondary metrics one at a time and spinner

* prettier and fix test

* fix backend test

* linting

* fix spinner

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
2022-02-27 11:35:13 -05:00
Paul D'Ambra
af824a778b
Tidy up web performance page sections (#8758)
* add info to web perf page header

* add collapsing panel around dumped performance json
2022-02-27 14:05:35 +00:00
Paul D'Ambra
839fdfe681
set decimal places to 1 for all numbers in web performance pop over (#8757) 2022-02-27 12:11:56 +00:00
Tim Glaser
e714a81300
Organize api docs tags differently (#8752) 2022-02-25 15:35:07 +00:00
Karl-Aksel Puulmann
d7d2bcb7a3
Fix python manage.py migrate_clickhouse --plan (#8741)
Currently this would throw on a fresh install with an error similar to

```
│ posthog-events Migration would get applied: 0024_materialize_window_and_session_id                    │
│ posthog-events Traceback (most recent call last):                                                     │
│ posthog-events   File "manage.py", line 21, in <module>                                               │
│ posthog-events     main()                                                                             │
│ posthog-events   File "manage.py", line 17, in main                                                   │
│ posthog-events     execute_from_command_line(sys.argv)                                                │
│ posthog-events   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", li │
│ posthog-events     utility.execute()                                                                  │
│ posthog-events   File "/usr/local/lib/python3.8/site-packages/django/core/management/__init__.py", li │
│ posthog-events     self.fetch_command(subcommand).run_from_argv(self.argv)                            │
│ posthog-events   File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 3 │
│ posthog-events     self.execute(*args, **cmd_options)                                                 │
│ posthog-events   File "/usr/local/lib/python3.8/site-packages/django/core/management/base.py", line 3 │
│ posthog-events     output = self.handle(*args, **options)                                             │
│ posthog-events   File "/home/posthog/code/ee/management/commands/migrate_clickhouse.py", line 41, in  │
│ posthog-events     self.migrate(CLICKHOUSE_HTTP_URL, options)                                         │
│ posthog-events   File "/home/posthog/code/ee/management/commands/migrate_clickhouse.py", line 57, in  │
│ posthog-events     sql = getattr(op, "_sql")                                                          │
│ posthog-events AttributeError: 'RunPython' object has no attribute '_sql'
```

This is due to the command not working with `RunPython` commands.
2022-02-25 16:51:22 +02:00
Tim Glaser
e44757a87d Fix documentation sentry errors 2022-02-25 14:26:43 +00:00
Eric Duong
a25caf50dd
Static cohort api return (#8735) 2022-02-24 19:08:23 +01:00
Guido Iaquinti
8c355b5a37
Python: use version 3.8.12 (#8677) 2022-02-24 17:49:55 +01:00
Marius Andra
7994c31dfa
validate redirect URL (#8729) 2022-02-24 10:13:21 +01:00
Yakko Majuri
ec9b6db963
fix resume api for async migrations (#8739)
* fix resume api for async migrations

* update

* Update posthog/async_migrations/runner.py

* Update posthog/async_migrations/runner.py

* black
2022-02-24 10:13:01 +01:00
Alex Gyujin Kim
12f87e2233
Fix formatting of retention line graph (#8731) 2022-02-24 09:58:00 +01:00
Yakko Majuri
cc4e57f0c1
add f string to optimize (#8740) 2022-02-24 09:34:41 +01:00
Rick Marron
bcdd49a93a
Fix persons page refresh loop: take 2 (#8688)
* Fix recording page refresh loop: take 2

* clean up
2022-02-24 00:57:14 +01:00
Neil Kakkar
65b6c6448a
Release experimentation (#8732) 2022-02-23 16:14:37 +01:00
Michael Matloka
b679bc3d68
Fix dashboard permissions (#8734)
* Fix dashboard permissions

* Use `===`
2022-02-23 10:33:21 +00:00
Michael Matloka
cff1152e25
Add dashboard-permissions to PERSISTED_FEATURE_FLAGS (#8727)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2022-02-23 11:13:05 +01:00
Alex Gyujin Kim
ca00edfa96
React child weirdness (#8724) 2022-02-23 10:52:46 +01:00
Alex Gyujin Kim
2215733e7d
Add spacing for Just Exploring - Onboarding (#8728) 2022-02-23 10:52:07 +01:00
Paul D'Ambra
cca06cc723
update django to satisfy dependabot (#8722) 2022-02-23 09:45:30 +00:00
Rick Marron
3f6c472155
Fix recordings on funnel trends (#8621)
* fix recordings on funnel trends

* update tests

* update snapshots
2022-02-23 01:42:55 -08:00
Paolo D'Amico
9496394952
Remove & clean onboarding-2822 (#8707) 2022-02-23 08:22:01 +01:00
Yakko Majuri
33e09c3a9c
basic next url validation (#8717)
* basic next url validation

* Update frontend/src/scenes/authentication/loginLogic.ts

* Update frontend/src/scenes/authentication/loginLogic.ts
2022-02-22 23:54:31 +00:00
Karl-Aksel Puulmann
9769ef0b5d
Improve backend CI (update .test_timings, run against different CH version) (#8708)
* Make clickhouse server image version configurable

* Attempt to use a reusable workflow for backend tests

* Try a composite action

* Add missing shell: bash

* Temporarily remove a step

* Cache id parameter

* Include the action when needing to rerun

* Move checking migrations to separate file

This didn't work in composite actions tests and slows down every
parallelized test execution for no reason. This should have been
separate in the first place.

* Rename job

* Improve check-migrations

* Start stack in the new job

* Remove shell

* Solve flaky test

* Remove unused file

* Create a test timings job

* Use checkout@v2 - https://github.com/cds-snc/github-actions/issues/23

* Ignore coverage files

* Save backend test durations

* Install pytest-split

* Clean up ci-backend

* Move actions code around

* wording improvement

* Save backend test durations

* Add a comment

* Make it possible to run tests with a different clickhouse version

* Remove debugging code

* Fix typo

* Boolean inputs please work

Fixes overeager test running as per https://github.com/actions/runner/issues/1483

Co-authored-by: PostHog Bot <hey@posthog.com>
2022-02-22 17:06:04 +02:00
Yakko Majuri
aef30d9a41
emit piscina task to reloadSchedule on reload call (#8713) 2022-02-22 15:25:00 +01:00
Yakko Majuri
64eef6d0a1
avoid sending another reloadSchedule task on plugin worker setup (#8694)
* avoid sending another reloadSchedule task on plugin worker setup

* update tests
2022-02-22 13:03:28 +01:00
Yakko Majuri
e4ca77f3f8
fix ch dlq tags error (#8696)
* fix ch dlq tags error

* Update posthog/api/capture.py
2022-02-22 12:16:41 +01:00
Guido Iaquinti
1d1d6d335c
flake8: enable E266,W291,W293,W391,W601 (#8699) 2022-02-21 15:47:27 +01:00
Marius Andra
afeeceddfd
Expand taxonomic filter infinite lists, hide properties not seen on event (#8444)
* option to expand taxonomic filter infinite lists

* make the button blue, update copy

* remove duplicate

* test for is_event_property filter

* fix test

* refactor fetching

* test expandable infinite list

* fix clicking on "$time" in event prop cypress

* remove debug

* fix data-attr

* clean up shared attrs

* test with flag

* use "scoped endpoint" instead of "extended"

* don't click on skeleton

* describe scoped endpoint

* Revert "describe scoped endpoint"

This reverts commit 8450b66ef5.

* describe scoped endpoint

* remove comment

* type div props

* pluralize list

* cleaner variable names

* make sure there's something there

* pluralize some more

* don't tab if we can select something in the list
2022-02-21 08:11:47 +01:00
Tim Glaser
ee71311991
noop 0214 (#8704)
* noop 0214

* No opp tests and ee migration
2022-02-18 21:42:38 +00:00
Alex Gyujin Kim
a88766300e
Add tags back migrations (#8701)
* add tags back migrations

* make tags default None
2022-02-18 21:29:16 +00:00
Alex Gyujin Kim
ca2d7aa411
fix tags (#8703) 2022-02-18 19:21:15 +00:00
Michael Matloka
bfd6af772b
Always remove trailing slash via sceneLogic (#8693)
* Always remove trailing slash via `sceneLogic`

* Update Cypress suite

* Use `replace` instead of `slice`

* Ignore root path
2022-02-18 19:56:07 +01:00
Tim Glaser
e04f2692b0
fix tags issue (#8702)
* fix tags issue

* fix types

* fix
2022-02-18 18:42:31 +00:00
James Greenhill
a451d2f2ce
Hobby: Enable deploying hobby stack behind a firewall with no ACME TLS (#8687) 2022-02-18 10:28:28 -08:00
James Greenhill
24eb2666bb
hobby: Wait for ClickHouse and for Postgres before starting (#8686) 2022-02-18 10:27:45 -08:00