Migrating roles and schemes to new Cache Layer (#11936)
* Migrating roles and schemes to new Cache Layer * Adding missed license headers * Updating cache tests * Adding the cache layer to the testlib helper * Fixing cyclic dependency * fixing a bit of not-idiomatic error handling * Another small fix arrount idiomatic error handling
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
e58aeb90a8
Коммит
28cc7e7e36
@@ -48,9 +48,11 @@ func (c *FakeClusterInterface) ConfigChanged(previousConfig *model.Config, newCo
|
||||
}
|
||||
|
||||
func (c *FakeClusterInterface) SendClearRoleCacheMessage() {
|
||||
c.clusterMessageHandler(&model.ClusterMessage{
|
||||
Event: model.CLUSTER_EVENT_INVALIDATE_CACHE_FOR_ROLES,
|
||||
})
|
||||
if c.clusterMessageHandler != nil {
|
||||
c.clusterMessageHandler(&model.ClusterMessage{
|
||||
Event: model.CLUSTER_EVENT_INVALIDATE_CACHE_FOR_ROLES,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func (c *FakeClusterInterface) GetPluginStatuses() (model.PluginStatuses, *model.AppError) {
|
||||
|
||||
Ссылка в новой задаче
Block a user