mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Deprecate FolderID in GetLibraryElementCommand (#77404)
This commit is contained in:
@@ -661,14 +661,14 @@ func TestIntegrationNestedFolderService(t *testing.T) {
|
||||
|
||||
_, err = lps.LibraryElementService.GetElement(context.Background(), &signedInUser, model.GetLibraryElementCommand{
|
||||
FolderName: parent.Title,
|
||||
FolderID: parent.ID,
|
||||
FolderID: parent.ID, // nolint:staticcheck
|
||||
UID: parentPanel.UID,
|
||||
})
|
||||
require.ErrorIs(t, err, tc.libPanelParentErr)
|
||||
if tc.depth > 1 {
|
||||
_, err = lps.LibraryElementService.GetElement(context.Background(), &signedInUser, model.GetLibraryElementCommand{
|
||||
FolderName: subfolder.Title,
|
||||
FolderID: subfolder.ID,
|
||||
FolderID: subfolder.ID, // nolint:staticcheck
|
||||
UID: subPanel.UID,
|
||||
})
|
||||
require.ErrorIs(t, err, tc.libPanelSubErr)
|
||||
|
||||
Reference in New Issue
Block a user