Releases: okmeter/grafana
Releases · okmeter/grafana
v9.5.2-02
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 vendorto 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.mkand/op-develop(files required to launch developer environment)
- files that were modified:
- removed
/vendorfrom.gitignore(to use it in Dockerfile) - removed
/.githubto disable github actions and dependencies check - added
/vendorto.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 forViewerandEditorby 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-pkgonly)/pkg/services/ngalert/api/util.go(use op middlewares in alerting service)
Frontend:
/pkg/api/frontendsettings.go(overrideappURLandappSubURLto use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboards)/pkg/api/index.go(overrideappURLandappSubURLto use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboards/pkg/services/navtree/navtreeimpl/navtree.go(disable navigation on alerting page)/packages/grafana-data/src/themes/palette.ts(add new colorlightGray)/packages/grafana-data/src/themes/createColors.ts(overridebackground.canvascolor withlightGray)/public/app/core/components/AppChrome/AppChrome.tsx(overridesearchBarHiddenwithtrue, replaceNavToolbarwith actions, add css for actions, disableNavToolbarandMegaMenu)/public/app/core/components/PageNew/Page.tsx(disablepaddingin css)/public/app/features/dashboard/components/DashNav/DashNav.tsx(overridecanStar,canShareandisStarredwithfalse)/public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardAsForm.tsx(disableshowRootinFolderPicker)/public/app/features/alerting/routes.tsx(removed unnecessary routes:/alerting/ng/list,/alerting/notifications,/alerting/notifications/*,/alerting/notification/*,/alerting,/alerting/home,/alerting/routes*,/alerting/groups/)/public/app/features/alerting/unified/RuleList.tsx(removed button exporturl:/api/v1/provisioning/alert-rules/export)/public/app/features/alerting/unified/components/rule-editor/AlertRuleForm.tsx(set type:RuleFormType.cloudAlerting)/public/app/features/alerting/unified/components/rule-editor/query-and-alert-condition/AlertType.tsx(setRuleFormType.cloudAlertingas defaultRuleType)/public/app/features/alerting/unified/components/rule-editor/rule-types/RuleTypePicker.tsx(disable selectedGrafanaManagedRuleType)/public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx(removedview in Explorebutton)/public/app/features/alerting/unified/components/rules/RuleActionsButtons.tsx(removedcopy to clipboardbutton)/public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx(removedcopy to clipboardbutton)/public/app/features/alerting/unified/hooks/useAlertManagerSourceName.ts(use first available alert manager name)/public/app/features/alerting/unified/utils/datasource.ts(removegrafanaAlertManagerDataSourcefrom available datasources)/public/app/features/alerting/unified/utils/rule-form.ts(removed logic related toRuleFormType.grafana)/public/app/features/alerting/unified/Home.tsx(removedWelcomeCTABoxes)/public/app/features/explore/ExploreToolbar.tsx(hide<AppChromeUpdate actions={[shareButton}})/public/app/features/explore/RichHistory/RichHistoryCard.tsx(hideonCreateShortLink)
for more details see: OP_CHANGES.md
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 vendorto 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.mkand/op-develop(files required to launch developer environment)
- files that were modified:
- removed
/vendorfrom.gitignore(to use it in Dockerfile) - removed
/.githubto disable github actions and dependencies check - added
/vendorto.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 forViewerandEditorby 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-pkgonly)
Frontend:
/pkg/api/frontendsettings.go(overrideappURLandappSubURLto use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboards)/pkg/api/index.go(overrideappURLandappSubURLto use dynamic url sub-paths likelocalhost:3000/sub1/sub2.../dashboardspackages/grafana-data/src/themes/palette.ts(add new colorlightGray)packages/grafana-data/src/themes/createColors.ts(overridebackground.canvascolor withlightGray)public/app/core/components/AppChrome/AppChrome.tsx(overridesearchBarHiddenwithtrue, replaceNavToolbarwith actions, add css for actions, disableNavToolbarandMegaMenu)public/app/core/components/PageNew/SectionNav.tsx(disableSectionNavToggle)public/app/features/dashboard/components/DashNav/DashNav.tsx(overridecanStar,canShareandisStarredwithfalse)public/app/core/components/PageNew/Page.tsx(disablepaddingin css)
for more details see: OP_CHANGES.md