Skip to content

capture creation and deletion events#2363

Open
lunika wants to merge 6 commits into
mainfrom
backend/capture_event
Open

capture creation and deletion events#2363
lunika wants to merge 6 commits into
mainfrom
backend/capture_event

Conversation

@lunika
Copy link
Copy Markdown
Member

@lunika lunika commented May 28, 2026

Purpose

We want to capture some events in the backend application. We are starting with capturing when a document is created or deleted. For this we use the PostHog SDK, and we created a dedicated helper.

Proposal

  • ♻️(backend) split posthog configuration
  • ♻️(frontend) split posthog conf and how sdl is initialized
  • 📈(backend) create a utils to capture event with posthog
  • 📈(backend) capture an event when a document is created and deleted

lunika added 4 commits May 28, 2026 14:57
The posthog information were only available using the POSTHOG_KEY
settings. We split it in POSTHOG_KEY and POSTHOG_HOST to use them with
the pyhton posthog sdk
Reflect the changes made about posthog by the backend application. The
posthog config is split in POSTHOG_KEY and POSTHOG_HOST properties.
We want to capture event with posthog. We created a utils for this
reposible to send the event or not if posthog is configured.
When a document is created and deleted, we capture an event and we send
it to posthog.
@lunika lunika requested a review from AntoLC May 28, 2026 12:59
@lunika lunika self-assigned this May 28, 2026
@lunika lunika added enhancement improve an existing feature backend labels May 28, 2026
@lunika lunika changed the title capture creating and deletion events capture creation and deletion events May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Size Change: 0 B

Total Size: 4.32 MB

📦 View Changed
Filename Size Change
apps/impress/out/_next/static/0072f7e7/_buildManifest.js 656 B +656 B (new file) 🆕
apps/impress/out/_next/static/d6b57e45/_buildManifest.js 0 B -656 B (removed) 🏆

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend enhancement improve an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants