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

A way to get all feature flags for current project #52

Closed
joachimbulow opened this issue Aug 22, 2024 · 5 comments
Closed

A way to get all feature flags for current project #52

joachimbulow opened this issue Aug 22, 2024 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@joachimbulow
Copy link

Describe the feature request

I think a pretty common use case (maybe?) would be fetching all flags to apply properties in external analytics platform.

This would be very easy with a way to fetch all flags.

Can we get this asap?

Might look into a solution myself as well

Background

We use Mixpanel and want to propagate backend flags into events using super properties without updating our client for every new flag.

Solution suggestions

Simple event like what it seems you can in react
https://stackoverflow.com/questions/76649494/is-there-a-way-to-get-all-flags-from-unleash-in-react

@joachimbulow joachimbulow added the enhancement New feature or request label Aug 22, 2024
@joachimbulow
Copy link
Author

Exists on the client toggles

@github-project-automation github-project-automation bot moved this from New to Done in Issues and PRs Aug 22, 2024
@joachimbulow joachimbulow reopened this Aug 22, 2024
@github-project-automation github-project-automation bot moved this from Done to New in Issues and PRs Aug 22, 2024
@joachimbulow
Copy link
Author

Actually, reopened due to an issue i am not sure if i can easily circumvent:

Toggles on the client only contain the flags which are actually active.

I need a surefire way to get all flags for a project. Any hints?

@ivarconr
Copy link
Member

I need a surefire way to get all flags for a project. Any hints?

If you use Unleash Edge you can use the "/api/frontend/all" endpoint to get all flags. Keep in mind this will increase the payload sent to all clients.

@ivarconr ivarconr self-assigned this Aug 23, 2024
@joachimbulow
Copy link
Author

Legend, will try that in a minute

@joachimbulow
Copy link
Author

Alright hit that endpoint manually.
Was able to leverage the ToggleConfig class fromJson method to parse as well 🙏
Not really sure why you decided to strip the name from that one?
Its in the payload, so just had to manually do rawJson[name] 🤔

Anyway thanks a lot we firing mad super properties all over the place now

@github-project-automation github-project-automation bot moved this from Support rotation to Done in Issues and PRs Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants