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
Giuseppe Guerra
9216a3df7d
Plugins: Remove datasourceQueryMultiStatus feature toggle ( #90191 )
...
* Remove datasourceQueryMultiStatus feature toggle
* PR review suggestion
2024-07-10 11:15:10 +02:00
Alexander Zobnin
87d86e81ce
Zanzana: Evaluate permissions alongside with RBAC engine ( #90064 )
...
* Zanzana: Evaluate permissions if feature flag enabled
* Fix tests
* adjust logs
* fix spelling
* remove unused
* only evaluate implemented resources
* refactor
2024-07-05 11:31:23 +02:00
Juan Cabanas
0d276fe7b1
Share Externally: Texts modification ( #89640 )
2024-06-25 17:52:41 -03:00
Juan Cabanas
59d83bc55a
PublicDashboards: Fix error message when deleting ( #89166 )
2024-06-13 10:39:35 -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
Ieva
167151b211
Chore: Remove use of deprecated method in AC code ( #87541 )
...
* switch from using cfg to using featuremgmt for checking a feature toggle in AC code
* merge test fixes
2024-05-10 11:56:52 +01: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
Will Browne
5edd96ae77
Plugins: Refactor plugin config into separate env var and request scoped services ( #83261 )
...
* seperate services for env + req
* merge with main
* fix tests
* undo changes to golden file
* fix linter
* remove unused fields
* split out new config struct
* provide config
* undo go mod changes
* more renaming
* fix tests
* undo bra.toml changes
* update go.work.sum
* undo changes
* trigger
* apply PR feedback
2024-02-27 12:38:02 +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
Dan Cech
790e1feb93
Chore: Update test database initialization ( #81673 )
...
* streamline initialization of test databases, support on-disk sqlite test db
* clean up test databases
* introduce testsuite helper
* use testsuite everywhere we use a test db
* update documentation
* improve error handling
* disable entity integration test until we can figure out locking error
2024-02-09 09:35:39 -05:00
Mihai Doarna
6b28669e1f
Send empty http response when body is nil ( #80196 )
...
* build empty response if body is nil
* fix test
2024-01-29 14:17:56 +02:00
Will Browne
3f30cbf91c
DataSources: Add datasource fetching + querying interface ( #80749 )
...
* first pass
* separate oss + enterprise
* tidy things up
* add ctx
* fix tests
* use standalone svcs
* mv plugin context provide
* fix wire
* fix import
2024-01-19 15:56:52 +01:00
Juan Cabanas
fb4125dfbb
PublicDashboards: Add middleware function ( #80582 )
2024-01-18 15:12:29 -03: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
Ryan McKinley
1caaa56de0
FeatureFlags: Use interface rather than manager ( #80000 )
2024-01-09 10:38:06 -08: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
Juan Cabanas
9c5daed336
PublicDashboards: Middleware creation ( #77941 )
2023-11-21 17:56:36 -03:00
Kat Yang
d090dab138
Chore: Deprecate FolderID from SaveDashboardCommand ( #77813 )
2023-11-15 11:21:02 -05:00
Ryan McKinley
f69fd3726b
FeatureToggles: Add context and and an explicit global check ( #78081 )
2023-11-14 12:50:27 -08:00
Ryan McKinley
3509a5abb9
FeatureFlags: Cleanup usage of cfg.IsFeatureToggleEnabled ( #78014 )
2023-11-13 07:55:15 -08:00
Ezequiel Victorero
16034ef062
PublicDashboards: Add swagger documentation ( #75318 )
2023-10-30 10:32:07 -03:00
Ezequiel Victorero
b2ef9a81f2
PublicDashboards: Chore refactor api test ( #77091 )
2023-10-26 14:52:27 -03: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
Khushi Jain
42fb42a90d
PublicDashboards: Add validation deletion ( #75336 )
2023-10-11 11:59:13 +00:00
Jo
dcd0c6b11e
Identity: Unfurl OrgID in pkg/services to allow using identity.Requester interface ( #76113 )
...
Unfurl OrgID in pkg/services to allow using identity.Requester interface
2023-10-09 10:40:19 +02:00
Will Browne
7fca1bde54
Plugins: Set grafana config, plugin version and user agent on plugin requests ( #75171 )
...
* first pass
* fixup
* remove test line
* fix tests
* use new fields
* fix imports + formatting
* fix tests
* rollback changes
* undo whitespace
* apply pr feedback
2023-09-21 11:33:31 +02:00
Will Browne
e855efb13d
Plugins: Move store and plugin dto to pluginsintegration ( #74655 )
...
move store and plugin dto
2023-09-11 13:59:24 +02:00
Lucy Chen
8833f360ec
PublicDashboards: Accept AccessToken for pubdash creation ( #74134 )
...
* Add Access token input
* add unit tests to access token
* if else logic to not call find on empty string
* update var naming
2023-09-01 10:21:54 -04:00
Ryan McKinley
025b2f3011
Chore: use any rather than interface{} ( #74066 )
2023-08-30 18:46:47 +03:00
Lucy Chen
a39d1e278e
PublicDashboards: Accept uid to pubdash creation ( #73956 )
...
* accept uid to pubdash creation
* add accesstoken back
* add uid validation unit tests
* unit test for create pubdash with uid
* update err declaration
* remove white space
* add comment
* remove trailing spaces
* remove space
* suggested changes
2023-08-29 17:25:07 -04:00
Ezequiel Victorero
a0e8cf8b66
PublicDashboards: Remove query expressions from dashboard model ( #72468 )
2023-08-25 15:35:22 -05:00
Torkel Ödegaard
3ee26df41e
PublicDashboards: Variables refactor ( #73476 )
...
Co-authored-by: Juan Cabanas <juan.cabanas@grafana.com >
Co-authored-by: Ezequiel Victorero <ezequiel.victorero@grafana.com >
Co-authored-by: Ryan McKinley <ryantxu@gmail.com >
2023-08-25 13:56:02 -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
Karl Persson
16d24a8429
RBAC: remove LoadPermissionsMiddleware ( #73228 )
...
* PubDash: remove LoadPermissionMiddleware from tests
* RBAC: Remove unused LoadPermission middleware
2023-08-14 14:07:09 +02:00
Will Browne
a8577c21ba
Plugins: Migrate PluginStore mock to pre-existing fakes package ( #71664 )
...
* migrate to existing fakes package
* fix imports
2023-07-17 10:21:44 +00: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
Will Browne
624777258b
Plugins: Refactor creation of plugin context to dedicated service ( #66451 )
...
* first pass
* fix tests
* return errs
* change signature
* tidy
* delete unnecessary fields from test
* tidy
* fix tests
* simplify
* separate error check in API
* apply nits
2023-06-08 13:59:51 +02:00
Juan Cabanas
9890ff7c92
PublicDashboards: Audit table redesign ( #68137 )
2023-05-29 12:59:29 -03:00