-
Notifications
You must be signed in to change notification settings - Fork 28
feat: add notification center registry #323
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
feat: add notification center registry #323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
couple of comments
@sdk_settings.odp_segments_cache ||= LRUCache.new( | ||
@sdk_settings.segments_cache_size, | ||
@sdk_settings.segments_cache_timeout_in_secs | ||
if !@sdk_settings.odp_disabled && @sdk_settings.odp_segment_manager.nil? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'd suggest commenting this same as you did in Py:
"no need to instantiate a cache if a custom cache or segment manager is provided."
@@ -1936,4 +1937,21 @@ module OptimizelySpec | |||
# SEND_FLAG_DECISIONS_DISABLED_CONFIG['sendFlagDecisions'] = false | |||
|
|||
CONFIG_DICT_WITH_INTEGRATIONS_JSON = JSON.dump(CONFIG_DICT_WITH_INTEGRATIONS) | |||
|
|||
def self.deep_clone(obj) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose of cloning, is it an equivalent of python's deepcpy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's exactly right. Allowing us to manually modify the datafiles in one test without effecting other tests.
Summary
Create a private registry of NotificationCenters for internal use.
Test plan
added tests to
Ticket
FSSDK-8775