Skip to content
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

Feature flag is not returned from unleash edge frontend API #416

Closed
mohamedfasil-zee opened this issue Feb 5, 2024 · 3 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@mohamedfasil-zee
Copy link

mohamedfasil-zee commented Feb 5, 2024

It seems to be user not using custom context fields correctly

@mohamedfasil-zee mohamedfasil-zee added the bug Something isn't working label Feb 5, 2024
@kwasniew kwasniew self-assigned this Feb 5, 2024
@kwasniew
Copy link

kwasniew commented Feb 5, 2024

@mohamedfasil-zee userType is a custom property. Custom properties should be handled like this: <base url>/api/frontend?properties%5BuserType%5D=premium&userId=123
frontend API is very forgiving here and can handle userType that is not nested into custom properties. However Edge is more strict about it.
You'll find which properties are built-in and which are custom here: https://docs.getunleash.io/reference/unleash-context#structure

If you use our SDKs they should handle it automatically e.g. here is a flutter example: https://github.com/Unleash/unleash_proxy_client_flutter/blob/main/test/unleash_proxy_client_flutter_test.dart#L495

@mohamedfasil-zee
Copy link
Author

Thanks a lot @kwasniew
Closing this issue.

@mohamedfasil-zee
Copy link
Author

@kwasniew just one point to consider is this behaviour is different on unleash core frontend API vs unleash edge frontend API
FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants