Skip to content

Releases: okmeter/grafana

v9.5.2-02

21 Sep 22:32
Compare
Choose a tag to compare

Changelog

Builds

  1. initial repository was cloned with currently running version commit:
git clone --depth=1 --branch v9.5.2 https://github.com/grafana/grafana.git
  1. switched to go mod vendor to avoid long-running builds

  2. 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)
  1. 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 from op-pkg/sdk)
  • /pkg/api/accesscontrol.go (added required rights for all dashboards and folders for Viewer and Editor by default)
  • /pkg/server/wire.go (replaced original services requirements and stores with modified ones from op-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 from op-pkg only)
  • /pkg/services/ngalert/api/util.go (use op middlewares in alerting service)

Frontend:

  • /pkg/api/frontendsettings.go (override appURL and appSubURL to use dynamic url sub-paths like localhost:3000/sub1/sub2.../dashboards)
  • /pkg/api/index.go (override appURL and appSubURL to use dynamic url sub-paths like localhost:3000/sub1/sub2.../dashboards
  • /pkg/services/navtree/navtreeimpl/navtree.go (disable navigation on alerting page)
  • /packages/grafana-data/src/themes/palette.ts (add new color lightGray)
  • /packages/grafana-data/src/themes/createColors.ts (override background.canvas color with lightGray)
  • /public/app/core/components/AppChrome/AppChrome.tsx (override searchBarHidden with true, replace NavToolbar with actions, add css for actions, disable NavToolbar and MegaMenu)
  • /public/app/core/components/PageNew/Page.tsx (disable padding in css)
  • /public/app/features/dashboard/components/DashNav/DashNav.tsx (override canStar, canShare and isStarred with false)
  • /public/app/features/dashboard/components/SaveDashboard/forms/SaveDashboardAsForm.tsx (disable showRoot in FolderPicker)
  • /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 export url:/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 (set RuleFormType.cloudAlerting as defaultRuleType)
  • /public/app/features/alerting/unified/components/rule-editor/rule-types/RuleTypePicker.tsx (disable selected GrafanaManagedRuleType)
  • /public/app/features/alerting/unified/components/rule-viewer/RuleViewerVisualization.tsx (removed view in Explore button)
  • /public/app/features/alerting/unified/components/rules/RuleActionsButtons.tsx (removed copy to clipboard button)
  • /public/app/features/alerting/unified/components/rules/RuleDetailsActionButtons.tsx (removed copy to clipboard button)
  • /public/app/features/alerting/unified/hooks/useAlertManagerSourceName.ts (use first available alert manager name)
  • /public/app/features/alerting/unified/utils/datasource.ts (remove grafanaAlertManagerDataSource from available datasources)
  • /public/app/features/alerting/unified/utils/rule-form.ts (removed logic related to RuleFormType.grafana)
  • /public/app/features/alerting/unified/Home.tsx (removed WelcomeCTABoxes)
  • /public/app/features/explore/ExploreToolbar.tsx (hide <AppChromeUpdate actions={[shareButton}})
  • /public/app/features/explore/RichHistory/RichHistoryCard.tsx (hide onCreateShortLink)

for more details see: OP_CHANGES.md

v9.5.2-01

17 Aug 10:36
Compare
Choose a tag to compare

Changelog

Builds

  1. initial repository was cloned with currently running version commit:
git clone --depth=1 --branch v9.5.2 https://github.com/grafana/grafana.git
  1. switched to go mod vendor to avoid long-running builds

  2. 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)
  1. 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 from op-pkg/sdk)
  • /pkg/api/accesscontrol.go (added required rights for all dashboards and folders for Viewer and Editor by default)
  • /pkg/server/wire.go (replaced original services requirements and stores with modified ones from op-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 from op-pkg only)

Frontend:

  • /pkg/api/frontendsettings.go (override appURL and appSubURL to use dynamic url sub-paths like localhost:3000/sub1/sub2.../dashboards)
  • /pkg/api/index.go (override appURL and appSubURL to use dynamic url sub-paths like localhost:3000/sub1/sub2.../dashboards
  • packages/grafana-data/src/themes/palette.ts (add new color lightGray)
  • packages/grafana-data/src/themes/createColors.ts (override background.canvas color with lightGray)
  • public/app/core/components/AppChrome/AppChrome.tsx (override searchBarHidden with true, replace NavToolbar with actions, add css for actions, disable NavToolbar and MegaMenu)
  • public/app/core/components/PageNew/SectionNav.tsx (disable SectionNavToggle)
  • public/app/features/dashboard/components/DashNav/DashNav.tsx (override canStar, canShare and isStarred with false)
  • public/app/core/components/PageNew/Page.tsx (disable padding in css)

for more details see: OP_CHANGES.md