-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[Rollouts] Implement insert and load logic for rollout metadata in RC #12262
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.
A couple minor things and questions. Nice work; this is a really tricky codebase
@@ -134,6 +140,14 @@ - (void)loadConfigFromMainTable { | |||
self->_activePersonalization = [activePersonalization copy]; | |||
dispatch_group_leave(self->_dispatch_group); | |||
}]; | |||
|
|||
dispatch_group_enter(_dispatch_group); |
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.
Is it possible to do this in loadMainWithBundleIdentifier
? It looks like there's an existing todo above to do that for personalization, so it'd be nice if we can avoid it here
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.
Moved rollout metadata loading to loadMain.
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.
Two more minor comment and overall LGTM! Another nit I just realized in RC for all NSArray and NSDictionary there is no type declaration for the element. In Crash we do Array<NSString *>*
something like this to improve readability. Might be good to start this change from your PR and it will def help the folks outside your team to review PRs!
Add insertOrUpdate method to persist rollout metadata in sqlite db
Add load method to load rollout metadata from sqlite db
Note: this change will merge to our feature branch not master
#no-changelog