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
Этот коммит содержится в:
Joram Wilander
2017-11-08 11:39:30 -05:00
коммит произвёл GitHub
родитель 1d1998c668
Коммит 5ef7277521
3 изменённых файлов: 141 добавлений и 8 удалений

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

@@ -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,
})
}
}