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

3291 Commits

Author SHA1 Message Date
Marius Andra
50d0213d55
do not run this migration in a transaction (#4611) 2021-06-07 09:51:49 +02:00
Kunal
664a9fb08b
Roll up org stats, filter out internal metrics (#4565)
* add org stats

* add test

* ignore test type

* remove type

* remove type

* switch back to the old names

* Add tests for another org

* Add test for events outside of period

* formatting

* add internal metrics test

* unused import

* add return type

* types

* finally got mypy running locally :')

Co-authored-by: kunal <kunal@Kunals-iMac.hsd1.ca.comcast.net>
Co-authored-by: kunal <kunal@kunals-MacBook-Pro.local>
2021-06-04 12:27:37 -07:00
posthog-contributions-bot[bot]
f02c503b83
🤖: Add jonataslaw as a contributor 🎉 (#4605) 2021-06-04 21:19:29 +02:00
Marius Andra
0c61194584
add requirement to check CSS responsiveness (#4597) 2021-06-04 20:02:23 +02:00
PostHog bot
8b4d248849
Update posthog-js to 1.11.1 (#4601) 2021-06-04 18:17:44 +02:00
PostHog bot
660951be0e
Update plugin server to 0.21.15 (#4599) 2021-06-04 15:35:47 +02:00
Alex Gyujin Kim
af969b45be
[Fix] Annotations list not refreshing after creating annotation (#4564)
* Fix list not refreshing after create annotation

* typescript magic and refactor createGlobalAnnotation to loader
2021-06-04 15:24:12 +02:00
Buddy Williams
7d045c86f3
Refactoring funnel trends (#4419)
* checkpoint: refactoring funnel trends so that they work correctly

* wip: refactoring funnel trends query to return the results we actually need

* wip: added in new query for testing

* wip: moved sql into a separate file, converted list to dictionary, and added several tests to check data quality

* wip: with a better understaning of funnel trends I've refactored the query so that I can write a data transformer in python

* moved code into funnel_trends for both logic and tests to isolate the concern

* reordered methods for readability

* wip: refactoring funnel trends to support filters

* wip: added updated SQL which will replace the existing FUNNEL_TREND_SQL

* correct column name so that it's clearer

* added substitution variables to new query

* fixed missing substitution variable

* wip: integrating new query with correct params, added mixins for funnel_window, and working toward working test

* several query corrections

* summarize funnel trends

* moved method down

* removed unused code

* added data quality checks

* corrected cohort size for tests

* test window size and incomplete status

* corrected a few names

* removed unnecessary comment

* commented out old funnel trends tests

* removed print statement

* removed old funnel trend code

* made funnel trends response match existing data structure layout

* removed unused imports

* removed more unused imports

* fixed mypy errors

* Added ClickhouseFunnelBase to extract common methods for both ClickhouseFunnelTrends and ClickhouseFunnel; this also fixes issues with tests;

* removed unused type comment

* corrected test to account for new funnel_window_days mixin

* fixed clickhouse funnel tests

* fixes for automated tests

* changed team_id to use client substitution to avoid sql injection attempts in the future but since it's not user supplied it's not currently an issue

* corrections prompted by PR review

* corrected test to dict test with funnel_window_days
2021-06-03 17:06:08 -04:00
Eric Duong
dd0175c1a6
add stickiness test account filter for clickhouse and test (#4221) 2021-06-03 15:59:05 -04:00
Joe Martin
0e0077fb2c
Update-Papercups-Greeting (#4584)
Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-03 09:25:56 -07:00
posthog-contributions-bot[bot]
3d023cc727
🤖: Add marcushyett-ph as a contributor 🎉 (#4585) 2021-06-03 15:58:17 +02:00
PostHog bot
3ab0439d2b
Update plugin server to 0.21.14 (#4583) 2021-06-03 15:24:39 +02:00
Li Yi Yu
7546e3ea0a
Event properties taxonomy (#4486)
* add description and tag fields to event and property definitions

* set up description and tagging on models

* frontend functionality for description editing

* connect backend and kea logic for description editing

* update event and property definitions model and migration

* delete set null instead of cascade

* migration merge fix

* add owner column

* undo posthog event property taxonomy migrations

* set up definitions on enterprise level

* allow enterprise definitions description editing

* fix licensing conditions and add tests

* proper get and update methods for the multi inheritance table and new column fields for enterprise event model

* check for license to separate routes

* migrate existing definitions to ee definitions tables and render ee vs non-ee definition views based on existing feature conditional

* all the working backend updates

* updated tests

* frontend fixes and linting updates

* feature flag it
2021-06-03 09:22:16 -04:00
PostHog bot
ebcd179494
Update plugin server to 0.21.13 (#4580) 2021-06-03 14:01:13 +02:00
Tim Glaser
23fe007d22
add user filter to lifecycle (#4560)
* add user filter to lifecycle

* consistency

* remove docker

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-03 13:31:57 +02:00
dependabot[bot]
79d7d999a0
Bump dns-packet from 1.3.1 to 1.3.4 (#4540)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-03 12:22:55 +02:00
posthog-contributions-bot[bot]
73d6ad693f
🤖: Add taobojlen as a contributor 🎉 (#4576) 2021-06-02 20:24:03 +02:00
Karl-Aksel Puulmann
87edf97c4a
Separate realm for hosted clickhouse users (#4566)
This includes clients like netdata etc who are deploying clickhouse
2021-06-02 19:46:11 +03:00
PostHog bot
28eab6aefa
Update posthog-js to 1.11.0 (#4569) 2021-06-02 13:54:35 +02:00
Tim Glaser
634b313602
Add OR label to feature flags (#4474)
* Add OR label to feature flags

* fix label in sessions tab

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-01 19:57:29 +02:00
Paolo D'Amico
1b0240d7fa
Insights short share URL (#4513) 2021-06-01 07:18:19 -07:00
Karl-Aksel Puulmann
1dd2d1d7ec
Only send internal metrics from FE is CAPTURE_INTERNAL_METRICS is enabled (#4556)
Housekeeping
2021-06-01 17:17:29 +03:00
Karl-Aksel Puulmann
3edbe14c8f
Solve race conditions around internal metrics (#4555)
The app can behave oddly around boot, resulting in:
1. Seemingly missing dashboards for internal metrics
2. Organization but no team for internal metrics

This PR aims to solve both by:
1. Removing caching for dashboards (rare case)
2. Handling race in org creation with an explicit transaction
2021-06-01 16:54:23 +03:00
Marius Andra
3530bcb2e1
remove local plugins from the "checking for updates" list (#4538)
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-01 13:58:19 +02:00
Marius Andra
f7a42020b3
Plugin editor types (#4468)
* add @posthog/plugin-scaffold type to plugin editor, simplify plugin

* make functions async

* have same config type as config json

* ignore raw-loader ts errors

* remove monaco webpack plugin

* Add example `console.log` to `onEvent`

* Escape backticks inside backticks

Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-01 13:19:38 +02:00
Marius Andra
cc04325a80
remove MiniCssExtractPlugin (#4552) 2021-05-31 23:58:28 +02:00
Marius Andra
bab88da39d
Revert "Merge all CSS into one file (#4549)" (#4551)
This reverts commit 604194b03e.
2021-05-31 21:29:09 +00:00
Marius Andra
604194b03e
Merge all CSS into one file (#4549)
EXPECT TO BE REVERSED

* merge all css

* fix toolbar modal

* remove unused css

* fix for toolbar
2021-05-31 23:09:14 +02:00
Marius Andra
5017bf1c08
Fix deduplicated SCSS issue (#4545)
* Revert "Hotfix SCSS for trend graphs (#4539)"

This reverts commit 545dc62ec6.

* Revert "Move history import to globals (#4531)"

This reverts commit 542be62053.

* Revert "@ import all scss in lib/components (#4530)"

This reverts commit 5e2a3290da.

* fix deduplicated css problem

* update lockfile
2021-05-31 19:13:50 +02:00
Marius Andra
9314dd47c1
Redefined shadow variable fixes (#4544) 2021-05-31 13:17:53 +02:00
Michael Matloka
8ef727634e
Syncing action definition changes with plugin server (#4436)
* Save Organization.available_features as a DB column

* `update_available_features()` before an organization is created too

* Run the task half past the hour

* Adjust tests and fix available_features sync on start

* Improve action and property TS types

* Use plugin server ActionManager pubsub

* Use better pubsub channel names for plugin server ActionManager

* Fix PubSub's lack of teamId

* Use f-strings for property CH SQL formatting
2021-05-31 11:10:36 +02:00
Marius Andra
67379edb81
kea-typegen 0.7.2 & fix random errors (#4542)
* kea-typegen 0.7.1

* kea-typegen 0.7.2

* fix history ViewType

* fix key errors

* fix rrweb import error
2021-05-31 10:40:54 +02:00
posthog-contributions-bot[bot]
86cd24b0d1
🤖: Add tobiastornros as a contributor 🎉 (#4543) 2021-05-31 09:57:17 +02:00
Karl-Aksel Puulmann
5e25a652f3
Dashboards: allow changing date ranges on /instance/status dashboards (#4496)
* Show more things when embedding dashboard for internal purposes

* Show refresh button for /instance/status dashboard

* Allow logged in users to change date range in /instance/status dashboard

Also sets default

Logged in status is checked in a separate Permissions class
2021-05-30 12:02:38 +03:00
Sam Winslow
545dc62ec6
Hotfix SCSS for trend graphs (#4539)
* hotfix scss for trend graphs

* add dashboarditems

* prod on fire this is fine
2021-05-28 17:44:47 -04:00
dependabot[bot]
0df6b359cf
Bump browserslist from 4.14.6 to 4.16.6 (#4493)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.14.6 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.14.6...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-28 21:23:15 +02:00
Eric Duong
7471ade922
Fixing breakdown bug with retrieving top elements (#4313)
* fixing bug

* conslidate breakdown query

* remove clause

* add missing param

* fix name and bracket

* fix tests add none clause

* fix more tests

* more test adjustments

* add person prop filter test

* only use None when offset is 0 (first query)

* add null check and fix api helper
2021-05-28 10:24:50 -04:00
Paolo D'Amico
4c2365a51a
Bring back "Better experience when no actions are defined"
This reverts commit 48a25608a0.
2021-05-27 15:37:05 -07:00
Kunal
542be62053
Move history import to globals (#4531) 2021-05-27 15:57:31 -04:00
Sam Winslow
5e2a3290da
@ import all scss in lib/components (#4530) 2021-05-27 13:37:39 -04:00
Eric Duong
be301e7112
Create collapsing table for cohortpeople (#4477)
* just create the table

* add replication logic

* add param

* change replacing name
2021-05-27 17:44:43 +03:00
Sam Winslow
4d4fc7c801
Add temporary comment in SelectBox.scss (#4527) 2021-05-27 13:27:32 +00:00
posthog-contributions-bot[bot]
709e57c38b
🤖: Add lutangar as a contributor 🎉 (#4526) 2021-05-27 15:24:24 +02:00
Tim Glaser
48a25608a0
Revert "Better experience when no actions are defined (#4455)" (#4525)
This reverts commit acb30a3de8.
2021-05-27 13:28:04 +02:00
PostHog bot
2dfccc3dc4
Update plugin server to 0.21.12 (#4523) 2021-05-27 12:26:24 +02:00
Karl-Aksel Puulmann
4aa773139c
Measure metrics from insights in instance metrics (#4495)
* Send info on insights query timing + route to posthog

This will help with determining the root cause of our problems

* Capture information on "timeouts" correctly

previously every error on insights was reported as a timeout.

* WIP

* Solve typing issues within insightslogic

* WIP part 2

* Add graphs for insight load times

* Add tests for new routes

* PR review iteration

* Make instance_status POST available for all

* Do some cache busting
2021-05-27 12:48:11 +03:00
PostHog bot
c93ab8ace2
Update plugin server to 0.21.11 (#4522) 2021-05-27 10:35:34 +02:00
Marius Andra
c09df94924
Revert "Update plugin server to 0.21.10 (#4520)" (#4521)
This reverts commit 177be4e13f.
2021-05-27 07:45:23 +00:00
PostHog bot
177be4e13f
Update plugin server to 0.21.10 (#4520) 2021-05-27 09:10:57 +02:00
Eric Duong
b53b1398e1
Fix CI cypress cache (#4511) 2021-05-26 13:32:15 -07:00