Skip to content

Commit 048fd87

Browse files
committed
Merge remote-tracking branch 'grafana/master'
* grafana/master: added rule prefer const to tslint (grafana#13071) dep ensure (grafana#13074) changed var to const 2 (grafana#13068) changed var to const (grafana#13061) update latest.json to latest stable version docs: corrected docs description for setting changelog: add notes about 4.6.4 and 5.2.3 releases
2 parents 8cfad74 + 0dc8949 commit 048fd87

File tree

121 files changed

+983
-1025
lines changed

Some content is hidden

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

121 files changed

+983
-1025
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ These are new features that's still being worked on and are in an experimental p
7373

7474
* **Frontend**: Convert all Frontend Karma tests to Jest tests [#12224](https://github.com/grafana/grafana/issues/12224)
7575

76+
# 5.2.3 (2018-08-29)
77+
78+
### Important fix for LDAP & OAuth login vulnerability
79+
80+
See [security announcement](https://community.grafana.com/t/grafana-5-2-3-and-4-6-4-security-update/10050) for details.
81+
7682
# 5.2.2 (2018-07-25)
7783

7884
### Minor
@@ -441,6 +447,12 @@ The following properties have been deprecated and will be removed in a future re
441447
- `uri` property in `GET /api/search` -> Use new `url` or `uid` property instead
442448
- `meta.slug` property in `GET /api/dashboards/uid/:uid` and `GET /api/dashboards/db/:slug` -> Use new `meta.url` or `dashboard.uid` property instead
443449

450+
# 4.6.4 (2018-08-29)
451+
452+
### Important fix for LDAP & OAuth login vulnerability
453+
454+
See [security announcement](https://community.grafana.com/t/grafana-5-2-3-and-4-6-4-security-update/10050) for details.
455+
444456
# 4.6.3 (2017-12-14)
445457

446458
## Fixes

Gopkg.lock

Lines changed: 1 addition & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/sources/installation/configuration.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ The number of days the keep me logged in / remember me cookie lasts.
266266

267267
### secret_key
268268

269-
Used for signing keep me logged in / remember me cookies.
269+
Used for signing some datasource settings like secrets and passwords. Cannot be changed without requiring an update
270+
to datasource settings to re-encode them.
270271

271272
### disable_gravatar
272273

latest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"stable": "5.2.0",
3-
"testing": "5.2.0"
2+
"stable": "5.2.3",
3+
"testing": "5.2.3"
44
}

public/app/core/app_events.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import { Emitter } from './utils/emitter';
22

3-
var appEvents = new Emitter();
3+
const appEvents = new Emitter();
44
export default appEvents;

public/app/core/components/code_editor/code_editor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ function link(scope, elem, attrs) {
9999
if (scope.codeEditorFocus) {
100100
setTimeout(function() {
101101
textarea.focus();
102-
var domEl = textarea[0];
102+
const domEl = textarea[0];
103103
if (domEl.setSelectionRange) {
104-
var pos = textarea.val().length * 2;
104+
const pos = textarea.val().length * 2;
105105
domEl.setSelectionRange(pos, pos);
106106
}
107107
}, 100);

public/app/core/components/dashboard_selector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import coreModule from 'app/core/core_module';
22

3-
var template = `
3+
const template = `
44
<select class="gf-form-input" ng-model="ctrl.model" ng-options="f.value as f.text for f in ctrl.options"></select>
55
`;
66

public/app/core/components/grafana_app.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class GrafanaCtrl {
4949
};
5050

5151
$rootScope.onAppEvent = function(name, callback, localScope) {
52-
var unbind = $rootScope.$on(name, callback);
52+
const unbind = $rootScope.$on(name, callback);
5353
var callerScope = this;
5454
if (callerScope.$id === 1 && !localScope) {
5555
console.log('warning rootScope onAppEvent called without localscope');
@@ -76,7 +76,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
7676
controller: GrafanaCtrl,
7777
link: (scope, elem) => {
7878
var sidemenuOpen;
79-
var body = $('body');
79+
const body = $('body');
8080

8181
// see https://github.com/zenorocha/clipboard.js/issues/155
8282
$.fn.modal.Constructor.prototype.enforceFocus = function() {};
@@ -153,7 +153,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
153153
// handle in active view state class
154154
var lastActivity = new Date().getTime();
155155
var activeUser = true;
156-
var inActiveTimeLimit = 60 * 1000;
156+
const inActiveTimeLimit = 60 * 1000;
157157
var sidemenuHidden = false;
158158

159159
function checkForInActiveUser() {
@@ -215,16 +215,16 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
215215

216216
// handle document clicks that should hide things
217217
body.click(function(evt) {
218-
var target = $(evt.target);
218+
const target = $(evt.target);
219219
if (target.parents().length === 0) {
220220
return;
221221
}
222222

223223
// for stuff that animates, slides out etc, clicking it needs to
224224
// hide it right away
225-
var clickAutoHide = target.closest('[data-click-hide]');
225+
const clickAutoHide = target.closest('[data-click-hide]');
226226
if (clickAutoHide.length) {
227-
var clickAutoHideParent = clickAutoHide.parent();
227+
const clickAutoHideParent = clickAutoHide.parent();
228228
clickAutoHide.detach();
229229
setTimeout(function() {
230230
clickAutoHideParent.append(clickAutoHide);
@@ -245,7 +245,7 @@ export function grafanaAppDirective(playlistSrv, contextSrv, $timeout, $rootScop
245245
}
246246

247247
// hide popovers
248-
var popover = elem.find('.popover');
248+
const popover = elem.find('.popover');
249249
if (popover.length > 0 && target.parents('.graph-legend').length === 0) {
250250
popover.hide();
251251
}

public/app/core/components/json_explorer/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function escapeString(str: string): string {
1212
* Determines if a value is an object
1313
*/
1414
export function isObject(value: any): boolean {
15-
var type = typeof value;
15+
const type = typeof value;
1616
return !!value && type === 'object';
1717
}
1818

@@ -55,7 +55,7 @@ export function getType(object: Object): string {
5555
* Generates inline preview for a JavaScript object based on a value
5656
*/
5757
export function getValuePreview(object: Object, value: string): string {
58-
var type = getType(object);
58+
const type = getType(object);
5959

6060
if (type === 'null' || type === 'undefined') {
6161
return type;

public/app/core/components/json_explorer/json_explorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ export class JsonExplorer {
279279
const objectWrapperSpan = createElement('span');
280280

281281
// get constructor name and append it to wrapper span
282-
var constructorName = createElement('span', 'constructor-name', this.constructorName);
282+
const constructorName = createElement('span', 'constructor-name', this.constructorName);
283283
objectWrapperSpan.appendChild(constructorName);
284284

285285
// if it's an array append the array specific elements like brackets and length

0 commit comments

Comments
 (0)