diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-11-08 11:39:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-08 11:39:30 -0500 |
commit | 5ef72775213884f427e170ab6cc960f9544ae6cc (patch) | |
tree | 3b60bb3dacd49672ddb1179373f0c6eaff39904a /app/diagnostics.go | |
parent | 1d1998c6686e969a6d3fdfcdfa0592ea5945bb9c (diff) | |
download | chat-5ef72775213884f427e170ab6cc960f9544ae6cc.tar.gz chat-5ef72775213884f427e170ab6cc960f9544ae6cc.tar.bz2 chat-5ef72775213884f427e170ab6cc960f9544ae6cc.zip |
PLT-7709 Add UI settings to plugin manifest (#7794)
* Add UI settings to plugin manifest
* Add another test case
* Add options field to setting
* Updates per feedback
* Report diagnostics on if plugins have settings set
* Add regenerate_help_text field
Diffstat (limited to 'app/diagnostics.go')
-rw-r--r-- | app/diagnostics.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/diagnostics.go b/app/diagnostics.go index b74af8914..18a54e484 100644 --- a/app/diagnostics.go +++ b/app/diagnostics.go @@ -499,6 +499,7 @@ func (a *App) trackPlugins() { totalInactiveCount := -1 // -1 to indicate disabled or error webappInactiveCount := 0 backendInactiveCount := 0 + settingsCount := 0 plugins, _ := a.GetPluginManifests() @@ -513,6 +514,10 @@ func (a *App) trackPlugins() { if plugin.Backend != nil { backendActiveCount += 1 } + + if plugin.SettingsSchema != nil { + settingsCount += 1 + } } totalInactiveCount = len(plugins.Inactive) @@ -525,6 +530,10 @@ func (a *App) trackPlugins() { if plugin.Backend != nil { backendInactiveCount += 1 } + + if plugin.SettingsSchema != nil { + settingsCount += 1 + } } } @@ -535,6 +544,7 @@ func (a *App) trackPlugins() { "inactive_plugins": totalInactiveCount, "inactive_webapp_plugins": webappInactiveCount, "inactive_backend_plugins": backendInactiveCount, + "plugins_with_settings": settingsCount, }) } } |