Skip to content

Commit c5de5ed

Browse files
committed
Merge remote-tracking branch 'upstream/master' into postgres-query-builder
2 parents dd2b6c7 + 3964d6b commit c5de5ed

File tree

193 files changed

+5613
-2178
lines changed

Some content is hidden

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

193 files changed

+5613
-2178
lines changed

.jshintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"bitwise":false,
55
"curly": true,
66
"eqnull": true,
7-
"strict": true,
7+
"strict": false,
88
"devel": true,
99
"eqeqeq": true,
1010
"forin": false,

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
1-
# 5.0.0-beta2 (unrelased)
1+
# 5.0.0-beta4 (2018-02-19)
2+
3+
### Fixes
4+
5+
- **Dashboard** Fixed dashboard overwrite permission issue [#10814](https://github.com/grafana/grafana/issues/10814)
6+
- **Keyboard shortcuts** Fixed Esc key when in panel edit/view mode [#10945](https://github.com/grafana/grafana/issues/10945)
7+
- **Save dashboard** Fixed issue with time range & variable reset after saving [#10946](https://github.com/grafana/grafana/issues/10946)
8+
9+
# 5.0.0-beta3 (2018-02-16)
10+
11+
### Fixes
12+
13+
- **MySQL** Fixed new migration issue with index length [#10931](https://github.com/grafana/grafana/issues/10931)
14+
- **Modal** Escape key no closes modals everywhere, fixes [#10887](https://github.com/grafana/grafana/issues/10887)
15+
- **Row repeats** Fix for repeating rows issue, fixes [#10932](https://github.com/grafana/grafana/issues/10932)
16+
- **Docs** Team api documented, fixes [#10832](https://github.com/grafana/grafana/issues/10832)
17+
- **Plugins** Plugin info page broken, fixes [#10943](https://github.com/grafana/grafana/issues/10943)
18+
19+
# 5.0.0-beta2 (2018-02-15)
20+
21+
### Fixes
22+
23+
- **Permissions** Fixed search permissions issues [#10822](https://github.com/grafana/grafana/issues/10822)
24+
- **Permissions** Fixed problem issues displaying permissions lists [#10864](https://github.com/grafana/grafana/issues/10864)
25+
- **PNG-Rendering** Fixed problem rendering legend to the right [#10526](https://github.com/grafana/grafana/issues/10526)
26+
- **Reset password** Fixed problem with reset password form [#10870](https://github.com/grafana/grafana/issues/10870)
27+
- **Light theme** Fixed problem with light theme in safari, [#10869](https://github.com/grafana/grafana/issues/10869)
28+
- **Provisioning** Now handles deletes when dashboard json files removed from disk [#10865](https://github.com/grafana/grafana/issues/10865)
29+
- **MySQL** Fixed issue with schema migration on old mysql (index too long) [#10779](https://github.com/grafana/grafana/issues/10779)
30+
- **Github OAuth** Fixed fetching github orgs from private github org [#10823](https://github.com/grafana/grafana/issues/10823)
31+
- **Embedding** Fixed issues embedding panel [#10787](https://github.com/grafana/grafana/issues/10787)
232

333
# 5.0.0-beta1 (2018-02-05)
434

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,11 @@ In your custom.ini uncomment (remove the leading `;`) sign. And set `app_mode =
8080

8181
### Running tests
8282

83-
- You can run backend Golang tests using "go test ./pkg/...".
84-
- Execute all frontend tests with "npm run test"
83+
#### Frontend
84+
Execute all frontend tests
85+
```bash
86+
npm run test
87+
```
8588

8689
Writing & watching frontend tests (we have two test runners)
8790

@@ -92,6 +95,18 @@ Writing & watching frontend tests (we have two test runners)
9295
- Start watcher: `npm run karma`
9396
- Karma+Mocha runs all files that end with the name "_specs.ts".
9497

98+
#### Backend
99+
```bash
100+
# Run Golang tests using sqlite3 as database (default)
101+
go test ./pkg/...
102+
103+
# Run Golang tests using mysql as database - convenient to use /docker/blocks/mysql_tests
104+
GRAFANA_TEST_DB=mysql go test ./pkg/...
105+
106+
# Run Golang tests using postgres as database - convenient to use /docker/blocks/postgres_tests
107+
GRAFANA_TEST_DB=postgres go test ./pkg/...
108+
```
109+
95110
## Contribute
96111

97112
If you have any idea for an improvement or found a bug, do not hesitate to open an issue.

conf/defaults.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ allow_sign_up = true
327327
enabled = false
328328
host = localhost:25
329329
user =
330-
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
330+
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
331331
password =
332332
cert_file =
333333
key_file =

conf/ldap.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ssl_skip_verify = false
1919
# Search user bind dn
2020
bind_dn = "cn=admin,dc=grafana,dc=org"
2121
# Search user bind password
22-
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
22+
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
2323
bind_password = 'grafana'
2424

2525
# User search filter, for example "(cn=%s)" or "(sAMAccountName=%s)" or "(uid=%s)"
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1+
# # config file version
2+
apiVersion: 1
3+
4+
#providers:
15
# - name: 'default'
2-
# org_id: 1
6+
# orgId: 1
37
# folder: ''
48
# type: file
59
# options:
6-
# folder: /var/lib/grafana/dashboards
10+
# path: /var/lib/grafana/dashboards

conf/provisioning/datasources/sample.yaml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1+
# # config file version
2+
apiVersion: 1
3+
14
# # list of datasources that should be deleted from the database
2-
#delete_datasources:
5+
#deleteDatasources:
36
# - name: Graphite
4-
# org_id: 1
7+
# orgId: 1
58

69
# # list of datasources to insert/update depending
7-
# # whats available in the datbase
10+
# # on what's available in the datbase
811
#datasources:
912
# # <string, required> name of the datasource. Required
1013
# - name: Graphite
1114
# # <string, required> datasource type. Required
1215
# type: graphite
1316
# # <string, required> access mode. direct or proxy. Required
1417
# access: proxy
15-
# # <int> org id. will default to org_id 1 if not specified
16-
# org_id: 1
18+
# # <int> org id. will default to orgId 1 if not specified
19+
# orgId: 1
1720
# # <string> url
1821
# url: http://localhost:8080
1922
# # <string> database password, if used
@@ -23,22 +26,22 @@
2326
# # <string> database name, if used
2427
# database:
2528
# # <bool> enable/disable basic auth
26-
# basic_auth:
29+
# basicAuth:
2730
# # <string> basic auth username
28-
# basic_auth_user:
31+
# basicAuthUser:
2932
# # <string> basic auth password
30-
# basic_auth_password:
33+
# basicAuthPassword:
3134
# # <bool> enable/disable with credentials headers
32-
# with_credentials:
35+
# withCredentials:
3336
# # <bool> mark as default datasource. Max one per org
34-
# is_default:
37+
# isDefault:
3538
# # <map> fields that will be converted to json and stored in json_data
36-
# json_data:
39+
# jsonData:
3740
# graphiteVersion: "1.1"
3841
# tlsAuth: true
3942
# tlsAuthWithCACert: true
4043
# # <string> json object of data that will be encrypted.
41-
# secure_json_data:
44+
# secureJsonData:
4245
# tlsCACert: "..."
4346
# tlsClientCert: "..."
4447
# tlsClientKey: "..."

conf/sample.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
;host = 127.0.0.1:3306
7272
;name = grafana
7373
;user = root
74-
# If the password contains # or ; you have to wrap it with trippel quotes. Ex """#password;"""
74+
# If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
7575
;password =
7676

7777
# Use either URL or the previous fields to configure the database

0 commit comments

Comments
 (0)