0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-24 18:07:17 +01:00
Commit Graph

41 Commits

Author SHA1 Message Date
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
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
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
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
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
Tim Glaser
e8d64117d3
Remove legacy funnel code (#2700)
* Remove legacy funnel code

* recsw

* Fix test
2020-12-08 18:23:46 +01:00
Noah Rickles
d924181fce
Issue #2573, Add django-axes (#2582)
* Closes #2573 adds django-axes middleware with default configuration, disabled during tests

* Added django-axes to requirements

* Moved environment variable declaration in tests script to see if django-axes is disabled during CI tests

* Removed disabling of django-axes in the tests script, updated expected number of queries in tests
2020-12-02 11:01:46 +01:00
Marius Andra
ad86e43cce
bump posthoganalytics to 1.1.3 (#2475) 2020-11-23 17:54:02 +01:00
Michael Matloka
b7b9e8caf3
Remove some seemingly unused requirements and use pip-compile (#2192)
* Remove some seemingly unused requirements

* Remove a few more

* Bring back dependencies of other requirements

* pip-compile prod requirements

* Sync with master updates

* Fix grep

* Revert "Fix grep"

This reverts commit 2e6538cad4.

* Fix grep but using cut

* Clean up and regenerate requirements

* Simplify requirements-dev

* Fix fakeredis import in production

* Black
2020-11-10 10:17:48 +01:00