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

added flag_set_filter config param and validation #484

Merged
merged 2 commits into from
Oct 27, 2023

Conversation

chillaq
Copy link
Contributor

@chillaq chillaq commented Oct 23, 2023

Ruby SDK

What did you accomplish?

How to test new changes?

Extra Notes

@chillaq chillaq requested a review from a team as a code owner October 23, 2023 21:41
lib/splitclient-rb/validators.rb Outdated Show resolved Hide resolved
lib/splitclient-rb/validators.rb Show resolved Hide resolved
lib/splitclient-rb/validators.rb Outdated Show resolved Hide resolved
return nil
end
valid_flag_sets = SortedSet[]
flag_sets.compact.uniq.select do |flag_set|
Copy link
Contributor

Choose a reason for hiding this comment

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

you are not trimming the flag set if neecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The trimming is done inside the loop, I need to check first if the object is string, otherwise the strip method will raise exception

lib/splitclient-rb/validators.rb Outdated Show resolved Hide resolved
@chillaq chillaq merged commit f1b88f0 into Feature/FlagSets Oct 27, 2023
@chillaq chillaq deleted the flagset-client-config branch October 27, 2023 20:39
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.

2 participants