Merge branch 'react-mobx'

This commit is contained in:
Torkel Ödegaard
2018-01-04 09:12:57 +01:00
54 changed files with 1578 additions and 716 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ func HandleAlertsQuery(query *m.GetAlertsQuery) error {
params = append(params, query.PanelId)
}
if len(query.State) > 0 && query.State[0] != "ALL" {
if len(query.State) > 0 && query.State[0] != "all" {
sql.WriteString(` AND (`)
for i, v := range query.State {
if i > 0 {
+1 -1
View File
@@ -13,7 +13,7 @@ func init() {
bus.AddHandler("sql", GetAdminStats)
}
var activeUserTimeLimit time.Duration = time.Hour * 24 * 14
var activeUserTimeLimit time.Duration = time.Hour * 24 * 30
func GetDataSourceStats(query *m.GetDataSourceStatsQuery) error {
var rawSql = `SELECT COUNT(*) as count, type FROM data_source GROUP BY type`