Add server-side alias helper
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
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.
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
- Dominant language
- Elixir
- Stars
- 66
- Forks
- 33
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 21
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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.
More from PostHog/posthog-elixir
-
enhancement feature/feature-flags
Difficulty 4/5 3-5 days Newbie friendliness 45/100
PostHog/posthog-elixir#215 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
PostHog/posthog-elixir#209 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 55/100
PostHog/posthog-elixir#149 ·
Maintainers usually reply within 1 day
-
bug enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
PostHog/posthog-elixir#147 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
PostHog/posthog-elixir#146 ·
Maintainers usually reply within 1 day
All issues in PostHog/posthog-elixir
Similar issues
-
@swmansion/popcorn: published .d.ts files lack extensions on relative imports, breaking moduleResolution node16/nodenextPossibly taken @Huyvux12 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
software-mansion/popcorn#929 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ash-project/ash#3127 ·
Maintainers usually reply within 1 day
-
Bug: Table layout and date column are cut off on mobile screens on the Tournaments -> History pageOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
hexlet-codebattle/codebattle#2375 ·
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
wintermeyer/vutuv#2388 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100