Skip to content

Commit 9f4d4a9

Browse files
committed
Merge remote-tracking branch 'grafana/master'
* grafana/master: (368 commits) Adhoc-filtering for prometheus dashboards (grafana#13212) fix: url update loop fix (grafana#13243) fix theme parameter not working problem while prefer theme set to light (grafana#13232) fix: added type export to fix failing test fix: fixed typescript test error another circleci fix Another circleci fix changed gometalinter to use github master commented out metalinter as gopkg is having issues Fix prometheus label filtering for comparison queries (grafana#13213) Upgrade react and enzyme (grafana#13224) Teams page replace mobx (grafana#13219) upgrade of typescript and tslint and jest (grafana#13223) fix nil pointer dereference (grafana#13221) removes protoc from makefile changelog: note about closing grafana#11681 Adding Centrify configuration for Oauth refactor: moved stuff into new features dir manage-dashboards move: moved styleguide to admin fix: fixed singlestat test broken due to file move ...
2 parents 048fd87 + a5bcd4b commit 9f4d4a9

File tree

541 files changed

+14162
-8312
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

541 files changed

+14162
-8312
lines changed

.circleci/config.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ version: 2
1919
jobs:
2020
mysql-integration-test:
2121
docker:
22-
- image: circleci/golang:1.10
22+
- image: circleci/golang:1.11
2323
- image: circleci/mysql:5.6-ram
2424
environment:
2525
MYSQL_ROOT_PASSWORD: rootpass
@@ -39,7 +39,7 @@ jobs:
3939

4040
postgres-integration-test:
4141
docker:
42-
- image: circleci/golang:1.10
42+
- image: circleci/golang:1.11
4343
- image: circleci/postgres:9.3-ram
4444
environment:
4545
POSTGRES_USER: grafanatest
@@ -74,22 +74,22 @@ jobs:
7474

7575
gometalinter:
7676
docker:
77-
- image: circleci/golang:1.10
77+
- image: circleci/golang:1.11
7878
environment:
7979
# we need CGO because of go-sqlite3
8080
CGO_ENABLED: 1
8181
working_directory: /go/src/github.com/grafana/grafana
8282
steps:
8383
- checkout
84-
- run: 'go get -u gopkg.in/alecthomas/gometalinter.v2'
84+
- run: 'go get -u github.com/alecthomas/gometalinter'
8585
- run: 'go get -u github.com/tsenart/deadcode'
8686
- run: 'go get -u github.com/gordonklaus/ineffassign'
8787
- run: 'go get -u github.com/opennota/check/cmd/structcheck'
8888
- run: 'go get -u github.com/mdempsky/unconvert'
8989
- run: 'go get -u github.com/opennota/check/cmd/varcheck'
9090
- run:
9191
name: run linters
92-
command: 'gometalinter.v2 --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=ineffassign --enable=structcheck --enable=unconvert --enable=varcheck ./...'
92+
command: 'gometalinter --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=ineffassign --enable=structcheck --enable=unconvert --enable=varcheck ./...'
9393
- run:
9494
name: run go vet
9595
command: 'go vet ./pkg/...'
@@ -115,7 +115,7 @@ jobs:
115115

116116
test-backend:
117117
docker:
118-
- image: circleci/golang:1.10
118+
- image: circleci/golang:1.11
119119
working_directory: /go/src/github.com/grafana/grafana
120120
steps:
121121
- checkout
@@ -125,7 +125,7 @@ jobs:
125125

126126
build-all:
127127
docker:
128-
- image: grafana/build-container:1.0.0
128+
- image: grafana/build-container:1.1.0
129129
working_directory: /go/src/github.com/grafana/grafana
130130
steps:
131131
- checkout
@@ -168,7 +168,7 @@ jobs:
168168

169169
build:
170170
docker:
171-
- image: grafana/build-container:1.0.0
171+
- image: grafana/build-container:1.1.0
172172
working_directory: /go/src/github.com/grafana/grafana
173173
steps:
174174
- checkout

CHANGELOG.md

Lines changed: 60 additions & 28 deletions
Large diffs are not rendered by default.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Golang build container
2-
FROM golang:1.10
2+
FROM golang:1.11
33

44
WORKDIR $GOPATH/src/github.com/grafana/grafana
55

Makefile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,3 @@ test: test-go test-js
4343

4444
run:
4545
./bin/grafana-server
46-
47-
protoc:
48-
protoc -I pkg/tsdb/models pkg/tsdb/models/*.proto --go_out=plugins=grpc:pkg/tsdb/models/.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ the latest master builds [here](https://grafana.com/grafana/download)
2424

2525
### Dependencies
2626

27-
- Go 1.10
27+
- Go 1.11
2828
- NodeJS LTS
2929

3030
### Building the backend

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ clone_folder: c:\gopath\src\github.com\grafana\grafana
77
environment:
88
nodejs_version: "6"
99
GOPATH: C:\gopath
10-
GOVERSION: 1.10
10+
GOVERSION: 1.11
1111

1212
install:
1313
- rmdir c:\go /s /q

conf/defaults.ini

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ allow_sign_up = true
321321
client_id = some_id
322322
client_secret = some_secret
323323
scopes = user:email
324+
email_attribute_name = email:primary
324325
auth_url =
325326
token_url =
326327
api_url =
@@ -467,6 +468,12 @@ enabled = true
467468
# Makes it possible to turn off alert rule execution but alerting UI is visible
468469
execute_alerts = true
469470

471+
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
472+
error_or_timeout = alerting
473+
474+
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
475+
nodata_or_nullvalues = no_data
476+
470477
#################################### Explore #############################
471478
[explore]
472479
# Enable the Explore section
@@ -538,3 +545,8 @@ container_name =
538545

539546
[external_image_storage.local]
540547
# does not require any configuration
548+
549+
[rendering]
550+
# Options to configure external image rendering server like https://github.com/grafana/grafana-image-renderer
551+
server_url =
552+
callback_url =

conf/sample.ini

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,12 @@ log_queries =
387387
# Makes it possible to turn off alert rule execution but alerting UI is visible
388388
;execute_alerts = true
389389

390+
# Default setting for new alert rules. Defaults to categorize error and timeouts as alerting. (alerting, keep_state)
391+
;error_or_timeout = alerting
392+
393+
# Default setting for how Grafana handles nodata or null values in alerting. (alerting, no_data, keep_state, ok)
394+
;nodata_or_nullvalues = no_data
395+
390396
#################################### Explore #############################
391397
[explore]
392398
# Enable the Explore section
@@ -460,3 +466,8 @@ log_queries =
460466

461467
[external_image_storage.local]
462468
# does not require any configuration
469+
470+
[rendering]
471+
# Options to configure external image rendering server like https://github.com/grafana/grafana-image-renderer
472+
;server_url =
473+
;callback_url =

docker/blocks/openldap/ldap_dev.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ email = "email"
7272
[[servers.group_mappings]]
7373
group_dn = "cn=admins,ou=groups,dc=grafana,dc=org"
7474
org_role = "Admin"
75+
grafana_admin = true
7576
# The Grafana organization database id, optional, if left out the default org (id 1) will be used
7677
# org_id = 1
7778

docs/sources/administration/permissions.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ This admin flag makes a user a `Super Admin`. This means they can access the `Se
5252

5353
### Dashboard & Folder Permissions
5454

55-
> Introduced in Grafana v5.0
56-
5755
{{< docs-imagebox img="/img/docs/v50/folder_permissions.png" max-width="500px" class="docs-image--right" >}}
5856

5957
For dashboards and dashboard folders there is a **Permissions** page that make it possible to

0 commit comments

Comments
 (0)