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

feat: adds RequireFlagsEnabled decorator #1159

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kaushalkapasi
Copy link

@kaushalkapasi kaushalkapasi commented Mar 14, 2025

This PR

  • Feature: Adds a RequireFlagsEnabled decorator to allow a simple, reusable way to block access to a specific controller or endpoint based on the value of a list of one, or many, boolean flags

Notes

  • This is a draft PR until tests are added. Discussions on the approach & implementation are welcome!

Follow-up Tasks

Todo:

  • Add & update tests for the Nest SDK

How to test

cd packages/nest && npm test open-feature-sdk

…er & endpoint access based on boolean flag values

Signed-off-by: Kaushal Kapasi <[email protected]>
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

Successfully merging this pull request may close these issues.

1 participant