Commit Graph

30049 Commits

Author SHA1 Message Date
Sandy Spicer
6ad0f94755 feat: event schema, push posthog schema, fix some things (#40846)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 12:35:23 -08:00
Rafael Audibert
2653b2f5b4 feat(toolbar): Add PII masking functionality to toolbar (#40909)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-11-05 20:31:04 +00:00
Kim Svatos Dugan
444db7516d feat(replay): create new synthetic playlist for newly detected URL (#40895)
## Problem

We want to detect when a "new" url is seen, create a collection out of it, and (later PR) send a notification in the weekly digest about this new URL

I went back and forth on some decisions, but heres where they stand rn: 
1. "New URLS": havent been seen in 90 days. Made this decision because I was worried about the performance of checking all URLs in perpetuity -- also, seems semi reasonable, if a URL isnt seen for 3 months then is seen again, thats still interesting? 
2. Pattern matching: I was worried about params as part of URLs, so we do some regex stuff to try and group URLs together into one playlist when the only difference is a id/uuid/hash as part of a url (ie, /settings/2 will be grouped with settings/3) 
3. LIMITs / short circuits: again seemed a semi-sensible tradeoff on exact accuracy vs performance

## Changes

1. defined new synthetic playlist source `NewUrlsSyntheticPlaylistSource() `
2. This playlist source can actually return multiple playlists (one per new URL)
3. 2 caches -- normalized_url -> count (for list display), and normalized_url -> list of session ids (for populating the collection when a user clicks into it) 
4. when user clicks on a collection to watch, use URL hash to lookup session IDs for that collection in the cache
4. do lots of URL normalizing/pattern matching / logic to ensure we're grouping URLs together, and only showing URLS first seen in the last 14 days (and not otherwise within the last 90 days) 
5. limit this to 20 playlists/urls
3. gate all this behind a flag
## How did you test this code?

had claude help write lots of date-checking and url-pattern-matching tests
test shows me locally running a helper (to clear cache, offscreen) before refreshing, see a ~3-4 second cold load time

[Screen Recording 2025-11-04 at 11.22.01 AM.mov <span class="graphite__hidden">(uploaded via Graphite)</span> <img class="graphite__hidden" src="https://app.graphite.dev/user-attachments/thumbnails/f8803d5d-c241-4c8b-91f4-ee00b0a06394.mov" />](https://app.graphite.dev/user-attachments/video/f8803d5d-c241-4c8b-91f4-ee00b0a06394.mov)


<!-- Docs reminder: If this change requires updated docs, please do that! Engineers are the primary people responsible for their documentation. 🙌 -->

👉 _Stay up-to-date with [PostHog coding conventions](https://posthog.com/docs/contribute/coding-conventions) for a smoother review._

## Changelog: (features only) Is this feature complete?

<!-- Optional, but helpful for our content team! -->
<!-- Yes if this is okay to go in the changelog. No if it's still hidden behind a feature flag, or part of a feature that's not complete yet, etc.  -->
2025-11-05 12:29:20 -08:00
PostHog Bot
782998e5ef chore(llma): Update LLM costs (#40972)
Co-authored-by: Radu-Raicea <15457029+Radu-Raicea@users.noreply.github.com>
2025-11-05 20:19:14 +00:00
Rafael Audibert
e630c27206 refactor: Make use of ph-no-capture (#40911) 2025-11-05 16:56:46 -03:00
Danilo Campos
be250f53f3 chore: Migrate MCP to use zip file vended by posthog/examples (#40969) 2025-11-05 19:21:52 +00:00
Eric Duong
c348ce5cfc chore: sql editor fix diff (#40904)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 10:46:34 -08:00
Haven
05cd6e38ab chore(workflows): move product into tools section, alpha->beta (#40963) 2025-11-05 18:41:45 +00:00
Frank Hamand
8807dcd10f feat(logs): support ?token= query param in capture logs (#40954)
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-11-05 18:15:08 +00:00
Tue Haulund
274d878762 chore: added debug output to identify issue with user notifications (#40956) 2025-11-05 18:03:46 +00:00
Haven
aafa854ce3 feat(workflows): use SES tenants (#40612) 2025-11-05 09:42:00 -08:00
Paweł Szczur
40cfa5f6c0 chore(clickhouse): decrease max part size on development (#40959) 2025-11-05 17:27:16 +00:00
Alex Lebedev
41b9efc8ec feat(ph-ai): Get a limit of how many sessions to summaries from user's query. (#40953) 2025-11-05 18:25:27 +01:00
Aleksander Błaszkiewicz
0ea2a5aab5 feat: make breakdowns FAST (#40568)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 17:55:25 +01:00
Ross
f0ec2c018c chore(batch-exports): Improve reporting of errors (#40948)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Tomás Farías Santana <tomas@tomasfarias.dev>
2025-11-05 16:44:22 +00:00
Ross
ddd633328c fix(batch-exports): Fix bug fetching table columns in Databricks (#40944)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 16:37:58 +00:00
Jovan Sakovic
f6905ed313 feat: add DatabaseSchemaEndpointTable to SQL Editor (#40648)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 15:43:39 +00:00
PostHog Bot
7830a9aa35 chore(deps): Update posthog-js to 1.288.0 (#40950) 2025-11-05 16:43:29 +01:00
Daniel Escribano
9a6eda96eb chore: skip backup runs if one is already executing (#40943) 2025-11-05 15:40:38 +00:00
Ben White
e8c2da408f feat: Added remote config option for surveys (#40469) 2025-11-05 15:29:27 +00:00
Aleksander Błaszkiewicz
2af3e39afd fix: disable auto save on new feature (#40949) 2025-11-05 16:17:05 +01:00
Georgiy Tarasov
beadde8e4e feat(max): parallel tool calls (#39954)
Co-authored-by: kappa90 <e.capparelli@gmail.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 16:08:31 +01:00
Alex V
e49db4138f feat(heatmaps): exporter heatmaps to PNG (#40917)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 15:54:44 +01:00
Yasen
7f0ee59867 fix: Add display names for two missed auth providers. (#40939) 2025-11-05 16:51:09 +02:00
Gustavo H. Strassburger
5ea9753d03 fix(flags): backwards compatibility for $groups (#40942) 2025-11-05 11:44:13 -03:00
Julian Bez
429354b973 feat(ci): implement check/update mode for visual regression tests (#40848) 2025-11-05 15:37:21 +01:00
Alex Lebedev
d2790da948 feat(max): Validate issues for session summaries with videos (behind FF) (#38507) 2025-11-05 14:36:10 +00:00
Radu Raicea
939b11a8c9 feat(llma): better tokens description (#40938) 2025-11-05 14:31:59 +00:00
Jovan Sakovic
3c7aa440b2 fix: outer-most asterisk select now runs with projection pushdown (#40873) 2025-11-05 14:12:14 +00:00
Anirudh Pillai
3de6f8e1a8 chore(trends): unstacked bar chart as default + previous series first (#40926)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 14:11:06 +00:00
Paweł Szczur
5d723de47f feat: fix queries and tests before upgrading to ClickHouse v25.8.11.66 (#40927) 2025-11-05 13:55:49 +00:00
Frank Hamand
94008e956b feat(logs): add token dropper to capture-logs (#40936) 2025-11-05 13:54:39 +00:00
Manoel Aranda Neto
33a344e841 feat: cli with experimental proguard mapping support (#40934) 2025-11-05 14:45:50 +01:00
Emanuele Capparelli
fb9bda5802 fix(ph-ai): fix overflowed SQL visualizations (#40933)
## Problem
In the Thread component, the visualization answer has a fixed height constraint applied to the entire box, which causes issues with proper scrolling behavior when content overflows.

Before:

![image.png](https://app.graphite.com/user-attachments/assets/5880ac06-2088-4e2e-b600-fea031a25949.png)

After:

![image.png](https://app.graphite.com/user-attachments/assets/e1ba2abb-84ab-4e17-8202-21b6c9791e40.png)

## Changes
Fixed the overflowing issue.

## How did you test this code?
Locally
2025-11-05 13:29:05 +00:00
Julian Bez
9d7d8801dc fix(migration-analyzer): correct misleading lock messaging and scoring (#40913) 2025-11-05 13:21:38 +00:00
Lucas Faria
8455fb7ef3 chore: add desktop recordings to django admin (#40896) 2025-11-05 10:18:39 -03:00
Tom Owers
45b0d820c9 fix(data-warehouse): Fix imports (#40931) 2025-11-05 12:39:22 +00:00
Frank Hamand
ce804b5ee0 fix(logs): fix logs capture building old image (#40932) 2025-11-05 12:34:04 +00:00
Rafael Audibert
edd30c8a60 feat: Use managed viewset views for revenue analytics (#40352)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 09:27:25 -03:00
Frank Hamand
7e830ccd10 chore(logs): rename log-capture to capture-logs (#40929) 2025-11-05 12:24:30 +00:00
PostHog Bot
6a3e4cffaa chore(deps): Update posthog-js to 1.287.0 (#40928) 2025-11-05 12:24:24 +01:00
Frank Hamand
d2233b19c9 chore(logs): listen on /i/v1/logs/ in log capture (#40925) 2025-11-05 11:20:06 +00:00
Meikel Ratz
6f34e5b92d feat(cdp): adjust it to use cohorts for behavioral consumer (#40555)
Co-authored-by: Ben White <ben@posthog.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 12:01:10 +01:00
Yasen
03c703d7d9 feat: Login/logout activity logging (#40739)
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-05 13:00:42 +02:00
Paul D'Ambra
38d388c77e fix: typo in session-change key (#40922) 2025-11-05 10:56:44 +00:00
Georgiy Tarasov
44ef20fdfd chore: bump posthoganalytics (#40921) 2025-11-05 10:45:54 +00:00
PostHog Bot
b133a83e5e chore(deps): Update posthog-js to 1.286.0 (#40923) 2025-11-05 11:43:55 +01:00
Paul D'Ambra
44d48462c9 fix: exported asset lifetimes have to match s3 lifecycles (#40903)
turns out you can't merge the top of a graphite stack in github without editing what you're merging it into so https://github.com/PostHog/posthog/pull/40854/ was merged into the aether

remimplement here

-----

pairs with https://github.com/PostHog/posthog-cloud-infra/pull/5608

we expire exported assets in s3 on different timers
but we don't tell people
and we don't reflect that in how we set expiry in postgres

(i'm not going to go back and fix existing exports in postgres since they've been mismatched with s3 for the longest time and nobody has complained)
2025-11-05 10:25:53 +00:00
Paul D'Ambra
79300bf51e fix: show loading state when saving or loading the team settings in replay settings (#40875)
i've noticed a few times that i've clicked a settings toggle and got no visual feedback so not been sure that i actually clicked it...

let's feed back visually

![2025-11-04 15.24.06.gif](https://app.graphite.dev/user-attachments/assets/6e914da1-18c7-4514-a6d5-2ffb58cf23ea.gif)
2025-11-05 10:22:16 +00:00
PostHog Bot
2698bde71b chore(llma): Update LLM costs (#40920) 2025-11-05 10:20:07 +00:00