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

ClientLib changes for featureFlags to getKeys #1585

Merged
merged 18 commits into from
Jun 13, 2024

Conversation

RidhamShah
Copy link
Collaborator

@RidhamShah RidhamShah commented May 27, 2024

In this Pull Request, the ClientLib getFeatureFlags method invokes getAllFeatureFlags, which returns an array of feature flags associated with the key user. The getFeatureFlags method then returns true or false based on whether the specified feature-flag key is present in the array.

@RidhamShah RidhamShah self-assigned this May 27, 2024
@RidhamShah RidhamShah linked an issue May 27, 2024 that may be closed by this pull request
clientlibs/js/src/ApiService/ApiService.ts Outdated Show resolved Hide resolved
@VivekFitkariwala VivekFitkariwala changed the base branch from feature/feature-flag-backend to dev June 3, 2024 09:23
@VivekFitkariwala VivekFitkariwala dismissed their stale review June 3, 2024 09:23

The base branch was changed.

experiment: ExperimentAssignmentValidator
): Promise<string[]> {
const experimentUserDoc = await this.experimentUserService.getUserDoc(experiment.userId, request.logger);
return this.featureFlagService.getKeys(experimentUserDoc, experiment.context, request.logger);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should return 404 when the user is not found, like with experiment assignment (and the removed 'keys' endpoint).

Copy link
Collaborator

@danoswaltCL danoswaltCL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will spawn task to keep the discussion going on Ben's comment

@danoswaltCL danoswaltCL merged commit cf1342c into dev Jun 13, 2024
8 checks passed
@danoswaltCL danoswaltCL deleted the feature/1341-feature-flag-clientlib branch June 13, 2024 14:09
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.

Java library changes for feature flags
4 participants