0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 12:21:02 +01:00
Commit Graph

120 Commits

Author SHA1 Message Date
Ellie Huxtable
0257b2bcb9
chore: Use ruff formatter (#18207)
* Use ruff formatter

Ruff is now also a formatter! And it runs in a fraction of a second
across our whole codebase vs "I waited more than 30s and cancelled it
because I got bored".

* Config and command -> ruff

* Run 'ruff format .'

* Update query snapshots

* Run 'ruff format .'

* Fix format after commit hook

* Update query snapshots

* Fix type error - ignore comment moved

* Exclude hogql grammar from formatting and reverted grammar

* Run format

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tom Owers <tom@paace.co>
2023-10-31 13:41:57 +00:00
Tom Owers
5513be7731
chore: upgraded Ruff linter (#18188)
* Upgraded Ruff linter

* Formatted whole codebase with new ruff rules

* Revert import removal

* Fixed mypi issues or added ignores

* Fixed schema formatting

* Fixed hogvm failing tests

* Remove duplicate key in list
2023-10-26 12:38:15 +02:00
Paul D'Ambra
208451b1a0
fix: don't process subscriptions with no assets (#17988) 2023-10-16 14:51:24 +02:00
Paul D'Ambra
29d21cdc01
fix: don't run exports in parallel for subscriptions (#17743)
* fix: don't run exports in parallel for subscriptions

* fix
2023-10-03 19:50:49 +01:00
Paul D'Ambra
00b5a86139
chore: some more logging (#17721) 2023-10-02 20:30:03 +01:00
Paul D'Ambra
e983e10ed1
fix: subscriptions revoke child exports (#17700)
* fix: subscriptions should revoke children on timeout

* fix: subscriptions should revoke children on timeout

* check state before revoking

* Update query snapshots

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-10-01 11:06:00 +00:00
Paul D'Ambra
0cf99556c3
chore: simpler again for subscription task (#17693)
* chore: simpler again for subscription task

* fix
2023-09-29 16:47:21 +00:00
Paul D'Ambra
fbe6ee31f4
chore: prom counters and timers for subscriptions (#17689)
* chore: prom counters and timers for subscriptions

* Apply suggestions from code review
2023-09-29 13:53:33 +00:00
Paul D'Ambra
8a83e3ebe9
chore: extra image export logging (#17687)
* and logging

* Fix

* one less statsd counter

* and a little more

* fix
2023-09-29 11:06:16 +00:00
Paul D'Ambra
a87b247cd3
feat: step towards feature folders for replay backend (#17484)
* feat: step towards feature folders for replay backend

* Update query snapshots

* Update query snapshots

* that got mypy very excited

* fix

* fix

* fix

* dnagling snapshot

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-09-18 13:35:59 +01:00
Thomas Obermüller
63d6dbc101
chore(python): replace pytz usages with ZoneInfo (#17344) 2023-09-12 09:38:25 +00:00
Thomas Obermüller
215de61589
chore(python): replace pytz.utc with ZoneInfo('UTC') (#17310) 2023-09-12 11:05:33 +02:00
Neil Kakkar
f922dae994
fix: allow creating static cohorts for lifecycle (#16248)
Co-authored-by: psykomal <bkomalsai@gmail.com>
2023-06-28 14:57:47 +01:00
Ben White
4783dec288
chore: Step 1 to remove posthog-cloud repo (#15898) 2023-06-15 10:33:19 +02:00
Marius Andra
bd8d4afa6e
feat(insights): trends hogql volume (#15672) 2023-05-25 16:31:35 +01:00
Michael Matloka
08eab1f9c0
style: Fix "Posthog" capitalization (#15426)
* style: Fix "Posthog" capitalization

* Update UI snapshots for `chromium` (1)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2023-05-09 18:31:34 +02:00
Neil Kakkar
06c5db6dcb
feat: calculate count of static cohort (#15370)
Co-authored-by: psykomal <bkomalsai@gmail.com>
2023-05-04 12:15:23 +00:00
Karl-Aksel Puulmann
91b20b0544
chore: remove clickhouse_is_replicated util (#14225) 2023-02-15 09:32:37 +02:00
Ben White
3234aaf081
feat: Billing limits take 2 (#14198)
* Revert "revert: Billing change (#14195)"

This reverts commit e0a65353e5.

* Fix up access
2023-02-13 14:43:53 -08:00
Ben White
e0a65353e5
revert: Billing change (#14195) 2023-02-13 08:58:30 +00:00
Emanuele Capparelli
037b635945
feat: chron job to rate limit orgs based on usage (#13521) 2023-02-13 09:03:22 +01:00
Ben White
dc3e1ed9e3
feat: Persist pinned recordings to S3 (#13473) 2023-01-12 09:23:51 +01:00
Michael Matloka
598baaf441
chore(deps): Remove obsolete django-rest-hooks requirement (#13349)
* chore(deps): Remove obsolete `django-rest-hooks` requirement

* Update snapshots

* Fix type annotations

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-12-19 10:06:21 +01:00
Emanuele Capparelli
aeda562c2e
fix: migrate billing correct deletion (#13344) 2022-12-15 10:35:04 +00:00
Emanuele Capparelli
943bb27d5e
fix: migrate billing ignore ids check (#13336) 2022-12-14 19:32:42 +00:00
Emanuele Capparelli
05cdbc3135
fix: migrate billing command (#13334)
* fix: migrate billing command

* fix types
2022-12-14 17:11:52 +00:00
Luke Harries
7abbbbea30
fix: feature flag autorollback (#13115)
prevent current day from being cut off
2022-12-05 23:13:41 +00:00
Karl-Aksel Puulmann
0d9b0bfb56
chore: Kill internal metrics (#12943)
* Remove capturing internal metrics

* Remove capturing internal metrics from FE

* Remove internal metrics from plugin-server

* Remove internal metrics from plugin-server

* Remove internal metrics internal dashboard type

* Clean up Dashboard.tsx

* Remove unused vars

* Remove endpoint, update imports

* Update rate limiting tests

* Update calculate event property usage tests
2022-11-28 10:34:27 +02:00
timgl
64c53a114e
fix(license): Improve license usage reliability (#12686)
* Improve license usage reliability

* fix

* do again

* Don't throw if already sent

* fix test

* add comment
2022-11-15 21:51:14 +00:00
Eric Duong
ef17c83089
feat(feature-flags): Auto rollback beta (#12485)
* api

* add performed_rollback

* add celery task and tests

* rollback test

* remove first and last

* add sentry stuff

* basic auto rollback UI

* fix errors

* testable

* add errors rollback ui

* clean up sentry keys

* clean up some ui stuff

* add some sentry context

* update ui

* fix celery

* Update posthog/api/feature_flag.py

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>

* add sentry instructions when not enabled

* add sentry context

* merge migration

* remove unnecessary field right now and update UI to 7 day trailing average

* fix migration

* fix frontend type

* activity

* reset migratioN'

* remove default

* update test

* add feature flag

* add view for conditions and make sure insight loads

* Update snapshots

Co-authored-by: Neil Kakkar <neilkakkar@gmail.com>
Co-authored-by: Li Yi Yu <li@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2022-11-02 21:15:47 -04:00
Ben White
d25ecd29d7
fix: Moved usage report out of ee (#12414) 2022-10-25 12:56:20 +02:00
Ben White
70f47510ab
fix: Usage report persons query (#12408) 2022-10-24 18:30:20 +00:00
Ben White
4b7f04b026
feat: Added backup option for billing service reporting (#12405) 2022-10-24 16:38:40 +00:00
Ben White
77d7efc500
fix: Schedule usage reports as individual tasks (#12398) 2022-10-24 17:08:51 +02:00
Karl-Aksel Puulmann
441e1e376b
chore(ci): Fix master branch tests (#12399)
* fix test_usage_report tests

buggy tests shipped in https://github.com/PostHog/posthog/pull/12383

* Ignore problematic lines
2022-10-24 14:33:33 +03:00
Ben White
0fdd5363a2
fix: Usage reporting format (#12383) 2022-10-21 19:13:02 +02:00
Ben White
683a4aab1a
fix: Check for active subscription to determine billing version (#12330) 2022-10-19 10:28:26 +00:00
Ben White
b4a401d532
feat: Billing V2 (#11986) 2022-10-19 08:58:36 +02:00
Paul D'Ambra
b5f07ae0ad
feat: add text cards to DB (#12110)
Problem
Stacked on top of #12067 so the commit history is weird :/

Changes
adds DB wiring to add text or insights to dashboard tiles

How did you test this code?
developer tests and running the site locally

 move insight to dashboard
 duplicate insight from insight view
 duplicate insight from card list view
 duplicate insight from list view
 duplicate insight from dashboard
 remove insight from dashboard
 add insight to dashboard
 delete dashboard
 duplicate dashboard
 set card color
🤔 set card layout - updating layout starts refresh loop for dashboards
I think these changes make it more obvious but this is the case in master too. -> It's fixed (or at least worked-around) in #12132
 update insight data updates dashboard view for that data
 rename insight from dashboard
2022-10-10 11:49:33 +01:00
Guido Iaquinti
fa7c706af8
style(flake8): enable E402 (#11707) 2022-09-07 16:11:55 +02:00
Michael Matloka
5d2ad6c7bb
chore(deps): Update black to 22.8.0 (#11596)
* chore(deps): Update `black` to `22.8.0`

* Format
2022-09-05 14:38:54 +02:00
Eric Duong
92ddf4072b
feat: materialize person and groups on events (#11363) 2022-08-30 12:31:32 +01:00
Ben White
5e594486a6
fix: Increased subscription asset gen to 10 minutes (#11543) 2022-08-30 08:54:43 +00:00
Rick Marron
771db55f39
chore(recordings): add recording counts to status report (#11401)
* chore(recordings): add recording counts to status report

* remove recordings_count_total
2022-08-22 08:10:02 -07:00
Michael Matloka
efa6d30723
style: Fix Python formatting issue (#11397) 2022-08-19 15:32:26 +00:00
Ben White
6cd5628562
fix: Don't export Insights that are deleted (#11375) 2022-08-19 07:49:23 +00:00
timgl
d51416afd3
feat(licensing): Automatically renew licenses (#10737) 2022-07-15 09:29:14 +01:00
Ben White
c835a30ee0
fix: Export issues (#10625)
* Add retries to image exporting
* Tried to remove shm usage for higher reliability
* Fixed next_delivery_date to only be reset if the rrule changes
2022-07-04 14:52:50 +00:00
Ben White
dbf3b5264d
fix: Slack unfurl alternative args (#10610) 2022-07-01 15:48:51 +00:00
Ben White
2390759d48
fix: Slack event timestamp (#10605)
* fix: Slack event timestamp
2022-07-01 14:32:39 +00:00