Skip to content

Commit 3c2e9a3

Browse files
authored
Merge pull request #8 from intergral/update_grafusion
Update grafusion
2 parents 9242d37 + 048d806 commit 3c2e9a3

File tree

27 files changed

+138
-89
lines changed

27 files changed

+138
-89
lines changed

.github/workflows/on_push_go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313

1414
jobs:
1515
test:
16+
name: Test
1617
runs-on: ubuntu-latest
1718

1819
steps:

.github/workflows/on_push_ui.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ concurrency:
1313

1414
jobs:
1515
test:
16+
name: Test
1617
runs-on: ubuntu-latest
1718

1819
steps:

.github/workflows/on_release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
goreleaser:
12+
release:
13+
name: Release
1314
runs-on: ubuntu-latest-m
1415
steps:
1516
- name: Checkout

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,13 @@ golangci-lint: $(GOLANGCI_LINT)
225225
--config .golangci.toml \
226226
$(GO_FILES)
227227

228+
lint-fix: $(GOLANGCI_LINT)
229+
@echo "lint via golangci-lint"
230+
$(GOLANGCI_LINT) run \
231+
--config .golangci.toml \
232+
--fix \
233+
$(GO_FILES)
234+
228235
lint-go: golangci-lint ## Run all code checks for backend. You can use GO_FILES to specify exact files to check
229236

230237
# with disabled SC1071 we are ignored some TCL,Expect `/usr/bin/env expect` scripts

conf/defaults.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1357,6 +1357,10 @@ news_feed_enabled = true
13571357
# Set the number of data source queries that can be executed concurrently in mixed queries. Default is the number of CPUs.
13581358
concurrent_query_limit =
13591359

1360+
[kiosk]
1361+
# Enable the kiosk section
1362+
mode = off
1363+
13601364
#################################### Query History #############################
13611365
[query_history]
13621366
# Enable the Query history

packages/grafana-data/src/types/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ export interface GrafanaConfig {
170170
alertingMinInterval: number;
171171
authProxyEnabled: boolean;
172172
exploreEnabled: boolean;
173+
kioskMode: string;
173174
queryHistoryEnabled: boolean;
174175
helpEnabled: boolean;
175176
profileEnabled: boolean;

packages/grafana-runtime/src/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export class GrafanaBootConfig implements GrafanaConfig {
6363
angularSupportEnabled = false;
6464
authProxyEnabled = false;
6565
exploreEnabled = false;
66+
kioskMode = 'off';
6667
queryHistoryEnabled = false;
6768
helpEnabled = false;
6869
profileEnabled = false;

pkg/api/dtos/frontend_settings.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,16 @@ type FrontendSettingsDTO struct {
146146
LiveEnabled bool `json:"liveEnabled"`
147147
AutoAssignOrg bool `json:"autoAssignOrg"`
148148

149-
VerifyEmailEnabled bool `json:"verifyEmailEnabled"`
150-
SigV4AuthEnabled bool `json:"sigV4AuthEnabled"`
151-
AzureAuthEnabled bool `json:"azureAuthEnabled"`
152-
RbacEnabled bool `json:"rbacEnabled"`
153-
ExploreEnabled bool `json:"exploreEnabled"`
154-
HelpEnabled bool `json:"helpEnabled"`
155-
ProfileEnabled bool `json:"profileEnabled"`
156-
NewsFeedEnabled bool `json:"newsFeedEnabled"`
157-
QueryHistoryEnabled bool `json:"queryHistoryEnabled"`
149+
VerifyEmailEnabled bool `json:"verifyEmailEnabled"`
150+
SigV4AuthEnabled bool `json:"sigV4AuthEnabled"`
151+
AzureAuthEnabled bool `json:"azureAuthEnabled"`
152+
RbacEnabled bool `json:"rbacEnabled"`
153+
ExploreEnabled bool `json:"exploreEnabled"`
154+
KioskMode string `json:"kioskMode"`
155+
HelpEnabled bool `json:"helpEnabled"`
156+
ProfileEnabled bool `json:"profileEnabled"`
157+
NewsFeedEnabled bool `json:"newsFeedEnabled"`
158+
QueryHistoryEnabled bool `json:"queryHistoryEnabled"`
158159

159160
GoogleAnalyticsId string `json:"googleAnalyticsId"`
160161
GoogleAnalytics4Id string `json:"googleAnalytics4Id"`

pkg/api/frontendsettings.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func (hs *HTTPServer) getFrontendSettings(c *contextmodel.ReqContext) (*dtos.Fro
129129
ProfileEnabled: setting.ProfileEnabled,
130130
NewsFeedEnabled: setting.NewsFeedEnabled,
131131
QueryHistoryEnabled: hs.Cfg.QueryHistoryEnabled,
132+
KioskMode: setting.KioskMode,
132133
GoogleAnalyticsId: hs.Cfg.GoogleAnalyticsID,
133134
GoogleAnalytics4Id: hs.Cfg.GoogleAnalytics4ID,
134135
GoogleAnalytics4SendManualPageViews: hs.Cfg.GoogleAnalytics4SendManualPageViews,

pkg/services/navtree/navtreeimpl/navtree.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,21 @@ import (
44
"fmt"
55
"sort"
66

7+
"github.com/grafana/grafana/pkg/models/roletype"
8+
"github.com/grafana/grafana/pkg/services/datasources"
9+
"github.com/grafana/grafana/pkg/services/org"
10+
711
"github.com/grafana/grafana/pkg/api/dtos"
812
"github.com/grafana/grafana/pkg/infra/kvstore"
913
"github.com/grafana/grafana/pkg/infra/log"
10-
"github.com/grafana/grafana/pkg/models/roletype"
1114
ac "github.com/grafana/grafana/pkg/services/accesscontrol"
1215
"github.com/grafana/grafana/pkg/services/apikey"
1316
"github.com/grafana/grafana/pkg/services/auth/identity"
1417
contextmodel "github.com/grafana/grafana/pkg/services/contexthandler/model"
1518
"github.com/grafana/grafana/pkg/services/dashboards"
16-
"github.com/grafana/grafana/pkg/services/datasources"
1719
"github.com/grafana/grafana/pkg/services/featuremgmt"
1820
"github.com/grafana/grafana/pkg/services/licensing"
1921
"github.com/grafana/grafana/pkg/services/navtree"
20-
"github.com/grafana/grafana/pkg/services/org"
2122
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginsettings"
2223
"github.com/grafana/grafana/pkg/services/pluginsintegration/pluginstore"
2324
pref "github.com/grafana/grafana/pkg/services/preference"
@@ -476,7 +477,6 @@ func (s *ServiceImpl) buildAlertNavLinks(c *contextmodel.ReqContext) *navtree.Na
476477

477478
return &alertNav
478479
}
479-
480480
return nil
481481
}
482482

0 commit comments

Comments
 (0)