Ieva
e385237daf
Access control: Make sure that user permission cache is cleared after new dashboard and folder creation ( #104193 )
...
* make sure that user permission cache is cleared after new dashboard and folder creation
* more test fixes
* Update pkg/services/dashboards/service/dashboard_service.go
* check identity type in SetDefaultPermissionsAfterCreate, set default permissions for service accounts
* set SA permissions for folders as well
* fix tests
2025-04-24 16:02:39 +03:00
Stephanie Hingtgen
8cd6f837a5
Dashboards: Prevent saving to a non-existent folder ( #103503 )
2025-04-07 09:02:20 +03:00
Marco de Abreu
543c0bbccb
App platform: Add cleanup job for dashboards when going through /apis (kubectl) ( #102506 )
...
* Add dashboard cleanup job
Change log message
Adjust logic to account for new head RV logic
Don't update lastResourceVersion due to pagination
Save improvements
* Address review feedback
* Update docs.
* Remove docs
* Rename config
---------
Co-authored-by: Marco de Abreu <18629099+marcoabreu@users.noreply.github.com >
2025-03-22 23:47:27 +01: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
Stephanie Hingtgen
df84d928e2
K8s: Folders: Fix legacy search ( #100393 )
2025-02-11 13:14:25 -06:00
Ezequiel Victorero
3a94057ec8
PublicDashboards: Delete on folder deletion ( #99040 )
2025-01-23 17:23:59 -03:00
Todd Treece
2622449718
Dashboards: Use dashboard service in access control ( #99053 )
2025-01-21 22:57:43 +02:00
Alexander Zobnin
cbb688e910
Zanzana: Remove usage from legacy access control ( #98883 )
...
* Zanzana: Remove usage from legacy access control
* remove unused
* remove zanzana client from services where it's not used
* remove unused metrics
* fix linter
2025-01-14 10:26:15 +01:00
Stephanie Hingtgen
9488bf2915
Dashboards: use service for quotas ( #98756 )
2025-01-09 22:21:21 -07:00
Stephanie Hingtgen
03f7a7d89d
K8s: Dashboards: Add search to dashboard service ( #98395 )
2025-01-02 09:39:45 -06:00
Stephanie Hingtgen
b3985a4d37
k8s: Dashboards: allow querying of unistore ( #97995 )
2024-12-17 10:35:46 -06:00
Stephanie Hingtgen
8f6e9f8ed0
Restores in app platform ( #97582 )
2024-12-13 16:55:43 -06:00
Juan Cabanas
b8e92aacd2
PublicDashboards: Remove publicDashboards FF ( #96578 )
2024-11-20 11:36:19 -03:00
Alexander Zobnin
1366197522
Zanzana: Search with check server side ( #96268 )
...
* pass zclient into dashboard service
* Search then check implementation
* Use GetNamespace() for user
* remove unused orgID
* simple batch check
* refactor
* add tests
* fix batchCheckItem
* client implements batch check
* use batch check in search
* remove unused
* remove All field from response
* refactor: extract checkNamespace
* fix search result uniqueness
* comment fix
* Apply suggestions from code review
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
* refactor
* cleanup
* remove unnecessary check
* fix tests
* fix protobuf def
* Fix query page
* fix type
---------
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
2024-11-18 14:01:28 +01:00
Arati R.
ed75aea21d
Folders: Export folder store implementation ( #93897 )
...
* Export folder store implementation
* Rename folder store
* Add folder store as a parameter to folder service
* Add folder store to dash service implementation
* Fix folder store comments
2024-09-30 10:28:47 +02:00
Jeff Levin
a21a232a8e
Revert read replica POC ( #93551 )
...
* Revert "chore: add replDB to team service (#91799 )"
This reverts commit c6ae2d7999 .
* Revert "experiment: use read replica for Get and Find Dashboards (#91706 )"
This reverts commit 54177ca619 .
* Revert "QuotaService: refactor to use ReplDB for Get queries (#91333 )"
This reverts commit 299c142f6a .
* Revert "refactor replCfg to look more like plugins/plugin config (#91142 )"
This reverts commit ac0b4bb34d .
* Revert "chore (replstore): fix registration with multiple sql drivers, again (#90990 )"
This reverts commit daedb358dd .
* Revert "Chore (sqlstore): add validation and testing for repl config (#90683 )"
This reverts commit af19f039b6 .
* Revert "ReplStore: Add support for round robin load balancing between multiple read replicas (#90530 )"
This reverts commit 27b52b1507 .
* Revert "DashboardStore: Use ReplDB and get dashboard quotas from the ReadReplica (#90235 )"
This reverts commit 8a6107cd35 .
* Revert "accesscontrol service read replica (#89963 )"
This reverts commit 77a4869fca .
* Revert "Fix: add mapping for the new mysqlRepl driver (#89551 )"
This reverts commit ab5a079bcc .
* Revert "fix: sql instrumentation dual registration error (#89508 )"
This reverts commit d988f5c3b0 .
* Revert "Experimental Feature Toggle: databaseReadReplica (#89232 )"
This reverts commit 50244ed4a1 .
2024-09-25 15:21:39 -08:00
Kristin Laemmert
8a6107cd35
DashboardStore: Use ReplDB and get dashboard quotas from the ReadReplica ( #90235 )
...
* Use ReplDB in dashboard store and update all fixtures - no other changes
* just moving dashboard counts for now
* find the missing test fixture
2024-07-12 10:47:49 -04:00
Juan Cabanas
0d276fe7b1
Share Externally: Texts modification ( #89640 )
2024-06-25 17:52:41 -03:00
Ryan McKinley
99d8025829
Chore: Move identity and errutil to apimachinery module ( #89116 )
2024-06-13 07:11:35 +03:00
Juan Cabanas
a85c1b69d5
PublicDashboards: Remove publicDashboardUid from DashboardMeta ( #85126 )
2024-05-23 11:21:21 -03:00
Serge Zaitsev
522a98c126
Chore: Make Cfg field private in SQLStore ( #85593 )
...
* make cfg private in sqlstore
* fix db init in tests
* fix case
* fix folder test init
* fix imports
* make another Cfg private
* remove another Cfg
* remove unused variable
* use store cfg, it has side-effects
* fix mutated cfg in tests
2024-04-24 10:38:40 +02:00
Ieva
df40e13333
Public dashboards: fix public dashboard permissions so that annotations are displayed ( #85091 )
...
* fix public dashboard anonymous user permissions so they include the new annotation permissions
* test fix
2024-03-25 17:42:40 +00:00
Gilles De Mey
8765c48389
Alerting: Remove legacy alerting ( #83671 )
...
Removes legacy alerting, so long and thanks for all the fish! 🐟
---------
Co-authored-by: Matthew Jacobson <matthew.jacobson@grafana.com >
Co-authored-by: Sonia Aguilar <soniaAguilarPeiron@users.noreply.github.com >
Co-authored-by: Armand Grillet <armandgrillet@users.noreply.github.com >
Co-authored-by: William Wernert <rwwiv@users.noreply.github.com >
Co-authored-by: Yuri Tseretyan <yuriy.tseretyan@grafana.com >
2024-03-14 15:36:35 +01:00
Agnès Toulet
8d68159b52
Public Dashboards: Disable email-sharing when there is no license ( #80887 )
...
* PublicDashboards: Disable email-shared dashboards when feature is disabled
* fix pubdash creation when it was email-shared
* add feature name const in OSS
* update doc
* Update service.go
* fix test & linter
* fix test
* Update query_test.go
* update tests
* fix imports
* fix doc linter issues
* Update docs/sources/administration/enterprise-licensing/_index.md
* fix after merge
2024-02-22 09:34:14 +01:00
idafurjes
cb419e799b
Remove folderid service test ( #80433 )
...
* Remove FolderID from service tests
* Add models
* Add folderID pack to publicdashboard tests
* Remove folderID from dashboard tests
* Remove folderID from folders
* Remove folderID from ngalert tests
* Remove nolint comment
* Add back some tests after rebase
2024-01-12 16:43:39 +01:00
Agnès Toulet
fdaf6e3f2e
PublicDashboards: Add setting to disable the feature ( #78894 )
...
* Replace feature toggle with configuration setting
* Fix permission alert
* Update documentation
* Add back feature toggle
* revert unwanted commited changes
* fix tests
* run prettier
* Update SharePublicDashboard.test.tsx
* fix linter and frontend tests
* Update api.go
* Apply docs edit from code review
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com >
* Update index.md
* Update docs/sources/setup-grafana/configure-grafana/feature-toggles/index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* Update docs/sources/setup-grafana/configure-grafana/_index.md
Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com >
* add isPublicDashboardsEnabled + test
* fix test
* update ff description in registry
* move isPublicDashboardsEnabled
* revert getConfig() update
---------
Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com >
Co-authored-by: Christopher Moyer <35463610+chri2547@users.noreply.github.com >
2023-12-19 11:43:54 +01:00
Ezequiel Victorero
66df17869d
Chore: Use dashboard service to retrieve dashboards ( #79020 )
2023-12-05 18:09:21 -03:00
Kat Yang
d090dab138
Chore: Deprecate FolderID from SaveDashboardCommand ( #77813 )
2023-11-15 11:21:02 -05:00
Ryan McKinley
3509a5abb9
FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled ( #78014 )
2023-11-13 07:55:15 -08:00
Sofia Papagiannaki
03a626f1d6
Search: Fix empty folder details for nested folder items ( #76504 )
...
* Introduce dashboard.folder_uid column
* Add data migration
* Search: Fix empty folder details for nested folders
* Set `dashboard.folder_uid` and update tests
* Add unique index
* lint
Ignore cyclomatic complexity of func
`(*DashboardServiceImpl).BuildSaveDashboardCommand
* Fix search by folder UID
2023-10-24 10:04:45 +03:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Ezequiel Victorero
a0e8cf8b66
PublicDashboards: Remove query expressions from dashboard model ( #72468 )
2023-08-25 15:35:22 -05:00
Ieva
ca46a5c1af
Chore: prepare for removing RBACenabled config option ( #73845 )
...
prepare for removing RBACenabled config option
2023-08-25 17:13:46 +02:00
Ieva
ec9c35fae5
Chore: clean up access control for data sources ( #73010 )
...
* move DS guardian interfaces to OSS, move allow guardian to OSS
* update codeowner file
2023-08-21 14:26:49 +01:00
Ieva
a65cb4d808
RBAC: remove simple RBAC disabled checks ( #71137 )
...
* remove simple RBAC disabled checks
* fixing tests
* remove old AC tests
2023-07-10 15:14:21 +03:00
Ezequiel Victorero
75a81e5b9f
PublicDashboards: Remove non updatable fields from DTO ( #70871 )
2023-06-29 14:35:23 -03:00
Juan Cabanas
ee73d41d24
PublicDashboards: Audit table pagination ( #69823 )
2023-06-21 10:48:09 -03:00
Juan Cabanas
9890ff7c92
PublicDashboards: Audit table redesign ( #68137 )
2023-05-29 12:59:29 -03:00
Ezequiel Victorero
3224b4c8f0
PublicDashboards: validate only one public dashboard per dashboard ( #66228 )
2023-04-12 10:57:42 -03:00
juanicabanas
4d0e309d4e
PublicDashboards: New method created to get access through Request access page when its paused ( #64451 )
2023-03-09 14:17:54 -03:00
Ezequiel Victorero
8520a8614c
PublicDashboards: add recipients to the public dashboards retrieval ( #63149 )
2023-02-10 15:01:26 -03:00
suntala
49b3027049
Chore: Remove Result field from datasources ( #63048 )
...
* Remove Result field from AddDataSourceCommand
* Remove DatasourcesPermissionFilterQuery Result
* Remove GetDataSourceQuery Result
* Remove GetDataSourcesByTypeQuery Result
* Remove GetDataSourcesQuery Result
* Remove GetDefaultDataSourceQuery Result
* Remove UpdateDataSourceCommand Result
2023-02-09 15:49:44 +01:00
idafurjes
23c27cffb3
Chore: Rename Id to ID in alerting models ( #62777 )
...
* Chore: Rename Id to ID in alerting models
* Add xorm tags for datasource
* Add xorm tag for uid
2023-02-02 17:22:43 +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
Ezequiel Victorero
34a865ebf0
PublicDashboards: remove publicDashboardUID from insights event request ( #60649 )
2023-01-11 18:25:18 -03:00
Sofia Papagiannaki
9855e74b92
Chore: Refactor quota service ( #58643 )
...
Chore: Refactor quota service (#57586 )
* Chore: refactore quota service
* Apply suggestions from code review
2022-11-14 21:08:10 +02:00
Sofia Papagiannaki
96cdf77995
Revert "Chore: Refactor quota service ( #57586 )" ( #58394 )
...
This reverts commit 326ea86a57 .
2022-11-08 11:52:07 +02:00
Sofia Papagiannaki
326ea86a57
Chore: Refactor quota service ( #57586 )
...
* Chore: refactore quota service
* Apply suggestions from code review
2022-11-08 10:25:34 +02:00