PostHog / PostHog/posthog-elixir
Add server-side alias helper
Nobody has claimed this yet.
- Dominant language
- Elixir
- Stars
- 65
- Forks
- 30
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 16
Description
Summary
Add a public server-side alias helper.
Why
sdk-specs marks alias as applicable to both client and server SDKs. Backend SDK users should be able to link a previous/existing ID to a new ID without manually constructing $create_alias events.
Current status
No public alias API is present in public_api.snapshot.
Suggested scope
- Add an idiomatic Elixir API for
$create_alias. - Accept previous/existing distinct ID and new alias ID.
- Validate both IDs are present/non-empty.
- Emit
event: "$create_alias", top-leveldistinct_idas the previous ID, andproperties.aliasas the new ID. - Route through normal capture/batching and future
before_sendhook. - Add tests and docs.
References
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with public_api.snapshot and the sdk-specs alias specification, then trace the existing capture and batching entry points. Add the public server-side alias API with validation, normal capture/batching and before_send routing, and add tests and documentation that verify the specified event and IDs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- elixir
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100