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 backend completion #1582

Merged
merged 22 commits into from
Jun 17, 2024
Merged

Feature Flag backend completion #1582

merged 22 commits into from
Jun 17, 2024

Conversation

RidhamShah
Copy link
Collaborator

@RidhamShah RidhamShah commented May 24, 2024

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.

@RidhamShah RidhamShah self-assigned this May 24, 2024
@RidhamShah RidhamShah linked an issue May 24, 2024 that may be closed by this pull request
bcb37
bcb37 previously requested changes May 24, 2024
Copy link
Collaborator

@bcb37 bcb37 left a 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'

@RidhamShah
Copy link
Collaborator Author

Thanks @bcb37, I have missed that part of 'disabled' and 'archived'.

Copy link
Collaborator

@bcb37 bcb37 left a 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?

@VivekFitkariwala
Copy link
Collaborator

@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?

@RidhamShah
Copy link
Collaborator Author

@bcb37 @danoswaltCL I have added integration test cases for checking include/exclude logic. We are now review and merge this branch.

@RidhamShah RidhamShah requested a review from bcb37 June 14, 2024 09:42
@danoswaltCL danoswaltCL merged commit 54882cf into dev Jun 17, 2024
8 checks passed
@danoswaltCL danoswaltCL deleted the feature/feature-flag-backend branch June 17, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend Feature flag API endpoint
4 participants