Skip to content

Fix the alias api in the libraries to match the docs #89

@lharries

Description

@lharries

The backend library types and the docs have diverged. I've gone through the different libraries and updated the errors I've seen

Currently the docs state that the API is as follows: posthog.alias('distinct_id', 'alias_id); where alias_id is added as an alias of the user with distinct_id. The properties of user with distinct_id take president

Library fixes:

  1. iOS. Docs are the wrong way around, fix here: Update alias doc strings posthog-ios#34
  2. Python. Fix for library and docs Update alias docs posthog-python#82

The other libraries are fine or it's not implemented

I've also noted an error in our own code where it looks like we are using it wrong:
PostHog/posthog#13906

  • @lharries confirm that aliasing works as expected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions