Christopher Orr 🏴󠁧󠁢󠁳󠁣󠁴󠁿
banner
orr.dev
Christopher Orr 🏴󠁧󠁢󠁳󠁣󠁴󠁿
@orr.dev
Knows some things about computers, and baking shortbread.

📍 Berlin
https://twitter.com/orrc
https://orr.dev/
What's Phil Mitchell doing behind the partition at the back?
December 6, 2025 at 1:51 AM
This one from Berlin airport is my favourite… and it doesn't even point to a web URL!
July 6, 2025 at 8:15 PM
Thanks for the reply. Looks like the opening `{` was missed from the Customer.io unsubscribe link. No need to remove me manually, thanks.
February 12, 2025 at 10:25 AM
February 3, 2025 at 11:40 PM
Our "Urine-free kettle guarantee" sign has people asking a lot of questions already answered by the sign.
January 22, 2025 at 1:34 PM
Meanwhile, here's the diff-of-the-day for our Amplitude integration…
January 13, 2025 at 2:11 PM
Anyway… the good news is that we can ignore the docs: the deletion API *does* in fact accept this newly acquired definitely-not-an-integer `id`.

Of course, it returns HTTP 202 rather than the documented HTTP 204 — but it works! 👍
January 6, 2025 at 5:32 PM
At this point, I'm taking the docs with some big grains of salt.

The deletion API should return HTTP 204 with no response body. So why can I pass a `format` parameter to choose between JSON or CSV? 🤔

(requesting a CSV response will earn you an HTTP 500)

posthog.com/docs/api/per...
January 6, 2025 at 5:32 PM
Supposedly I can only look up a single user if I know their integer `id` value. But it's possible to search by `distinct_id`, which will return the number I need! 🥳

However, the response has the `uuid` string that the docs mention (but don't explain), along with the EXACT SAME VALUE as the `id`… 😵‍💫
January 6, 2025 at 5:32 PM
I'm implementing account deletion.

Deleting a PostHog profile means you can't later use the same `distinct_id`. Sounds great — we assign our users a UUID and use that when sending data to PostHog.

So then what's this mysterious integer `id` that the deletion API needs?

posthog.com/docs/api/per...
January 6, 2025 at 5:32 PM
Oh interesting.. no more info about `previous_attributes` in events 🤔 Plus no more `expand` for API requests!
December 29, 2024 at 1:15 PM
The excellent Refined GitHub browser extension will at least minimise and dim such PRs by default:
github.com/refined-gith...
November 12, 2024 at 11:43 AM