Tim Glaser
7a3091150f
Warn when dashboard is available ( #8262 )
...
* Don't allow user to set current team that they don't have access to
* Warn when dashboard is available in different project
* update exceptionshog
* fix tests
* fix failing
* fix typing
* tests
2022-01-27 18:49:29 +00:00
Karl-Aksel Puulmann
9b59cd897c
Update clickhouse-orm ( #8314 )
...
Relevant PR: https://github.com/PostHog/infi.clickhouse_orm/pull/7
2022-01-27 16:57:03 +02:00
Tim Glaser
f47b1308b5
[Proposal] Add automatic swagger doc generation ( #8148 )
...
* Add automatic swagger doc generation
* Fix test and mypy
* formatting
* fix formatting
* formatting
* update
* fix mypy
2022-01-24 17:21:56 +00:00
Neil Kakkar
9f9b5f3ec3
Switch around experiment calculation methods ( #7943 )
...
* switch around experiment calculation methods
* cleanup add new comments
2022-01-07 16:02:52 +00:00
Neil Kakkar
50bbafa33b
Backend for trend experiment results ( #7878 )
...
* backend for trend experiment results
* address comment, remove flake
* sort out dependencies
2022-01-05 17:15:12 +00:00
Neil Kakkar
359843c198
Revert "Install scipy ( #7897 )" ( #7902 )
...
This reverts commit 6017a39d7e
.
2022-01-05 15:52:31 +00:00
Neil Kakkar
6017a39d7e
Install scipy ( #7897 )
...
* install scipy
* pin
* sort out versions
2022-01-05 13:06:37 +00:00
James Greenhill
ab0c75414b
Make settings dynamic for MATERIALIZED_COLUMNS_ENABLED ( #7662 )
...
* Make settings dynamic for MATERIALIZED_COLUMNS_ENABLED
* migrate MATERIALIZED_COLUMNS_ENABLED to this and test
* allow tests that use materialized columns to hit django model for settings
* nicer installed apps config
* update snapshot from test
* make test_property more deterministic
Co-authored-by: James Greenhill <fuzionech@gmail.com>
Co-authored-by: yakkomajuri <yakko.majuri@gmail.com>
2021-12-14 17:56:08 -08:00
James Greenhill
bbe714baed
Bump toronado version to bump lxml version (vulnerable) ( #7715 )
...
* Bump toronado version to bump lxml version (vulnerable)
* actually bump lxml
2021-12-14 15:55:12 -08:00
James Greenhill
4c65df7472
Revert "Bump lxml from 4.6.3 to 4.6.5 ( #7687 )" ( #7712 )
...
This reverts commit cb9cc728b8
.
2021-12-14 15:28:34 -08:00
dependabot[bot]
cb9cc728b8
Bump lxml from 4.6.3 to 4.6.5 ( #7687 )
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.6.3 to 4.6.5.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.3...lxml-4.6.5 )
---
updated-dependencies:
- dependency-name: lxml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 15:11:28 -08:00
Marius Andra
1696ed5950
Update mypy and typed-ast, fail early if db version not in range ( #7599 )
...
* error if unsupported db version
* upgrade mypy
* fix various types for mypy
* you can have it in any color you want, as long as it's black
* fix mypy
* Update `kafka-python`
* Format with Black
* Fix mypy after merge
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-12-10 09:29:04 +01:00
Neil Kakkar
c32b3a88c8
Experimentation backend ( #7492 )
2021-12-09 10:24:03 +00:00
Paolo D'Amico
c90c4a4d05
Update drf-exceptions-hog ( #7417 )
2021-12-01 17:19:51 -05:00
Karl-Aksel Puulmann
9abb59e561
Update posthoganalytics version to 1.4.4 ( #7354 )
2021-11-25 13:10:38 +02:00
Karl-Aksel Puulmann
e10b53a8db
Use group analytics in some event capture ( #6745 )
...
* Update posthog-analytics to 1.4.3
* Integrate group analytics into the frontend
* Use groups for instance status reports
* Remove domain_whitelist
2021-11-03 10:59:22 +02:00
Eric Duong
4c9ccf1cfa
change url access to https ( #6779 )
2021-11-02 16:27:16 +01:00
Guido Iaquinti
af6a309820
Logging: change default formatting ( #6697 )
2021-10-28 14:46:28 +02:00
Asher Foa
05f47bf4f5
Use pep440 style reqs ( #5864 )
...
Specifically: https://www.python.org/dev/peps/pep-0440/#direct-references
2021-09-14 11:47:12 +02:00
Paolo D'Amico
ef7ec14014
Conditional SAML dependencies (fix Heroku deploys) ( #5870 )
2021-09-09 14:09:15 +00:00
James Greenhill
9a65de76c6
Attempt a fix for building xmlsec python wheel ( #5768 )
2021-08-28 13:47:25 +02:00
Paolo D'Amico
627d493817
SAML support ( #5681 )
2021-08-27 07:20:49 -07:00
Michael Matloka
09ae92f01a
Bump posthoganalytics
and sentry-sdk
( #5740 )
2021-08-26 13:40:19 +02:00
Paolo D'Amico
4afe5999bb
Auth updates & fix login as ( #5670 )
2021-08-20 10:01:33 -07:00
Tim Glaser
5afb7e5129
Upgrade Django to 3.2.5 ( #5198 )
2021-07-20 12:09:12 +02:00
James Greenhill
1c1d4a11cd
bump clickhouse_orm version ( #5217 )
2021-07-19 20:59:56 -07:00
Karl-Aksel Puulmann
96ad4a6d32
Fix build ( #5162 )
...
* Test: Update requirements
* Update version
* Attempt #3
2021-07-16 16:21:36 +03:00
James Greenhill
751a35cd35
Make DDLs more friendly towards running on a cluster and cleanups ( #5091 )
...
* Make DDLs more friendly towards running on a cluster
* Use primary CLICKHOUSE host for migrations and DDL
* loose ends on person kafka create
* posthog -> cluster typo
* add cluster to KAFKA create for plugin logs
* Feed the type monster
* clusterfy local clickhouse
* test docker-compose backed github action
* run just clickhouse and postgres from docker-compose
* move option to between up and <services>
* posthog all the things
* suggest tests run on cluster
* posthog cluster for ci
* use deploy path for docker-compose
* fix for a clickhouse bug 🐛
* complete CH bug fixes
* 5439 the github actions pg configs
* remove CLICKHOUSE_DATABASE (handled automatically)
* update DATABASE_URL for code quality checks
* Missed a few DDLs on Person
* 5439 -> 5432 to please the people
* cleanup persons and use f strings <3 f strings
* remove auto parens
* Update requirements to use our fork of infi.clickhouse_orm
* fix person.py formatting
* Include boilerplate macros for a cluster
2021-07-15 17:20:37 -07:00
Karl-Aksel Puulmann
87c7809ac1
Bump clickhouse dependencies ( #4728 )
2021-06-14 10:54:36 +03: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
Paolo D'Amico
d0c93fa589
Upgrade to Django 3.1.12, urllib & requests ( #4639 )
2021-06-08 14:19:32 -07:00
Karl-Aksel Puulmann
008ee1f04c
Include more clickhouse query metrics ( #4256 )
...
* Use `statshog` over python-statsd
More support for tags!
* Include custom tags for every query + add annotation to query
After this we can:
- Figure out from query logs where queries are coming from (speeding up debugging)
- Break down query speeds by user queries vs others (e.g. celery) --
better represents overall speed
- Can figure out how fast queries are on average for various teams
* Use tags in more queries over interpolation
This way we can set up more interesting graphs \o/
* Solve mypy error
* Fix a flaky test (due to ordering)
2021-05-10 10:47:54 +03:00
Paolo D'Amico
7ea9eb692c
Update Django to 3.1.8 (and related) ( #4007 )
2021-04-19 12:59:10 -07:00
Sam Winslow
49f7d841ce
bump cryptography==3.4.7 and add macosx_arm64 install script ( #3935 )
2021-04-10 00:53:19 +02:00
Marius Andra
1d2f9bf971
Minimum PostHog version in plugins ( #3916 )
...
* add "put_json_into_zip_archive" util
* add semantic version package
* compare posthog version requirement string in plugin.json if present
* Clarify posthogVersion error messages
* Don't check posthogVersion on Cloud
* Clarify error messages better
* Split test_create_plugin_version_ranges into multiple tests
* Add Cloud test and fix the rest
* Make mypy happy
* Update ci-backend.yml
* Fix typing
* Remove broad restore-keys
* Revert "Remove broad restore-keys"
This reverts commit b720e1e1cf
.
* Attempt to make cached pip actually work
* Always run package installs even if cache hit just to be sure
* Avoid pytest from PATH
* Avoid PATH in Python CI altogether
* Roll back general CI changes
Co-authored-by: Michael Matloka <dev@twixes.com>
2021-04-09 09:04:53 +02:00
Buddy Williams
b9b77281f0
Bumped cffi so that pip will install deps for M1 chip ( #3808 )
2021-03-30 18:29:18 +02:00
dependabot[bot]
afb78abe04
Bump lxml from 4.6.2 to 4.6.3 ( #3725 )
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.6.2 to 4.6.3.
- [Release notes](https://github.com/lxml/lxml/releases )
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt )
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.2...lxml-4.6.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-23 15:26:06 +01:00
dependabot-preview[bot]
a7fb59d1f6
Bump celery-redbeat from 0.13.0 to 2.0.0 ( #3544 )
...
Bumps [celery-redbeat](https://github.com/sibson/redbeat ) from 0.13.0 to 2.0.0.
- [Release notes](https://github.com/sibson/redbeat/releases )
- [Changelog](https://github.com/sibson/redbeat/blob/main/CHANGES.txt )
- [Commits](https://github.com/sibson/redbeat/compare/v0.13.0...v2.0.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-03 11:52:12 +01:00
dependabot-preview[bot]
0a0a8bd349
Bump parso from 0.6.1 to 0.8.1 ( #3542 )
...
Bumps [parso](https://github.com/davidhalter/parso ) from 0.6.1 to 0.8.1.
- [Release notes](https://github.com/davidhalter/parso/releases )
- [Changelog](https://github.com/davidhalter/parso/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/davidhalter/parso/compare/v0.6.1...v0.8.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:11:36 +01:00
dependabot-preview[bot]
bf164b216a
Bump whitenoise from 5.0.1 to 5.2.0 ( #3538 )
...
Bumps [whitenoise](https://github.com/evansd/whitenoise ) from 5.0.1 to 5.2.0.
- [Release notes](https://github.com/evansd/whitenoise/releases )
- [Changelog](https://github.com/evansd/whitenoise/blob/master/docs/changelog.rst )
- [Commits](https://github.com/evansd/whitenoise/compare/v5.0.1...v5.2.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:11:07 +01:00
dependabot-preview[bot]
f2d7a962e5
Bump django-deprecate-fields from 0.1.0 to 0.1.1 ( #3536 )
...
Bumps [django-deprecate-fields](https://github.com/3YOURMIND/django-deprecate-fields ) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/3YOURMIND/django-deprecate-fields/releases )
- [Commits](https://github.com/3YOURMIND/django-deprecate-fields/compare/0.1.0...0.1.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:02:30 +01:00
dependabot-preview[bot]
8ef31567db
Bump asgiref from 3.2.7 to 3.3.1 ( #3535 )
...
Bumps [asgiref](https://github.com/django/asgiref ) from 3.2.7 to 3.3.1.
- [Release notes](https://github.com/django/asgiref/releases )
- [Changelog](https://github.com/django/asgiref/blob/master/CHANGELOG.txt )
- [Commits](https://github.com/django/asgiref/compare/3.2.7...3.3.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:02:25 +01:00
dependabot-preview[bot]
b13bd73e85
Bump psycopg2-binary from 2.8.4 to 2.8.6 ( #3543 )
...
Bumps [psycopg2-binary](https://github.com/psycopg/psycopg2 ) from 2.8.4 to 2.8.6.
- [Release notes](https://github.com/psycopg/psycopg2/releases )
- [Changelog](https://github.com/psycopg/psycopg2/blob/master/NEWS )
- [Commits](https://github.com/psycopg/psycopg2/commits )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:01:36 +01:00
dependabot-preview[bot]
5ae87afecd
Bump pytz from 2019.3 to 2021.1 ( #3545 )
...
Bumps [pytz](https://github.com/stub42/pytz ) from 2019.3 to 2021.1.
- [Release notes](https://github.com/stub42/pytz/releases )
- [Commits](https://github.com/stub42/pytz/compare/release_2019.3...release_2021.1 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-01 20:01:13 +01:00
James Greenhill
cd7ccc779e
Run all connections through clickhouse connection pooler ( #3495 )
...
* Use clickhouse connection pooler to avoid connections from stepping on eachother
* build reqs
2021-02-26 12:54:35 -08:00
dependabot[bot]
070fa181d2
Bump cryptography from 3.2 to 3.3.2 ( #3281 )
...
Bumps [cryptography](https://github.com/pyca/cryptography ) from 3.2 to 3.3.2.
- [Release notes](https://github.com/pyca/cryptography/releases )
- [Changelog](https://github.com/pyca/cryptography/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/pyca/cryptography/compare/3.2...3.3.2 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-10 12:20:52 +01:00
James Greenhill
55db17eefb
Remove CH Pool as dependency ( #3279 )
2021-02-09 16:41:10 -08:00
Karl-Aksel Puulmann
58327b406d
Update clickhouse-driver ( #3265 )
...
We're having a lot of clickhouse noise in sentry, keeping good hygene by
keeping up.
Changelogs:
- https://github.com/mymarilyn/clickhouse-driver/blob/master/CHANGELOG.md
- https://github.com/ericmccarthy7/clickhouse-pool/releases/tag/v0.4.3
2021-02-09 19:40:50 +02:00
Michael Matloka
481e9ddc6f
Don't install unused pandas and numpy ( #3034 )
...
* Don't install unused pandas and numpy
* Use built-in NaN instead of Numpy's
2021-01-21 13:47:18 +01:00