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

145 Commits

Author SHA1 Message Date
ted kaemming
0944412f48
feat: Support marking materialized columns as disabled and dropping them (#26068) 2024-11-13 10:57:27 -08:00
ted kaemming
1544d3a0cf
refactor: Simplify materialized column implementation strategy switching (#26050) 2024-11-12 10:35:30 -06:00
Nikita Vorobev
5ae29f24db
feat(alerts): Add a regular job to check alerts (#22762)
Co-authored-by: Julian Bez <julian@posthog.com>
2024-08-15 09:26:40 +01:00
Sandy Spicer
eac199d24a
chore: upgrade python to 3.11 (#23206) 2024-06-27 14:16:27 -07:00
Julian Bez
6c95fd18ba
chore(ruff): Add ruff rules for exception handling (#23251) 2024-06-27 12:39:21 +01:00
Sandy Spicer
6c23c9bd89
revert: "chore: upgrade python to 3.11 🐍" (#23198)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-06-24 11:50:48 -07:00
Julian Bez
5617963e7a
chore: Update pyproject.toml for Python 3.11 (#23181) 2024-06-24 15:42:47 +01:00
Ben White
f930bf59cd
chore: Swap to just /api/billing (#22545) 2024-05-30 13:25:02 +01:00
Julian Bez
e522d9d7ee
fix(subscriptions): Fix possibly flapping test (#21934) 2024-04-29 10:22:52 +00:00
Julian Bez
9576fab1e4
chore: Add Pyupgrade rules (#21714)
* Add Pyupgrade rules
* Set correct Python version
2024-04-25 08:22:28 +01:00
Julian Bez
475fee5ca6
fix: Fix subscriptions sending twice (#21581) 2024-04-18 17:38:57 +00:00
Neil Kakkar
9f43a3f4cd
feat(ci): split out temporal, make tests faster (#21636) 2024-04-18 16:25:33 +01:00
timgl
cfcbfadb1b
fix: Fix subscription deliveries happening multiple times (#21419) 2024-04-09 08:03:20 +01:00
Julian Bez
487ca39064
chore: Enable more ruff rules (#21043) 2024-04-08 16:21:51 +01:00
David Newell
4e22252235
chore: run clustering in background task (#21080) 2024-03-28 12:12:51 +00:00
David Newell
ea340fc765
feat: embed errors (#20752) 2024-03-08 18:12:06 +00:00
Paul D'Ambra
0d476baeb6
fix: fewer loopy loops (#20678)
* fix: fewer loopy loops

* and add a rate limit to the queue

* swallow open AI errors

* count different failures differently
2024-03-03 13:59:31 +00:00
Paul D'Ambra
5e89d9124a
chore: even more logging (#20612)
* chore: even more embeddings logging

* and more settings

* fix

* fix
2024-02-28 21:24:39 +00:00
David Newell
4f6d9c8673
feat: generate recording text embeddings (#20046)
* make migration

* general flow

* abstract shared methods

* generate input

* remove postgres migration

* generate embedding strings

* remove random file

* Update query snapshots

* Update query snapshots

* feat: create periodic replay embedding

* first sketch of table

* batch and flush embeddings

* add default to timestamp generation

* fetch recordings query

* save first embeddings to CH

* dump session metadata into tokens

* fix lint

* brain dump to help th future traveller

* prom timing instead

* fix input concatenation

* add an e :/

* obey mypy

* some time limits to reduce what we query

* a little fiddling to get it to run locally

* paging and counting

* Update query snapshots

* Update query snapshots

* move the AI stuff to EE for now

* Update query snapshots

* kick off the task with interval from settings

* push embedding generation onto its own queue

* on a different queue

* EE to the max

* doh

* fix

* fangling

* Remove clashes so we can merge this into the other PR

* Remove clashes so we can merge this into the other PR

* start wiring up Celery task

* hmmm

* it's a chord

* wire up celery simple version

* rename

* why is worker failing

* Update .run/Celery.run.xml

* update embedding input to remove duplicates

* ttl on the table

* Revert "update embedding input to remove duplicates"

This reverts commit 9a09d9c9f0.

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Paul D'Ambra <paul@posthog.com>
2024-02-14 12:50:42 +00:00
Ben White
6a840f4dc9
fix: Add metrics for all celery queues (#20056)
Add metrics for all celery queues
2024-01-31 08:49:14 +00:00
Julian Bez
c869841eb1
fix: Add expires to report export child tasks (#19833) 2024-01-18 13:37:19 +00:00
Ben White
7f174faf40
feat: Celery tasks refactor (#19827) 2024-01-18 14:28:10 +01:00
Ben White
9209a5d46a
fix: Revert short circuit (#19817) 2024-01-17 18:25:20 +01:00
Ben White
45c4443d05
fix: Add timeout to subscription reports (#19811) 2024-01-17 17:38:14 +01:00
Frank Hamand
1e42154d34
fix: Temporarily disable deliver subscription report task (#19814) 2024-01-17 17:27:30 +01:00
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