Skip to content

Commit 265d5da

Browse files
committed
Merge branch 'master' into postgres-query-builder
2 parents 650e2fa + abbb6f9 commit 265d5da

File tree

183 files changed

+1043
-2220
lines changed

Some content is hidden

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

183 files changed

+1043
-2220
lines changed

CHANGELOG.md

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

3+
* **Dashboard**: TV & Kiosk mode changes, new cycle view mode button in dashboard toolbar [#13025](https://github.com/grafana/grafana/pull/13025)
34
* **OAuth**: Gitlab OAuth with support for filter by groups [#5623](https://github.com/grafana/grafana/issues/5623), thx [@BenoitKnecht](https://github.com/BenoitKnecht)
45
* **Dataproxy**: Pass configured/auth headers to a Datasource [#10971](https://github.com/grafana/grafana/issues/10971), thx [@mrsiano](https://github.com/mrsiano)
56
* **Cleanup**: Make temp file time to live configurable [#11607](https://github.com/grafana/grafana/issues/11607), thx [@xapon](https://github.com/xapon)
@@ -62,6 +63,8 @@ om/grafana/grafana/issues/12668)
6263
### Breaking changes
6364

6465
* Postgres datasource no longer automatically adds time column alias when using the $__timeGroup alias. However, there's code in place which should make this change backward compatible and shouldn't create any issues.
66+
* Kiosk mode now also hides submenu (variables)
67+
* ?inactive url parameter no longer supported, replaced with kiosk=tv url parameter
6568

6669
### New experimental features
6770

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.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"build": "grunt build",
102102
"test": "grunt test",
103103
"test:coverage": "grunt test --coverage=true",
104-
"lint": "tslint -c tslint.json --project tsconfig.json --type-check",
104+
"lint": "tslint -c tslint.json --project tsconfig.json",
105105
"jest": "jest --notify --watch",
106106
"api-tests": "jest --notify --watch --config=tests/api/jest.js",
107107
"precommit": "lint-staged && grunt precommit"

pkg/cmd/grafana-cli/utils/grafana_path.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ func returnOsDefault(currentOs string) string {
4242
return "/usr/local/var/lib/grafana/plugins"
4343
case "freebsd":
4444
return "/var/db/grafana/plugins"
45+
case "openbsd":
46+
return "/var/grafana/plugins"
4547
default: //"linux"
4648
return "/var/lib/grafana/plugins"
4749
}

public/app/containers/Explore/Explore.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ export class Explore extends React.Component<any, ExploreState> {
173173
datasource.init();
174174
}
175175

176+
// Keep queries but reset edit state
177+
const nextQueries = this.state.queries.map(q => ({
178+
...q,
179+
edited: false,
180+
}));
181+
176182
this.setState(
177183
{
178184
datasource,
@@ -182,6 +188,7 @@ export class Explore extends React.Component<any, ExploreState> {
182188
supportsLogs,
183189
supportsTable,
184190
datasourceLoading: false,
191+
queries: nextQueries,
185192
},
186193
() => datasourceError === null && this.onSubmit()
187194
);

public/app/containers/Explore/utils/debounce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Based on underscore.js debounce()
22
export default function debounce(func, wait) {
33
let timeout;
4-
return function() {
4+
return function(this: any) {
55
const context = this;
66
const args = arguments;
77
const later = function() {

public/app/containers/Explore/utils/dom.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Node.closest() polyfill
22
if ('Element' in window && !Element.prototype.closest) {
3-
Element.prototype.closest = function(s) {
3+
Element.prototype.closest = function(this: any, s) {
44
const matches = (this.document || this.ownerDocument).querySelectorAll(s);
55
let el = this;
66
let i;

public/app/core/angular_wrappers.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { react2AngularDirective } from 'app/core/utils/react2angular';
22
import { PasswordStrength } from './components/PasswordStrength';
33
import PageHeader from './components/PageHeader/PageHeader';
44
import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
5-
import LoginBackground from './components/Login/LoginBackground';
65
import { SearchResult } from './components/search/SearchResult';
76
import { TagFilter } from './components/TagFilter/TagFilter';
87
import DashboardPermissions from './components/Permissions/DashboardPermissions';
@@ -11,7 +10,6 @@ export function registerAngularDirectives() {
1110
react2AngularDirective('passwordStrength', PasswordStrength, ['password']);
1211
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
1312
react2AngularDirective('emptyListCta', EmptyListCTA, ['model']);
14-
react2AngularDirective('loginBackground', LoginBackground, []);
1513
react2AngularDirective('searchResult', SearchResult, []);
1614
react2AngularDirective('tagFilter', TagFilter, [
1715
'tags',

0 commit comments

Comments
 (0)