-
Notifications
You must be signed in to change notification settings - Fork 14
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 backend completion #1582
Conversation
backend/packages/Upgrade/src/api/controllers/FeatureFlagController.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/controllers/FeatureFlagController.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/repositories/FeatureFlagRepository.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This currently returns keys for feature flags the have status 'disabled' or 'archived'. We want to only return keys for feature flags that have a status of 'enabled'
Thanks @bcb37, I have missed that part of 'disabled' and 'archived'. |
backend/packages/Upgrade/src/api/controllers/validators/FeatureFlagValidator.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/controllers/FeatureFlagController.ts
Outdated
Show resolved
Hide resolved
backend/packages/Upgrade/src/api/controllers/FeatureFlagController.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VivekFitkariwala @RidhamShah Do you think we need test cases in ExperimentAssignmentService.test.ts
that verify that the inclusionExclusionLogic()
method does what it's supposed to do?
@bcb37 We should have test cases which should cover inclusion and exclusion test cases. @RidhamShah can you add test cases related to Feature flag inclusion and exclusion? |
@bcb37 @danoswaltCL I have added integration test cases for checking include/exclude logic. We are now review and merge this branch. |
Added logic for segment inclusion/exclusion of users.
This contains a new function getKeys() which returns the keys of all feature-flags the user can include provided the context.