Skip to content

Commit 8f87595

Browse files
committed
Merge remote-tracking branch 'origin/master' into davkal/explore-facetting-filtered
2 parents a0fbe3c + 352a267 commit 8f87595

File tree

233 files changed

+3425
-3454
lines changed

Some content is hidden

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

233 files changed

+3425
-3454
lines changed

.bra.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ watch_dirs = [
99
"$WORKDIR/public/views",
1010
"$WORKDIR/conf",
1111
]
12-
watch_exts = [".go", ".ini", ".toml"]
12+
watch_exts = [".go", ".ini", ".toml", ".template.html"]
1313
build_delay = 1500
1414
cmds = [
1515
["go", "run", "build.go", "-dev", "build-server"],

.circleci/config.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
- run:
105105
name: yarn install
106106
command: 'yarn install --pure-lockfile --no-progress'
107+
no_output_timeout: 15m
107108
- save_cache:
108109
key: dependency-cache-{{ checksum "yarn.lock" }}
109110
paths:
@@ -146,6 +147,12 @@ jobs:
146147
- run:
147148
name: sign packages
148149
command: './scripts/build/sign_packages.sh'
150+
- run:
151+
name: verify signed packages
152+
command: |
153+
mkdir -p ~/.rpmdb/pubkeys
154+
curl -s https://grafanarel.s3.amazonaws.com/RPM-GPG-KEY-grafana > ~/.rpmdb/pubkeys/grafana.key
155+
./scripts/build/verify_signed_packages.sh dist/*.rpm
149156
- run:
150157
name: sha-sum packages
151158
command: 'go run build.go sha-dist'

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ Follow the setup guide in README.md
22

33
### Rebuild frontend assets on source change
44
```
5-
grunt && grunt watch
5+
yarn watch
66
```
77

88
### Rerun tests on source change
99
```
10-
grunt karma:dev
10+
yarn jest
1111
```
1212

1313
### Run tests for backend assets before commit
@@ -17,6 +17,6 @@ test -z "$(gofmt -s -l . | grep -v -E 'vendor/(github.com|golang.org|gopkg.in)'
1717

1818
### Run tests for frontend assets before commit
1919
```
20-
npm test
20+
yarn test
2121
go test -v ./pkg/...
2222
```

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ debug.test
7171
/vendor/**/appengine*
7272
*.orig
7373

74-
/devenv/dashboards/bulk-testing/*.json
74+
/devenv/bulk-dashboards/*.json

.jscs.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

.jshintrc

Lines changed: 0 additions & 37 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
11
# 5.3.0 (unreleased)
22

3+
* **OAuth**: Gitlab OAuth with support for filter by groups [#5623](https://github.com/grafana/grafana/issues/5623), thx [@BenoitKnecht](https://github.com/BenoitKnecht)
34
* **Dataproxy**: Pass configured/auth headers to a Datasource [#10971](https://github.com/grafana/grafana/issues/10971), thx [@mrsiano](https://github.com/mrsiano)
45
* **Cleanup**: Make temp file time to live configurable [#11607](https://github.com/grafana/grafana/issues/11607), thx [@xapon](https://github.com/xapon)
56
* **LDAP**: Define Grafana Admin permission in ldap group mappings [#2469](https://github.com/grafana/grafana/issues/2496), PR [#12622](https://github.com/grafana/grafana/issues/12622)
67
* **Cloudwatch**: CloudWatch GetMetricData support [#11487](https://github.com/grafana/grafana/issues/11487), thx [@mtanda](https://github.com/mtanda)
78
* **Configuration**: Allow auto-assigning users to specific organization (other than Main. Org) [#1823](https://github.com/grafana/grafana/issues/1823) [#12801](https://github.com/grafana/grafana/issues/12801), thx [@gzzo](https://github.com/gzzo) and [@ofosos](https://github.com/ofosos)
9+
* **Profile**: List teams that the user is member of in current/active organization [#12476](https://github.com/grafana/grafana/issues/12476)
10+
* **LDAP**: Client certificates support [#12805](https://github.com/grafana/grafana/issues/12805), thx [@nyxi](https://github.com/nyxi)
11+
* **Postgres**: TimescaleDB support, e.g. use `time_bucket` for grouping by time when option enabled [#12680](https://github.com/grafana/grafana/pull/12680), thx [svenklemm](https://github.com/svenklemm)
812

913
### Minor
1014

1115
* **Api**: Delete nonexistent datasource should return 404 [#12313](https://github.com/grafana/grafana/issues/12313), thx [@AustinWinstanley](https://github.com/AustinWinstanley)
1216
* **Dashboard**: Fix selecting current dashboard from search should not reload dashboard [#12248](https://github.com/grafana/grafana/issues/12248)
17+
* **Dashboard**: Use uid when linking to dashboards internally in a dashboard [#10705](https://github.com/grafana/grafana/issues/10705)
1318
* **Singlestat**: Make colorization of prefix and postfix optional in singlestat [#11892](https://github.com/grafana/grafana/pull/11892), thx [@ApsOps](https://github.com/ApsOps)
14-
* **Table**: Make table sorting stable when null values exist [#12362](https://github.com/grafana/grafana/pull/12362), thx [@bz2](https://github.com/bz2)
1519
* **Prometheus**: Fix graph panel bar width issue in aligned prometheus queries [#12379](https://github.com/grafana/grafana/issues/12379)
1620
* **Prometheus**: Heatmap - fix unhandled error when some points are missing [#12484](https://github.com/grafana/grafana/issues/12484)
17-
* **Prometheus**: Add $interval, $interval_ms, $range, and $range_ms support for dashboard and template queries [#12597](https://github.com/grafana/grafana/issues/12597)
21+
* **Prometheus**: Add $__interval, $__interval_ms, $__range, $__range_s & $__range_ms support for dashboard and template queries [#12597](https://github.com/grafana/grafana/issues/12597) [#12882](https://github.com/grafana/grafana/issues/12882), thx [@roidelapluie](https://github.com/roidelapluie)
1822
* **Variables**: Skip unneeded extra query request when de-selecting variable values used for repeated panels [#8186](https://github.com/grafana/grafana/issues/8186), thx [@mtanda](https://github.com/mtanda)
23+
* **Postgres/MySQL/MSSQL**: New $__unixEpochGroup and $__unixEpochGroupAlias macros [#12892](https://github.com/grafana/grafana/issues/12892), thx [@svenklemm](https://github.com/svenklemm)
1924
* **Postgres/MySQL/MSSQL**: Add previous fill mode to $__timeGroup macro which will fill in previously seen value when point is missing [#12756](https://github.com/grafana/grafana/issues/12756), thx [@svenklemm](https://github.com/svenklemm)
2025
* **Postgres/MySQL/MSSQL**: Use floor rounding in $__timeGroup macro function [#12460](https://github.com/grafana/grafana/issues/12460), thx [@svenklemm](https://github.com/svenklemm)
2126
* **Postgres/MySQL/MSSQL**: Use metric column as prefix when returning multiple value columns [#12727](https://github.com/grafana/grafana/issues/12727), thx [@svenklemm](https://github.com/svenklemm)
@@ -25,21 +30,29 @@
2530
* **Postgres**: Escape ssl mode parameter in connectionstring [#12644](https://github.com/grafana/grafana/issues/12644), thx [@yogyrahmawan](https://github.com/yogyrahmawan)
2631
* **Github OAuth**: Allow changes of user info at Github to be synched to Grafana when signing in [#11818](https://github.com/grafana/grafana/issues/11818), thx [@rwaweber](https://github.com/rwaweber)
2732
* **Alerting**: Fix diff and percent_diff reducers [#11563](https://github.com/grafana/grafana/issues/11563), thx [@jessetane](https://github.com/jessetane)
28-
* **Units**: Polish złoty currency [#12691](https://github.com/grafana/grafana/pull/12691), thx [@mwegrzynek](https://github.com/mwegrzynek)
33+
* **Alerting**: Fix rendering timeout which could cause notifications to not be sent due to rendering timing out [#12151](https://github.com/grafana/grafana/issues/12151)
2934
* **Cloudwatch**: Improved error handling [#12489](https://github.com/grafana/grafana/issues/12489), thx [@mtanda](https://github.com/mtanda)
3035
* **Cloudwatch**: AppSync metrics and dimensions [#12300](https://github.com/grafana/grafana/issues/12300), thx [@franciscocpg](https://github.com/franciscocpg)
3136
* **Cloudwatch**: Direct Connect metrics and dimensions [#12762](https://github.com/grafana/grafana/pulls/12762), thx [@mindriot88](https://github.com/mindriot88)
3237
* **Cloudwatch**: Added BurstBalance metric to list of AWS RDS metrics [#12561](https://github.com/grafana/grafana/pulls/12561), thx [@activeshadow](https://github.com/activeshadow)
3338
* **Cloudwatch**: Add new Redshift metrics and dimensions [#12063](https://github.com/grafana/grafana/pulls/12063), thx [@A21z](https://github.com/A21z)
3439
* **Table**: Adjust header contrast for the light theme [#12668](https://github.com/grafana/grafana/issues/12668)
3540
* **Table**: Fix link color when using light theme and thresholds in use [#12766](https://github.com/grafana/grafana/issues/12766)
41+
om/grafana/grafana/issues/12668)
42+
* **Table**: Fix for useless horizontal scrollbar for table panel [#9964](https://github.com/grafana/grafana/issues/9964)
43+
* **Table**: Make table sorting stable when null values exist [#12362](https://github.com/grafana/grafana/pull/12362), thx [@bz2](https://github.com/bz2)
3644
* **Elasticsearch**: For alerting/backend, support having index name to the right of pattern in index pattern [#12731](https://github.com/grafana/grafana/issues/12731)
3745
* **OAuth**: Fix overriding tls_skip_verify_insecure using environment variable [#12747](https://github.com/grafana/grafana/issues/12747), thx [@jangaraj](https://github.com/jangaraj)
3846
* **Units**: Change units to include characters for power of 2 and 3 [#12744](https://github.com/grafana/grafana/pull/12744), thx [@Worty](https://github.com/Worty)
47+
* **Units**: Polish złoty currency [#12691](https://github.com/grafana/grafana/pull/12691), thx [@mwegrzynek](https://github.com/mwegrzynek)
3948
* **Graph**: Option to hide series from tooltip [#3341](https://github.com/grafana/grafana/issues/3341), thx [@mtanda](https://github.com/mtanda)
4049
* **UI**: Fix iOS home screen "app" icon and Windows 10 app experience [#12752](https://github.com/grafana/grafana/issues/12752), thx [@andig](https://github.com/andig)
4150
* **Datasource**: Fix UI issue with secret fields after updating datasource [#11270](https://github.com/grafana/grafana/issues/11270)
4251
* **Plugins**: Convert URL-like text to links in plugins readme [#12843](https://github.com/grafana/grafana/pull/12843), thx [pgiraud](https://github.com/pgiraud)
52+
* **Docker**: Make it possible to set a specific plugin url [#12861](https://github.com/grafana/grafana/pull/12861), thx [ClementGautier](https://github.com/ClementGautier)
53+
* **Graphite**: Fix for quoting of int function parameters (when using variables) [#11927](https://github.com/grafana/grafana/pull/11927)
54+
* **InfluxDB**: Support timeFilter in query templating for InfluxDB [#12598](https://github.com/grafana/grafana/pull/12598), thx [kichristensen](https://github.com/kichristensen)
55+
* **Provisioning**: Should allow one default datasource per organisation [#12229](https://github.com/grafana/grafana/issues/12229)
4356

4457
### Breaking changes
4558

@@ -51,6 +64,10 @@ These are new features that's still being worked on and are in an experimental p
5164

5265
* **Dashboard**: Auto fit dashboard panels to optimize space used for current TV / Monitor [#12768](https://github.com/grafana/grafana/issues/12768)
5366

67+
### Tech
68+
69+
* **Frontend**: Convert all Frontend Karma tests to Jest tests [#12224](https://github.com/grafana/grafana/issues/12224)
70+
5471
# 5.2.2 (2018-07-25)
5572

5673
### Minor

Gruntfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* jshint node:true */
21
'use strict';
32
module.exports = function (grunt) {
43
var os = require('os');

README.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ To build the assets, rebuild on file change, and serve them by Grafana's webserv
4343
```bash
4444
npm install -g yarn
4545
yarn install --pure-lockfile
46-
yarn run watch
46+
yarn watch
4747
```
4848

4949
Build the assets, rebuild on file change with Hot Module Replacement (HMR), and serve them by webpack-dev-server (http://localhost:3333):
@@ -56,12 +56,7 @@ Note: HMR for Angular is not supported. If you edit files in the Angular part of
5656

5757
Run tests
5858
```bash
59-
yarn run jest
60-
```
61-
62-
Run karma tests
63-
```bash
64-
yarn run karma
59+
yarn jest
6560
```
6661

6762
### Recompile backend on source change
@@ -98,17 +93,13 @@ In your custom.ini uncomment (remove the leading `;`) sign. And set `app_mode =
9893
#### Frontend
9994
Execute all frontend tests
10095
```bash
101-
yarn run test
96+
yarn test
10297
```
10398

104-
Writing & watching frontend tests (we have two test runners)
99+
Writing & watching frontend tests
105100

106-
- jest for all new tests that do not require browser context (React+more)
107-
- Start watcher: `yarn run jest`
108-
- Jest will run all test files that end with the name ".jest.ts"
109-
- karma + mocha is used for testing angularjs components. We do want to migrate these test to jest over time (if possible).
110-
- Start watcher: `yarn run karma`
111-
- Karma+Mocha runs all files that end with the name "_specs.ts".
101+
- Start watcher: `yarn jest`
102+
- Jest will run all test files that end with the name ".test.ts"
112103

113104
#### Backend
114105
```bash

conf/defaults.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,18 @@ api_url = https://api.github.com/user
270270
team_ids =
271271
allowed_organizations =
272272

273+
#################################### GitLab Auth #########################
274+
[auth.gitlab]
275+
enabled = false
276+
allow_sign_up = true
277+
client_id = some_id
278+
client_secret = some_secret
279+
scopes = api
280+
auth_url = https://gitlab.com/oauth/authorize
281+
token_url = https://gitlab.com/oauth/token
282+
api_url = https://gitlab.com/api/v4
283+
allowed_groups =
284+
273285
#################################### Google Auth #########################
274286
[auth.google]
275287
enabled = false
@@ -315,6 +327,9 @@ api_url =
315327
team_ids =
316328
allowed_organizations =
317329
tls_skip_verify_insecure = false
330+
tls_client_cert =
331+
tls_client_key =
332+
tls_client_ca =
318333

319334
#################################### Basic Auth ##########################
320335
[auth.basic]

conf/ldap.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ start_tls = false
1515
ssl_skip_verify = false
1616
# set to the path to your root CA certificate or leave unset to use system defaults
1717
# root_ca_cert = "/path/to/certificate.crt"
18+
# Authentication against LDAP servers requiring client certificates
19+
# client_cert = "/path/to/client.crt"
20+
# client_key = "/path/to/client.key"
1821

1922
# Search user bind dn
2023
bind_dn = "cn=admin,dc=grafana,dc=org"

conf/sample.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ log_queries =
272272
;api_url = https://foo.bar/user
273273
;team_ids =
274274
;allowed_organizations =
275+
;tls_skip_verify_insecure = false
276+
;tls_client_cert =
277+
;tls_client_key =
278+
;tls_client_ca =
275279

276280
#################################### Grafana.com Auth ####################
277281
[auth.grafana_com]

devenv/bulk-dashboards/bulk-dashboards.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ providers:
55
folder: 'Bulk dashboards'
66
type: file
77
options:
8-
path: devenv/dashboards/bulk-testing
8+
path: devenv/bulk-dashboards
99

0 commit comments

Comments
 (0)