10000 feat: Duplicate experiment key issue with multi feature flag by ozayr-zaviar · Pull Request #282 · optimizely/ruby-sdk · GitHub
[go: up one dir, main page]

Skip to content

feat: Duplicate experiment key issue with multi feature flag #282

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

Merged
merged 17 commits into from
Jul 26, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
testcases fixed
  • Loading branch information
ozayr-zaviar committed Jul 18, 2021
commit 8bc63dd8d1f1bee00f59100229a7f5c69d8264c8
2 changes: 1 addition & 1 deletion lib/optimizely/project_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def get_variation_from_id(experiment_key, variation_id); end

def get_variation_from_id_by_experiment_id(experiment_id, variation_id); end

def get_variation_from_key_by_experiment_id(experiment_id, variation_key); end
def get_variation_id_from_key_by_experiment_id(experiment_id, variation_key); end

def get_variation_id_from_key(experiment_key, variation_key); end

Expand Down
3 changes: 1 addition & 2 deletions spec/config/datafile_project_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -889,8 +889,7 @@

config_body_json = JSON.dump(config_body)
project_config = Optimizely::DatafileProjectConfig.new(config_body_json, logger, error_handler)

expect(project_config.get_variation_from_key_by_experiment_id(experiment_id, variation_key)[feature_enabled]).to eq(false)
expect(project_config.get_variation_id_from_key_by_experiment_id(experiment_id, variation_key)).to eq('100029')
end
end

Expand Down
Loading
0