You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add config to allow surpressing notification on launch (flag cache load) (thomaspoignant#2534)
* Change the existing `UpdateCache` method to `UpdateCacheAndNotify`
* Add config to control whether to notify on application init
* Add a method to the cacheManager interface to update cache without notification
* Don't send notification on cache initialization if DisableNotificationOnInit is set to true
* Update docs to refer to the newly available configuration
* Fix golangci-lint errors
* Make the wait longer to ensure that async call has completed
This also aligns the interval with rest of the test code
* Add mutext to prevent race condition
* use wasNotifyCalled() instead of directly calling notifyCalled
* DisableNotificationOnInit -> DisableNotifierOnInit
* Reduce number of interface methods by exposing the internal parameter of `CacheManager`
* Introduce an additional parameter to `retrieveFlagsAndUpdateCache` to indicate initialization
* Add comment to `retrieveFlags` to indicate its functionality
* Use mocks from testutils/mock instead of creating mocks within the test files
* Remove unnecessary references to / declarations of UpdateCacheAndNotify
* Fix README description to be more accurate about DisableNotifierOnInit
* Reduce length of the line to comply with linter
---------
Co-authored-by: Thomas Poignant <[email protected]>
0 commit comments