Chore: Deprecate FolderID in GetLibraryElementCommand (#77404)

This commit is contained in:
Kat Yang
2023-10-31 11:46:48 -04:00
committed by GitHub
parent 91398a173f
commit 87717849da
3 changed files with 6 additions and 4 deletions

View File

@@ -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)