Serge Zaitsev
faa1244518
Chore: Replace sqlstore with db interface ( #85366 )
...
* replace sqlstore with db interface in a few packages
* remove from stats
* remove sqlstore in admin test
* remove sqlstore from api plugin tests
* fix another createUser
* remove sqlstore in publicdashboards
* remove sqlstore from orgs
* clean up orguser test
* more clean up in sso
* clean up service accounts
* further cleanup
* more cleanup in accesscontrol
* last cleanup in accesscontrol
* clean up teams
* more removals
* split cfg from db in testenv
* few remaining fixes
* fix test with bus
* pass cfg for testing inside db as an option
* set query retries when no opts provided
* revert golden test data
* rebase and rollback
2024-04-04 15:04:47 +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
ismail simsek
b0dfeb1911
Chore: Clean up intervalv2 functions ( #82074 )
...
* clean up intervalv2 functions
* use roundInterval from grafana-plugin-sdk-go
* use from grafana-plugin-sdk-go
* have intervalv2 in publicdashboards and remove tsdb/intervalv2
* legacydata cleanup
* remove unused variables
* Update pkg/tsdb/legacydata/interval/interval.go
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
---------
Co-authored-by: Arati R. <33031346+suntala@users.noreply.github.com>
2024-02-09 11:39:21 +01: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
idafurjes
f44592a97a
Remove folderID from service tests ( #80615 )
...
* Remove folderID from service tests
* Remove folderID from ngalert migration tests
* Remove tests related to folderIDs
* Roll back change
Before removing FolderID from this test, we need to adjust the code
* Remove FolderID from publicdashboard pkg
* Add back annotations test
2024-01-26 17:36:35 +02:00
idafurjes
7e5544ab21
Add MFolderIDsServiceCount to count folderIDs in services pkg ( #81237 )
2024-01-25 11:10:35 +01: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
Ezequiel Victorero
9bd214516e
Chore: Folder id deprecation in public dashboards ( #80579 )
2024-01-18 10:27:09 -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
Lucy Chen
a29e1ee6a6
Task: Improve public dashboard config url formatting ( #79424 )
...
* Update publicdashboard config url
* add slug to sessiondashboard
* swagger doc update
2023-12-14 14:35:17 -05:00
Juan Cabanas
a18cba0ced
PublicDashboards: Remove unsupported datasource warning for cloudwatch ( #79403 )
2023-12-13 09:18:29 -03:00
Kat Yang
2d66d0de61
Chore: Remove FolderId from DashboardMeta ( #78501 )
...
* Chore: Remove FolderId from DashboardMeta
* chore: replace FolderId with FolderUid
* chore: fix test by adding FolderUID
2023-12-07 09:59:51 -05:00
Ezequiel Victorero
66df17869d
Chore: Use dashboard service to retrieve dashboards ( #79020 )
2023-12-05 18:09:21 -03:00
Jo
0de66a8099
Authz: Remove use of SignedInUser copy for permission evaluation ( #78448 )
...
* remove use of SignedInUserCopies
* add extra safety to not cross assign permissions
unwind circular dependency
dashboardacl->dashboardaccess
fix missing import
* correctly set teams for permissions
* fix missing inits
* nit: check err
* exit early for api keys
2023-11-22 14:20:22 +01: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
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
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
Kat Yang
6ed09de47d
Chore: Deprecate FolderId in DashboardMeta ( #77626 )
...
* Chore: Deprecate FolderId in DashboardMeta
* chore: regen specs
2023-11-06 11:31:44 -05: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
Juan Cabanas
633605af4e
PublicDashboards: Refresh ds plugin supported list ( #74947 )
2023-09-21 16:24:08 -03: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
Ezequiel Victorero
733044ee4b
PublicDashboards: Return no data found instead of internal server error ( #74417 )
2023-09-12 20:59:28 +03: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
Marcus Efraimsson
040b7d2571
Chore: Add errutils helpers ( #73577 )
...
Add helpers for the errutil package in favor of errutil.NewBase.
2023-08-22 12:52:24 +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
Ezequiel Victorero
bffd55efd4
PublicDashboards: Do not return hidden queries ( #72554 )
...
* PublicDashboards: Do not return hidden queries
* Update pkg/services/publicdashboards/service/query_test.go
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
---------
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
2023-07-31 10:54:54 -03:00
Jo
3300488667
AccessControl: Remove acmock.New from accesscontrol service tests ( #71942 )
...
* remove mock ac provider from service accounts
* remove mock ac provider from accesscontrol tests
* remove mock ac from ac service tests
2023-07-20 10:00:46 +02:00
Ieva
25c4292a5f
RBAC: search v1 permission filter part 1 - cleanup & updating tests ( #71913 )
...
* update tests and remove some AC disabled checks
* remove test for old permission filter builder
2023-07-19 10:37:27 +01: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