Revert "Remove dependency on dashboards table to get library element and library element connection" (#99213)

Revert "Remove dependency on dashboards table to get library element and libr…"

This reverts commit 32790c6918.
This commit is contained in:
Stephanie Hingtgen
2025-01-17 21:43:14 +02:00
committed by GitHub
parent 414f8d14f4
commit fb3a858726
3 changed files with 18 additions and 24 deletions
@@ -116,13 +116,11 @@ func TestLibraryElementPermissionsGeneralFolder(t *testing.T) {
sc.reqContext.Req.Body = mockRequestBody(cmd)
resp := sc.service.createHandler(sc.reqContext)
result := validateAndUnMarshalResponse(t, resp)
result.Result.FolderUID = "general"
result.Result.Meta.CreatedBy.Name = userInDbName
result.Result.Meta.CreatedBy.AvatarUrl = userInDbAvatar
result.Result.Meta.UpdatedBy.Name = userInDbName
result.Result.Meta.UpdatedBy.AvatarUrl = userInDbAvatar
result.Result.Meta.FolderName = "General"
result.Result.Meta.FolderUID = "general"
sc.reqContext.SignedInUser.OrgRole = testCase.role
resp = sc.service.getAllHandler(sc.reqContext)