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

New view to expose flag state as JSON #449

Open
shaungallagher opened this issue Jul 19, 2022 · 3 comments
Open

New view to expose flag state as JSON #449

shaungallagher opened this issue Jul 19, 2022 · 3 comments

Comments

@shaungallagher
Copy link
Contributor

Waffle currently has a view to expose flag state as Javascript via the WaffleJS endpoint.

But there are a number of use cases, e.g. backend API calls, where it would be preferable to expose that state in a serialized format like JSON.

For use cases like an audit dashboard, the view might also expose metadata such as the total number of active and and inactive flags of each type, and the number of stale flags (i.e. more than X days since last toggled).

I propose a new backend function that queries the database and returns this data, and a new endpoint that returns the data as JSON.

@clintonb
Copy link
Collaborator

Cool. Feel free to discuss here and/or open a pull request.

@cole-jacobs
Copy link
Contributor

Awesome. With this merged, when do you plan to cut a new release? Looking forward to getting this from pypi.

@clintonb
Copy link
Collaborator

@cole-jacobs new release should hit PyPI in a few minutes.

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

3 participants