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
dependabot[bot]
5249fff5c4
Bump postcss from 7.0.35 to 7.0.36 (#4784)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.35 to 7.0.36.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.35...7.0.36)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-17 18:42:49 +02:00
Tim Glaser
b821b845a6
Remove free clickhouse license (#4788) 2021-06-17 16:47:04 +03:00
Paolo D'Amico
c89f19d616
Improve action creation process for elements (#4759)
* clarify elements in toolbar

* clarify match group page
2021-06-17 13:16:36 +02:00
Tiina
0bb9108b6d
api/user endpoint deprecation notice to direct to api/users/@me (#4780)
* api/user endpoint deprecation notice to direct to api/users/@me

* nuke change_password param

* remove endpoint & tests

Co-authored-by: Paolo D'Amico <paolodamico@users.noreply.github.com>
2021-06-17 12:45:08 +02:00
Paolo D'Amico
65500612dc
Tooltips improvements III (#4751)
* adjust tooltip position

* fix crosshair snap

* allow clicking the correct datapoint

* optimize InsightTooltip

* fix no background colors in bar value chart

* fix positioning for bar value chart

* fix display on bar value charts with breakdown

* use custom chart.js

* add slight animation to tooltip position

* use posthog chartjs with "nearestX" mode

* update to a unborked @posthog/chart.js

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-17 12:06:55 +02:00
Michael Matloka
4bd79a27b7
Fix CI on forks (#4754)
* Remove commented out test

* Update VERSION

* Don't run the automerge job on forks

* Revert "Update VERSION"

This reverts commit dc37f20133.

* Change automerge condition

* Change automerge condition a bit more

* Try scrolling

* Scroll by more

* Stop GitHub complaining about no jobs ran in a workflow

* Search for a different event name

* Try a different operator

* Don't default branch push jobs on forks

* Move clicks around

Co-authored-by: PostHog Bot <hey@posthog.com>
2021-06-17 00:22:23 +02:00
Sam Winslow
e737947d35
Use ellipsis for insight titles & make Reset, Save buttons less verbose (#4778)
* Shorten default titles && add tooltips to Reset, Save btns

* Hide tooltip when SaveToDashboard modal shows

* Adjust flexbox && hide btn titles on sm screens
2021-06-16 14:56:18 -07:00
Tiina
1ed333365a
Add .yaml files to be linted with prettier too (#4771) 2021-06-16 18:04:51 +02:00
Alex Gyujin Kim
dab41f0f6a
Revert "[Frontend Change] Funnels API GET -> POST|GET (#4769)" (#4777)
This reverts commit bbf7af2920.
2021-06-16 08:45:02 -07:00
Neil Kakkar
4080c5a02d
Resolve /decide endpoint errors due to invalid token (#4772)
* update token cleaning code

* add test
2021-06-16 14:10:06 +00:00
Yakko Majuri
c0106b1fcc
Allow passing project api key to api/feature_flag (#4764)
* allow passing project api key to api/feature_flag

* remove log

* handle GET requests appropriately

* add special handling

* nicer GET check

* remove special handling at routing level
2021-06-16 15:09:08 +02:00
posthog-contributions-bot[bot]
6ef6b7ba29
🤖: Add taobojlen as a contributor 🎉 (#4774) 2021-06-16 13:39:26 +02:00
Alex Gyujin Kim
bbf7af2920
[Frontend Change] Funnels API GET -> POST|GET (#4769)
* bring back frontend changes from fix/long-funnels-*

* remove whitespace changes

Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-16 12:13:10 +02:00
Alex Gyujin Kim
efaec341c7
add backwards compatibility check (#4770) 2021-06-16 10:07:40 +02:00
Alex Gyujin Kim
ba8c387897
[Backend Change] Funnels API GET -> POST|GET (#4768)
* change get to post api

* tests

* fixed bug

* isort

* make funnels endpoint backwards compatible, add test to check this

* descriptive comment

* revert funnelLogic to current

* revert code removed in error

Co-authored-by: Alex Kim <alexkim@Alexs-MacBook-Pro-2.local>
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-16 10:07:29 +02:00
posthog-contributions-bot[bot]
8d90b00c99
🤖: Add dbinetti as a contributor 🎉 (#4766) 2021-06-15 18:18:20 +02:00
Yakko Majuri
3d96afc8d7
bump version, add 1.26.0 changelog (#4760)
* add 1.26.0 changelog

* bump version
2021-06-15 13:13:57 -03:00
Michael Matloka
a0eff156db
Fix debug bar interactivity (#4762) 2021-06-15 16:43:50 +02:00
Tim Glaser
ab9e7a44d2
Fix broken color issue (#4761) 2021-06-15 15:01:05 +02:00
posthog-contributions-bot[bot]
b9a7bb1467
🤖: Add neilkakkar as a contributor 🎉 (#4757) 2021-06-15 13:45:43 +02:00
Neil Kakkar
e6ef9558bb
Populate defaults on creating source plugins (#4688)
* Enable defaults to be populated on edit from source

* rm rm line
2021-06-15 12:03:57 +02:00
Michael Matloka
10fb674570
Clean up action matching code a bit (#4586)
* Clean up action matching code a bit

* Deprecate `ActionStep.name`
2021-06-15 11:42:36 +02:00
Karthikeyan Singaravelan
7e20186064
Fix deprecation warnings due to invalid escape sequences. (#4633) 2021-06-15 11:41:49 +02:00
Paolo D'Amico
264f96828f
Insights table - New UI (#4700)
Co-authored-by: Alex Kim <alexgkim205@gmail.com>
2021-06-15 05:11:08 +02:00
Li Yi Yu
040458f690
reorder chart inner config (#4746) 2021-06-14 18:36:13 -04:00
Li Yi Yu
2aa1edc5cd
Add limit to clickhouse sql events (#4740)
* add limit to clickhouse sql event

* fix limit sql string

* added test for limit parameter

Co-authored-by: Buddy Williams <buddy@posthog.com>
2021-06-14 17:04:00 -04:00
Marius Andra
8d8b868971
fix toolbar dropdown z-index (#4739) 2021-06-14 19:36:35 +02:00
Marius Andra
7a0593f7cf
Property tags can be undefined (#4738)
* tags can be undefined

* tags can be undefined
2021-06-14 17:00:28 +02:00
Tim Glaser
1da9084e83
Closes #4679 fix deleting persons (#4734) 2021-06-14 10:17:38 -04:00
PostHog bot
cea0121349
Update plugin server to 0.21.24 (#4737) 2021-06-14 15:02:57 +02:00
Paolo D'Amico
e88e185802
Fix #4578 (#4733)
* Fix #4578

* separate tag colors from chart colors
2021-06-14 15:00:07 +02:00
PostHog bot
68d4298ccd
Update plugin server to 0.21.23 (#4735) 2021-06-14 14:07:55 +02:00
Paolo D'Amico
0a1eb34129
New tooltips UI #4156 (#4651) 2021-06-14 14:03:34 +02:00
PostHog bot
805d08f7ee
Update plugin server to 0.21.22 (#4732) 2021-06-14 12:57:09 +02:00
Karl-Aksel Puulmann
4094fb025f
Increase default timeouts from gunicorn (#4731)
These could explain some of the 5xx requests we've been having.
Deploying and measuring.
2021-06-14 10:39:04 +00:00
Karl-Aksel Puulmann
7a090a111c
Set gunicorn keepalive to 120 (seconds) (#4730)
We're hosting gunicorn behind an ELB with idle timeout of 120 seconds.

I think this is leading to sporatic 504 errors:

https://docs.aws.amazon.com/elasticloadbalancing/latest/classic/ts-elb-error-message.html

> HTTP 504: Gateway timeout
> Cause 2: Registered instances closing the connection to Elastic Load Balancing.
> Solution 2: Enable keep-alive settings on your EC2 instances and make sure that the keep-alive timeout is greater than the idle timeout settings of your load balancer.

Related reading: https://serverfault.com/questions/782022/keepalive-setting-for-gunicorn-behind-elb-without-nginx

Not 100% this is appropriate for setups without ELB but let's deploy,
see if it makes a dent on monitoring and then move appropriately (e.g.
env variable this)
2021-06-14 13:21:11 +03:00
PostHog bot
fc08c4e9f3
Update posthog-js to 1.11.3 (#4729) 2021-06-14 11:45:35 +02:00
Paolo D'Amico
01b7daacc2
Remove NewRelic from Cloud (#4716)
* remove NR

* remove secret key too
2021-06-14 11:01:57 +02:00
Karl-Aksel Puulmann
87c7809ac1
Bump clickhouse dependencies (#4728) 2021-06-14 10:54:36 +03:00
PostHog bot
3d44cdcb69
Update plugin server to 0.21.21 (#4719) 2021-06-11 23:14:02 +02:00
Sam Winslow
399bcc6a21
Refactor PropertyValue to TS (#4686)
Co-authored-by: Marius Andra <marius.andra@gmail.com>
2021-06-11 14:21:01 -04:00
Eric Duong
bb9b6b42f2
Engagement cohorts (#4510)
* add migration

* add fields

* remove comment

* change to is_deleted

* Update migration to work

* Update tests

* initial functions

* fix params

* add migration

* add named param

* working test

* update person prop and cohort tests

* use var

* move sql and fstring

* remove get inside django signal

* just create the table

* add replication logic

* add param

* change replacing name

* refactor and add event based cohorts

* add type

* add to model

* add test for event_id

* move sql

* add sql

* make sure actions work too and add test

* add ability to create cohort by event count

* glob match cypress cache

* fix type

* fix type

* refactor and add datetime support

* fix ordering issue in test

* add timestamp test

* fix type

* fix more types

* use var resolution

* add operators

* add necessary filter and test

* add call for calculating cohort on create

* add triggers to oncreate and onupdate

* breakup test and remove repeated subquery

Co-authored-by: Karl-Aksel Puulmann <oxymaccy@gmail.com>
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-06-11 13:59:57 -04:00
Eric Duong
f6156c3bd6
Breakdown value display people params (#4640)
* add type

* add test

* use camelCase

* update test
2021-06-11 13:57:03 -04:00
Karl-Aksel Puulmann
e96aec672b
Update gunicorn (#4690)
Changelog: https://docs.gunicorn.org/en/stable/news.html

The release seems to include some new bugfixes.
2021-06-11 15:53:02 +03:00
Karl-Aksel Puulmann
6baa08bf50
Temporarily use forked version of clickhouse-pool (#4710)
Fixed a bug upstream, waiting for it to get released. https://github.com/ericmccarthy7/clickhouse-pool/pull/12
2021-06-11 15:48:44 +03:00
Michael Matloka
3ce6db4d33
Add plugins to Django admin (#4707)
* Add plugins to Django admin

* Enhance plugin admin

* Fix field name mistake
2021-06-11 12:34:21 +02:00
Karl-Aksel Puulmann
aab9f03249
Fixup for api.js experiment (#4708)
Fixes https://sentry.io/organizations/posthog/issues/2448954453/?project=1899813&query=is%3Aunassigned+is%3Aunresolved
2021-06-11 09:18:43 +00:00
Marius Andra
1db9d5d996
Keep toolbar closer to the screen edge (#4684) 2021-06-10 17:54:51 -04:00
Eric Duong
946435a752
Revert "Change funnels API from GET to POST|GET (#4670)" (#4702)
This reverts commit 4a8151bd4e.
2021-06-10 17:03:20 -04:00
PostHog bot
5cf45a5c69
Update plugin server to 0.21.20 (#4701) 2021-06-10 22:58:47 +02:00