v9.5.2-01
Changelog
Builds
- initial repository was cloned with currently running version commit:
git clone --depth=1 --branch v9.5.2 https://github.com/grafana/grafana.git
-
switched to
go mod vendor
to avoid long-running builds -
following files and directories were added:
op.Dockerfile
(modified version of original Dockerfile to build both custom grafana backend/frontend)op.mk
and/op-develop
(files required to launch developer environment)
- files that were modified:
- removed
/vendor
from.gitignore
(to use it in Dockerfile) - removed
/.github
to disable github actions and dependencies check - added
/vendor
to.gitattributes
(hide diffs in gitlab mrs)
Code
Added op-pkg
package to both codebase and op.Dockerfile
(require to be copied) with:
- service and store (to mimic internal logic with custom implementations)
- sdk (http sdk with client libraries and middlewares)
- opstorage (opstorage client library made with sdk)
Grafana internal codebase changes
API:
/pkg/api/http_server.go
(added authentication middlewares fromop-pkg/sdk
)/pkg/api/accesscontrol.go
(added required rights for all dashboards and folders forViewer
andEditor
by default)/pkg/server/wire.go
(replaced original services requirements and stores with modified ones fromop-pkg
)
Services and service stores:
/pkg/services/datasources/service/datasource.go
(initial datasource Store implementation replacement)/pkg/services/dashboards/database/database.go
(initial dashboard Store implementation replacement)/pkg/services/folder/folderImpl/dashboard_folder_store.go
(initial dashboard Store implementation replacement)/pkg/services/secrets/manager.go
(changes to use modified version of encryption service fromop-pkg
only)
Frontend:
/pkg/api/frontendsettings.go
(overrideappURL
andappSubURL
to use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboards
)/pkg/api/index.go
(overrideappURL
andappSubURL
to use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboards
packages/grafana-data/src/themes/palette.ts
(add new colorlightGray
)packages/grafana-data/src/themes/createColors.ts
(overridebackground.canvas
color withlightGray
)public/app/core/components/AppChrome/AppChrome.tsx
(overridesearchBarHidden
withtrue
, replaceNavToolbar
with actions, add css for actions, disableNavToolbar
andMegaMenu
)public/app/core/components/PageNew/SectionNav.tsx
(disableSectionNavToggle
)public/app/features/dashboard/components/DashNav/DashNav.tsx
(overridecanStar
,canShare
andisStarred
withfalse
)public/app/core/components/PageNew/Page.tsx
(disablepadding
in css)
for more details see: OP_CHANGES.md