Merge branch 'alerting' into grafana-annotations

This commit is contained in:
Torkel Ödegaard
2016-09-13 09:38:12 +02:00
31 changed files with 381 additions and 104 deletions

View File

@@ -43,7 +43,7 @@ func GetDataSourceByName(query *m.GetDataSourceByNameQuery) error {
}
func GetDataSources(query *m.GetDataSourcesQuery) error {
sess := x.Limit(100, 0).Where("org_id=?", query.OrgId).Asc("name")
sess := x.Limit(1000, 0).Where("org_id=?", query.OrgId).Asc("name")
query.Result = make([]*m.DataSource, 0)
return sess.Find(&query.Result)