feat(plugins): removed external plugins and bundle code, not ready for master yet, will revert this commit in seperate branch

This commit is contained in:
Torkel Ödegaard
2015-12-15 10:28:52 +01:00
parent 2ec5bc77d7
commit 5eab5dc47b
10 changed files with 6 additions and 382 deletions
+1 -8
View File
@@ -117,14 +117,7 @@ func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) {
func GetDataSourcePlugins(c *middleware.Context) {
dsList := make(map[string]interface{})
orgBundles := m.GetPluginBundlesQuery{OrgId: c.OrgId}
err := bus.Dispatch(&orgBundles)
if err != nil {
c.JsonApiErr(500, "Failed to get org plugin Bundles", err)
}
enabledPlugins := plugins.GetEnabledPlugins(orgBundles.Result)
for key, value := range enabledPlugins.DataSourcePlugins {
for key, value := range plugins.DataSources {
if !value.BuiltIn {
dsList[key] = value
}