0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-22 08:40:03 +01:00
Commit Graph

8917 Commits

Author SHA1 Message Date
Ben White
48811bfb3b
feat: Added compound launch config for vscode (#11501) 2022-08-25 16:30:52 +00:00
Emanuele Capparelli
b3ed063e7a
fix: remove data tooltip, improve prompt rules, add caching fix (#11495)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress

* add cache prefix

* Update frontend/src/lib/components/LemonButton/More.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-08-25 16:25:59 +00:00
Ben White
3b1fe40828
feat: Lemonify Signup/Login (#11266) 2022-08-25 15:07:44 +01:00
Alex Gyujin Kim
6d4991cc8c
fix(data-m): inconsistent alerts (#11473)
* fix(data-m): inconsistent alerts

* refactor to alertmessage

* copy
2022-08-25 14:45:01 +01:00
Neil Kakkar
565851626a
chore: Use instance setting for self-hosted person on events (#11472) 2022-08-25 14:28:41 +01:00
Marius Andra
59432fe539
refactor(frontend): remove eventDefintionsModel (#11467)
* feat(data-management): add custom events list

* remove dead code

* fix test

* assert what matters

* this seems flakey, even locally, though the interface shows the right data locally... testing a timeout

* remove the need to double check $event === $event from the db

* remove eventDefinitionsModel

* new script

* fix test

* it does not do this anymore
2022-08-25 15:20:50 +02:00
Paul D'Ambra
4f1051512b
fix: toolbar toast css needs to attach variables to :host not :root (#11494)
* fix: no need to import all of toastify css

* fix: toolbar toast relies on variables being attched to :host

* no need to override more toast styles. handled by lemon toast

* no need to override more toast styles. handled by lemon toast
2022-08-25 14:02:25 +01:00
PostHog bot
24873cc02f
chore(deps): Update posthog-js to 1.29.2 (#11497) 2022-08-25 13:20:27 +02:00
Marius Andra
7cf3f71215
feat(data-management): add custom events list (#11463)
* feat(data-management): add custom events list

* remove dead code

* fix test

* assert what matters

* this seems flakey, even locally, though the interface shows the right data locally... testing a timeout

* new script

* fix test

* remove frontend changes (PR incoming)

* describe meaning behind symbols
2022-08-25 11:00:34 +00:00
Harry Waye
581579ac07
ci(deploy): do not push static assets to S3 (#11493)
We already push the assets prior to deploying to EKS. These assets were
being used by the ECS posthog-web deployment and as such are not
relevent any more.

Should save a little bit of time on deploy.
2022-08-25 09:59:17 +00:00
Karl-Aksel Puulmann
3cdf20898a
fix(plugin-server): don't fetch timestamp boundaries on plugin-server boot (#11491)
* fix(plugin-server): don't fetch timestamp boundaries on plugin-server boot

Historical exports use timestamp boundaries (queried from CH) to decide
what date range to export.

We were over-eager fetching this data, causing every async
plugin-servers every thread to call this query every deploy/restart,
causing issues with overloading clickhouse with queries and slowing down
the startup of plugins.

Since June 21st this year, we've done around 2M such queries.

This fixes that issue by only fetching the date ranges when they're used
as someone kicks off a historic export from the UI.

* Add query tag to clickhouse query
2022-08-25 09:09:41 +01:00
Karl-Aksel Puulmann
514c0caea5
chore(plugin-server): Historical exports fixes (#11464)
* chore(historical-exports): Dont call exportEvents if no events to export

* Make historical export logging more accurate

* Give a progress percentage for export

* Only log & exportEvents if there is events to export

* Track voided promises

* Add more typing to vm upgrade

* Add first test for upgrades

* Test setupPlugin()
2022-08-25 08:58:43 +03:00
timgl
a51fef90e6
fix(activity): Fix activity log on individual persons (#11486) 2022-08-24 23:20:55 +00:00
Rick Marron
aa33f09ede
fix(funnels): remove is_period_final (#11484) 2022-08-24 22:55:30 +01:00
Paul D'Ambra
492a67a5c8
fix: ensmallen the formula button (#11478) 2022-08-24 20:50:10 +01:00
Paul D'Ambra
4e41793d24
chore: gather more info from toolbar error (#11479) 2022-08-24 20:43:04 +01:00
posthog-contributions-bot[bot]
044aeee902
chore(contributors): 🤖 - Add jacobwgillespie as a contributor 🎉 (#11477) 2022-08-24 20:18:18 +02:00
Jacob Gillespie
135290893a
fix(ci): fall back to buildx for prod deploy workflow (#11476) 2022-08-24 18:57:34 +01:00
Neil Kakkar
da98ac3360
chore: make multivariates & persistence non-beta (#11474) 2022-08-24 18:17:03 +01:00
Yakko Majuri
854578bb73
fix: show user first name on plugins activity log (#11471)
* fix: show user first name on plugins activity log

* add tests to (try and) stop this breaking in future

Co-authored-by: Paul D'Ambra <paul@posthog.com>
2022-08-24 18:09:47 +01:00
Paul D'Ambra
6ea255a5c0
fix: dashboard sharing UI don't use red for remove collaborator (#11457)
* fix: dashboard sharing UI don't use red for remove collaborator

* remove that which irks
2022-08-24 18:03:22 +01:00
Paul D'Ambra
49cb9a9c0b
fix: fewer loaders showing on the new dashboard modal (#11469)
* fix: fewer loaders showing on the new dashboard modal

* no need to disable form fields and buttons
2022-08-24 16:30:53 +00:00
timgl
18f9e4887c
fix(lifecycle): Fix entity prop filtering (#11449) 2022-08-24 16:10:32 +01:00
timgl
5d301aee0a
fix(debug queries): query query_log across all replicas (#11460)
* fix(debug queries): Use table distributed across cluster

* Use clusterAllReplicas
2022-08-24 13:06:39 +00:00
Harry Waye
8d5e781a2a
chore(docker): add cloud Dockerfile and pr build workflow (#11446)
* chore(docker): add cloud Dockerfile and pr build workflow

Previously we were using a completely separate image. Instead I'm
extending the general available image to add in the bits we need for
production.

* wip

* wip

* wip

* wip

* hardcode

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* only on internal PRs
2022-08-24 14:02:33 +01:00
Ben White
0b78d4ba12
fix: Remove Spinner size options (#11461) 2022-08-24 11:54:47 +00:00
Ben White
eb510fbc54
fix: Flex shrink for checkboxes (#11462) 2022-08-24 11:47:32 +00:00
Marius Andra
f431797761
feat(property-definitions): make propertyDefintionModel lazy (#11454)
* WIP

* load property definitions on the fly

* batch fetching, clean up selectors

* cleanup

* cleanup

* test property loading

* remove log

* merge two similar functions

* update comment

* use api builder

* don't use temp var
2022-08-24 13:41:45 +02:00
Neil Kakkar
7356da1c94
chore: bump posthog-node version (#11435) 2022-08-24 11:55:54 +01:00
Harry Waye
28af4a57f4
ci(docker): push docker image on push events (#11459)
* ci(docker): push docker image on push events

This way we'll get the master image in the registry and it's layers
available for caching on PRs.

At the moment PRs will have a long initial build always.

* typo
2022-08-24 12:11:40 +02:00
Paul D'Ambra
aee716a166
fix: table sorting during insight creation (#11456)
* fly by style removal

* allow not using URL for sorting lemon table

* change all in one place

* use edit mode not insight is new

* use edit mode not insight is new
2022-08-24 11:01:49 +01:00
timgl
aee2aa7572
fix(toolbar): Fix using toolbar with reverse proxy (#11411)
* fix(toolbar): Add apiurl to editorparams

* fix wording

* fix clicking

* Update frontend/src/scenes/toolbar-launch/AuthorizedUrls.tsx

Co-authored-by: Marius Andra <marius.andra@gmail.com>

* fix layout

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2022-08-24 11:53:28 +02:00
posthog-contributions-bot[bot]
efe8dd0125
chore(contributors): 🤖 - Add peterdemin as a contributor 🎉 (#11455)
* docs: update README.md

* docs: update .all-contributorsrc

Co-authored-by: posthog-contributions-bot[bot] <80958034+posthog-contributions-bot[bot]@users.noreply.github.com>
2022-08-24 11:09:58 +02:00
timgl
c83571d317
feat(Menu): Change "toolbar" to "Launch Toolbar" (#11406)
* feat(Menu): Change "toolbar" to "Launch Toolbar"

* fix(toolbar): Add apiurl to editorparams

* Revert "fix(toolbar): Add apiurl to editorparams"

This reverts commit e1e0523b17.
2022-08-24 11:06:44 +02:00
Eric Duong
99db479c90
fix(cohort): make cohort recalculation simpler (#11335)
* fix: don't subquery when unnecessary

* fix test

* try replacing

* try simpler query

* replace for now

* use single query remove subquery changes

* remove test

* remove props

* fix return

* Update snapshots

* Update snapshots

* refactor

* Update snapshots

* Update snapshots

* fix unwrapping

* Update snapshots

* Update snapshots

* fix false condition

* Update snapshots

* Update snapshots

* restore _timestamp

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* Update snapshots

* update snapshot

* add snapshot test

* remove replace

* Update snapshots

Co-authored-by: EDsCODE <EDsCODE@users.noreply.github.com>
Co-authored-by: posthog-bot <posthog-bot@users.noreply.github.com>
2022-08-23 22:14:41 -04:00
Michael Matloka
4e988f761f
chore: Rename DemoWarnings to ProjectNotice and lemonize it (#11445)
* chore: Rename `DemoWarnings` to `ProjectNotice` and lemonize it

* Use previous "Get more out of PostHog ..." wording
2022-08-23 21:57:05 +02:00
Emanuele Capparelli
456484927a
fix: revert remove data-tooltip (#11447)
Revert "fix: remove data tooltip and improve prompts rules (#11441)"

This reverts commit 721f1ea038.
2022-08-23 19:35:58 +01:00
Emanuele Capparelli
721f1ea038
fix: remove data tooltip and improve prompts rules (#11441)
* fix: remove data tooltip and improve prompts rules

* fix test fixtures

* simplify expression

* fix cypress
2022-08-23 18:15:39 +01:00
Yakko Majuri
b684a60e01
feat: reduce graphile pollInterval for async server (#11436) 2022-08-23 13:46:35 -03:00
timgl
192a7dbb7d
fix(exports): Capture export errors (#11444) 2022-08-23 13:45:06 -03:00
Tiina Turban
0065fca669
fix: async mig ui to respect ignore version flag (#11395)
* fix: async mig ui to respect ignore version flag

* typo
2022-08-23 17:40:13 +02:00
Michael Matloka
5557103cf1
chore(data-m): Make calculate_event_property_usage_for_team smarter (#11440)
Revert "Revert "chore(data-m): Make `calculate_event_property_usage_for_team` smarter" (#11439)"

This reverts commit ad8668208c.
2022-08-23 15:06:24 +00:00
timgl
ad8668208c
Revert "chore(data-m): Make calculate_event_property_usage_for_team smarter" (#11439)
Revert "chore(data-m): Make `calculate_event_property_usage_for_team` smarter (#11396)"

This reverts commit d8190124c5.
2022-08-23 15:39:56 +01:00
Harry Waye
5e0d8cb6dd
chore(plugin-server): do not use yarn to run prod plugin-server (#11434)
It looks like the plugin-server isn't shutting down cleanly, from
looking at the logs. They abruptly stop.

We have a trap to pick kill the yarn command on EXIT, however, yarn v1
doesn't propagate SIGTERM to subprocesses, hence node never recieves it.

Separately it looks like the shutdown ends up being called multiple
times which results in a force shutdown. I'm not entirely sure what is
going on here but I'll leave that to another PR.
2022-08-23 14:03:13 +00:00
Karl-Aksel Puulmann
039358c467
chore(plugin-server): Track graphile queue size (#11431)
I noticed we don't have metrics for graphile. As the first go, I added a
graphile queue size metric.
2022-08-23 10:57:31 -03:00
Ben White
18d3ce5214
feat: New loading spinner (#11324) 2022-08-23 12:37:49 +00:00
Michael Matloka
d8190124c5
chore(data-m): Make calculate_event_property_usage_for_team smarter (#11396)
* chore(data-m): Make `calculate_event_property_usage_for_team` smarter

* Fix import

* Add some comments

* Remove unneeded SQL

* Update manager.py

* Fix function kwarg

* Optimize `GET_EVENT_PROPERTY_SAMPLE_JSON_VALUES`

* Only run complete inference in demo

* Restore `TestPropertyDefinitionAPI` from `master`

* Add `test_complete_inference()` to `TestCalculateEventPropertyUsage`

* Restore `TestPropertyDefinitionAPI` from `master`
2022-08-23 14:09:41 +02:00
PostHog bot
135aa6547b
chore(deps): Update posthog-js to 1.29.1 (#11430) 2022-08-23 13:40:18 +02:00
Karl-Aksel Puulmann
e9f25764f8
fix(person-on-events): update is_required for 0006 async migration (#11428)
0006 async migration keeps getting marked as `complete` during deploys
since is_required would return false.

This is a cloud-specific problem but allows us to work around this issue
as we figure out what to do with is_required.
2022-08-23 13:50:10 +03:00
Ben White
a50472f9d8
fix: Simplify LemonCheckbox (#11420)
* fix: Simplify LemonCheckbox

* Tidy
2022-08-23 12:15:55 +02:00