10000 [FSSDK-10765] enhancement: Implement UPS request batching for decideForKeys by FarhanAnjum-opti · Pull Request #353 · optimizely/ruby-sdk · GitHub
[go: up one dir, main page]

Skip to content

[FSSDK-10765] enhancement: Implement UPS request batching for decideForKeys #353

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 19 commits into from
Jan 9, 2025
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
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
lib/optimizely/user_profile_tracker.rb -> Added user profile init check.
  • Loading branch information
FarhanAnjum-opti committed Jan 9, 2025
commit d9e36d2d15f13d02aa0fa356a6257452f5adbb57
6 changes: 6 additions & 0 deletions lib/optimizely/user_profile_tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ def load_user_profile(reasons = [], error_handler = nil)

begin
@user_profile = @user_profile_service.lookup(@user_id) if @user_profile_service
if @user_profile.nil?
@user_profile = {
user_id: @user_id,
experiment_bucket_map: {}
}
end
rescue => e
message = "Error while looking up user profile for user ID '#{@user_id}': #{e}."
reasons << message
Expand Down
Loading
0