* remove feature flag managed plugins

* remove unneeded plugin blocklist

* remove unnecessary wrappers

* documentation and logging improvements

* avoid use of global logger
* leverage wrapped loggers (e.g. consistently log `plugin_id`)
* promote some logs from `Debug` to `Info` for better visibility.
* extract installPluginToFilestore
* rename some variables for consistency / clarity

* make generated
Этот коммит содержится в:
Jesse Hallam
2023-08-08 18:29:57 -03:00
коммит произвёл GitHub
родитель 0e30d0abb8
Коммит 8372267739
8 изменённых файлов: 187 добавлений и 268 удалений

Просмотреть файл

@@ -167,17 +167,6 @@ func TestInstallPluginLocally(t *testing.T) {
assertBundleInfoManifests(t, th, []*model.Manifest{manifest})
})
t.Run("doesn't install if ID on block list", func(t *testing.T) {
th := Setup(t)
defer th.TearDown()
cleanExistingBundles(t, th)
_, appErr := installPlugin(t, th, "com.mattermost.plugin-incident-response", "0.0.1", installPluginLocallyAlways)
require.NotNil(t, appErr)
require.Equal(t, "app.plugin.blocked.app_error", appErr.Id)
assertBundleInfoManifests(t, th, []*model.Manifest{})
})
t.Run("different plugin already installed", func(t *testing.T) {
th := Setup(t)
defer th.TearDown()