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

fix: evaluate prerequisite features correctly #219

Merged
merged 5 commits into from
Feb 13, 2023
Merged

fix: evaluate prerequisite features correctly #219

merged 5 commits into from
Feb 13, 2023

Conversation

ono-max
Copy link
Contributor

@ono-max ono-max commented Feb 9, 2023

No description provided.

@ono-max ono-max changed the title fix: evaluate features correctly fix: evaluate prerequisite features correctly Feb 9, 2023
@cre8ivejp
Copy link
Member

@ono-max, can you also implement it for the rest server?
Because we will release the prerequisite feature before we release that go-server sdk with the grpc implementation.

return nil, err
}
if len(feature.Prerequisites) > 0 {
return fs, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

question:

Is it possible to select only the prerequisite feature flags?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Talked at meeting.

@ono-max ono-max requested a review from masaaania February 10, 2023 06:48
}
if len(feature.Prerequisites) > 0 {
// If we select only the prerequisite feature flags, we have to get them recursively.
// Thus, we evaluate all features here to avoid complex logic.
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@masaaania masaaania left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Member

@cre8ivejp cre8ivejp left a comment

Choose a reason for hiding this comment

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

Nice!

@ono-max ono-max merged commit e295d82 into main Feb 13, 2023
@ono-max ono-max deleted the patch-81 branch February 13, 2023 04:51
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.

3 participants