mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
Merge pull request #6008 from rubycut/patch-1
Increase datasource limit to 1000 #3910
This commit is contained in:
commit
52dc2db769
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user