Ryan McKinley
3f4c523ef5
Provisioning: Add k8s annotations for legacy folder provisioning ( #110827 )
2025-09-09 17:01:08 +00:00
Ryan McKinley
7c95d3c8a9
Folders: Split legacy out of folder.Service (and remove folder.FolderStore) ( #110734 )
2025-09-08 18:27:49 +03:00
Peter Štibraný
7fd9ab9481
Replace check for integration tests. ( #110707 )
...
* Replace check for integration tests.
* Revert changes in pkg/tsdb/mysql packages.
* Fix formatting of few tests.
2025-09-08 15:49:49 +02:00
Stephanie Hingtgen
6b86277ecf
Nested folders: Remove feature flag ( #109212 )
2025-08-06 10:07:23 +03:00
Serge Zaitsev
a95fb3a37c
Chore: Omit integration tests if short test flag is passed ( #108777 )
...
* omit integration tests if short test flag is passed
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/tests/api/alerting/api_ruler_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/cmd/grafana-cli/commands/datamigrations/to_unified_storage_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* Update pkg/services/ngalert/models/receivers_test.go
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
* fix the rest
* false positive
---------
Co-authored-by: Matheus Macabu <macabu@users.noreply.github.com >
2025-07-28 13:38:54 +02:00
Serge Zaitsev
f66a693438
Chore: Rename integration tests to follow the common convention ( #105987 )
...
* automatically rename integration tests to follow the common convention
* name tests differently
* alter column type to bigint
* update another column to bigint
* add another alter
* fix subquery for mysql
2025-06-29 16:56:24 +02:00
Stephanie Hingtgen
745eda2848
Dashboard Provisioning: Fix re-provisioning on each run ( #105979 )
...
Dashboard Provisioning: Fix reprovisioning on startup
2025-05-25 13:18:49 +03:00
Ryan McKinley
b09d79b21c
K8s/Dashboard: Promote from alpha1 to beta1 ( #104009 )
2025-04-23 20:54:35 +03:00
Mariell Hoversholm
d0d7078953
App Platform: Remove mutable globals ( #102962 )
...
* App Platform: Remove mutable globals
* chore: clarify why this exists
* fix: support multi-tenant mode
* refactor: call builder providers directly
* CI: Force re-build
2025-03-27 15:46:09 +01:00
Stephanie Hingtgen
7c2890384a
K8s: Dashboards: Set v1alpha1 as priority ( #102729 )
2025-03-25 10:32:49 -06:00
Igor Suleymanov
5d2ba10113
K8s/Dashboards: Extract Dashboard APIs to an app submodule ( #102029 )
...
* Move dashboard k8s APIs to a separate app
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Copy dashboard code in Dockerfile
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Fix conversion generation
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
* Update OpenAPI snapshot for dashboard/v0alpha1
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
---------
Signed-off-by: Igor Suleymanov <igor.suleymanov@grafana.com >
2025-03-13 11:05:01 +02:00
Ryan McKinley
c1b48cc488
Dashboards: Add apiVersion to dashboard table ( #100845 )
2025-03-04 07:47:45 +03:00
Ryan McKinley
5a40c84568
DualWriter: Support managed DualWriter ( #100881 )
2025-02-19 17:50:39 +03:00
Stephanie Hingtgen
67be9aeed6
K8s: Search fallback: Support all sort by methods ( #100776 )
2025-02-18 12:30:11 -06:00
Peter Štibraný
1856d47e47
Remove GetResourceClient hack from unified package. ( #100636 )
...
* Remove GetResourceClient hack from unified package.
2025-02-14 12:34:52 +01:00
Sergej-Vlasov
d1dee968c3
Schema V2: Adjust quick_ranges in time settings and remove time_options ( #100135 )
...
* adjut quickRanges type in v2
* clean up unused time_options property
* remove deprecated time_options property on time picker
* add schema migration for time_options
* adjust test
2025-02-12 19:23:09 +00:00
Karl Persson
39d94eabcd
Auth: Fix function name ( #100122 )
...
Fix spelling
2025-02-05 15:32:22 +01:00
Ryan McKinley
8c0b812874
Provisioning: Expose dashboard config within grafana ( #99947 )
2025-02-03 11:44:34 +02:00
maicon
20f02ec12f
Unistore: refactor provisioning to work with folder service ( #99473 )
2025-01-29 05:19:38 +02:00
Ryan McKinley
2f40fd6741
Dashboards: Remove unique name constraints ( #90687 )
2024-10-29 08:58:39 +03:00
Arati R.
34149c86d0
Provisioning: Prevent provisioning folder errors from failing startup ( #92560 )
...
* Prevent provisioning folder errors from failing startup
* Refactor setting of dashboard provisioner
2024-08-28 14:49:00 +02:00
Sofia Papagiannaki
17ca61d7f8
Alerting: Export and provisioning rules into subfolders ( #77450 )
...
* Folders: Optionally include fullpath in service responses
* Alerting: Export folder fullpath instead of title
* Escape separator in folder title
* Add support for provisiong alret rules into subfolders
* Use FolderService for creating folders during provisioning
* Export WithFullpath() folder service function
---------
Co-authored-by: Tania B <yalyna.ts@gmail.com >
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-05-31 11:09:20 +03:00
Dan Cech
1884b03511
Provisioning: Look up provisioned folders by UID when possible ( #87465 )
...
look up provisioned folders by uid when possible
2024-05-07 15:38:53 -04:00
Sofia Papagiannaki
6f02d193f6
Provisioning: Fix failure to save dashboard ( #81694 )
2024-02-02 09:55:29 +00:00
idafurjes
7e5544ab21
Add MFolderIDsServiceCount to count folderIDs in services pkg ( #81237 )
2024-01-25 11:10:35 +01:00
Tania
744c1032ee
Provisioning: Fix dual write of folders ( #80140 )
...
* Provisioning: Store folders in folders table
* Solve linting issues
* Remove a comment
2024-01-10 16:48:28 +01:00
Kat Yang
43356e28e7
Chore: Remove folderID from dashboardIdentity tests ( #79195 )
2023-12-13 10:50:46 +01:00
Kat Yang
3a2e96b0db
Chore: Deprecate FolderID from Dashboard ( #77823 )
...
* Chore: Deprecate FolderID from Dashboard
* chore: add two missing nolint comments
2023-11-15 10:28:50 -05:00
Kat Yang
1c758ab5f2
Chore: Deprecate folderID from dashboardIdentity ( #77650 )
2023-11-09 10:57:33 -05:00
Kat Yang
4e57324d58
Chore: Deprecate FolderID from GetDashboardQuery ( #77812 )
2023-11-09 10:53:39 -05:00
Sofia Papagiannaki
2598ff7c93
Provisioning: Set dashboard.folder_uid column for provisioned dashboards ( #77637 )
...
Provisiong: Store folder UID to provisioned dashboards
2023-11-07 11:15:20 +02:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Torkel Ödegaard
74d453f056
DashboardSchema: Remove old unused legacy props style and timepicker.enable ( #73879 )
...
* DashboardScheam: Remove old unused legacy props style and timepicker.enable
* Update
* fix test
2023-08-28 12:18:17 +02:00
Eng Zer Jun
cf1945d0c3
Tests: use t.Setenv to set env vars ( #69516 )
...
This commit replaces `os.Setenv` with `t.Setenv` in tests. The
environment variable is automatically restored to its original value
when the test and all its subtests complete.
Reference: https://pkg.go.dev/testing#T.Setenv
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2023-06-05 11:31:03 +02:00
Emil Tullstedt
b210a39cb7
Dashboards: Evaluate provisioned dashboard titles in a backwards compatible way ( #65184 )
2023-03-28 13:24:19 +02:00
Serge Zaitsev
bc2813ef06
Chore: Fix goimports grouping in pkg/services ( #62420 )
...
* fix goimports
* fix goimports order
2023-01-30 08:21:27 +00:00
idafurjes
b54b80f473
Chore: Remove Result from dashboard models ( #61997 )
...
* Chore: Remove Result from dashboard models
* Fix lint tests
* Fix dashboard service tests
* Fix API tests
* Remove commented out code
* Chore: Merge main - cleanup
2023-01-25 10:36:26 +01:00
idafurjes
b573b19ca3
Chore: Remove dashboards from models pkg ( #61578 )
...
* Copy dashboard models to dashboard pkg
* Use some models from current pkg instead of models
* Adjust api pkg
* Adjust pkg services
* Fix lint
* Chore: Remove dashboards models
* Remove dashboards from models pkg
* Fix lint in tests
* Fix lint in tests 2
* Fix for import in auth
* Remove newline
* Revert unused fix
2023-01-18 13:52:41 +01:00
idafurjes
7c2522c477
Chore: Move dashboard models to dashboard pkg ( #61458 )
...
* Copy dashboard models to dashboard pkg
* Use some models from current pkg instead of models
* Adjust api pkg
* Adjust pkg services
* Fix lint
2023-01-16 16:33:55 +01:00
idafurjes
bb35f37b66
Chore: Delete org model duplicates ( #60940 )
...
* Delete org model duplicates
* Fix lint
* Move OrgDetailsDTO to org pkg
2023-01-04 16:20:26 +01:00
Serge Zaitsev
43f40e6c7c
Chore: Replace yaml.v2 with yaml.v3 ( #59897 )
...
* replace yaml.v2 with yaml.v3
* fix a few tests due to the yaml.v3 api changes
* and another goconvey mistake in tests
2022-12-06 21:17:17 +01:00
Ryan McKinley
5b71a16acf
Slugify: Replace gosimple/slug with a simple function ( #59517 )
2022-11-30 11:12:56 -05:00
Serge Zaitsev
5b861faec3
Chore: Reduce the usage of sqlstore.createorg and use orgservice instead ( #59356 )
...
* remove legacy createorg from org service
* remove another createorg from orgimpl
* remove createorg from api pref tests
* remove createorg from api org tests
* fix tests
* remove createorg from annotations test
* remove createorg from team tests
* remove createorg from service accounts
* remove createorg from accesscontrol tests
* remove createorg from provisioning
* Use quotaservice from sc.hs
2022-11-28 12:05:46 +01:00
Denis Limarev
4d8287b319
Performance: add preallocation for some slice/map ( #57860 )
...
This change preallocates slices and maps where the size of the data is known before the object is created.
Co-authored-by: Joe Blubaugh <joe.blubaugh@grafana.com >
2022-11-22 20:24:36 +08:00
Kristin Laemmert
706b301285
feat(nested folders): add CountDashboardsInFolder ( #57847 )
...
* feat(nested folders): add CountDashboardsInFolder
This commit adds a new method to the Dashboard service and stores: CountDashboardsInFolder. The command struct takes a folderUID, but the store implementation still depends on the parent folder ID. This is temporary; eventually we will replace all references to FolderIDs (associated with Dashboards) with folder UIDs.
There are some unfortunate additional test changes that were necessary after generating the service & store mocks; it looks like that hasn't been generated since the last change(s).
* more test updates
* don't forget the service test
* that didn't end up used, so bye for now
* agree to disagree with the linter
2022-11-02 09:15:50 -04:00
Kristin Laemmert
05709ce411
chore: remove sqlstore & mockstore dependencies from (most) packages ( #57087 )
...
* chore: add alias for InitTestDB and Session
Adds an alias for the sqlstore InitTestDB and Session, and updates tests using these to reduce dependencies on the sqlstore.Store.
* next pass of removing sqlstore imports
* last little bit
* remove mockstore where possible
2022-10-19 09:02:15 -04:00
idafurjes
ef651daed2
Use org service instead of sqlstore ( #56407 )
...
* Use org service instead of sqlstore
* Remove methods from sqlstore
* Remove commented out code
* Fix lint
* Fix lint 2
2022-10-13 08:40:46 -04:00
Maksim Nabokikh
d1e50580a5
Add the file label to dashboard provisioning errors ( #53282 )
...
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com >
2022-09-26 10:57:37 +02:00
ying-jeanne
7b4cea8151
Chore: StoreSplit tag service ( #55453 )
...
* move tag service outside
* fix dashboard
* fix test
* lint
* fix linter
* remove spew
2022-09-21 08:04:01 -04:00
Jo
ca72cd570e
Remove ioutil.ReadDir from usage ( #53550 )
...
* add depguard rule for ioutil
* replace ioutil.ReadDir with os.ReadDir
* use legacy option in depguard supported in golangci-lint v1.40
* replace ioutil.ReadDir with os.ReadDir
* return error for file info
2022-08-11 07:21:12 -04:00