Skip to content

Create Reference function is inconsistent across different Stream clients #87

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sksin28 opened this issue Jan 24, 2019 · 0 comments
Open

Comments

@sksin28
Copy link

sksin28 commented Jan 24, 2019

The create_model_reference function creates a reference using model name.
This is inconsistent as compared to other Stream clients.

For example, an activity added using stream-django results in actor reference being account.user:123 (based on model). In other Stream clients (such as stream-js or stream-python), the reference for user will be SU:123. This results in failure of data enrichment when using different Stream Clients.

Python- https://github.com/GetStream/stream-python/blob/35eec2162d2ef25411f4d76eeef078f98a2893a5/stream/users.py#L10
JS- https://github.com/GetStream/stream-js/blob/a22255b2e3b0da0b19f7e5b2597b1f253e3e4a1c/src/lib/user.js#L25

Our use case is using Django backend to add activities and use React Native as front end to render. But this results in issues related to enrichment.

@sksin28 sksin28 changed the title Create Reference function is consistent across different Stream clients Create Reference function is inconsistent across different Stream clients Jan 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant