-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add config to allow surpressing notification on launch (flag ca…
…che load) (#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]>
- Loading branch information
1 parent
a1955f0
commit 1351a3f
Showing
12 changed files
with
288 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.