From b45b507087c4ac4aa813f2a592f2b316dd7871b3 Mon Sep 17 00:00:00 2001 From: Bria Morgan Date: Fri, 11 Oct 2024 15:16:56 -0400 Subject: [PATCH] even more logging --- .../dsde/workbench/sam/service/ResourceService.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/scala/org/broadinstitute/dsde/workbench/sam/service/ResourceService.scala b/src/main/scala/org/broadinstitute/dsde/workbench/sam/service/ResourceService.scala index 4f90fbc5f..8adc12311 100644 --- a/src/main/scala/org/broadinstitute/dsde/workbench/sam/service/ResourceService.scala +++ b/src/main/scala/org/broadinstitute/dsde/workbench/sam/service/ResourceService.scala @@ -451,6 +451,9 @@ class ResourceService( private def checkNoPoliciesInUse(resource: FullyQualifiedResourceId, cascadePolicies: Option[Boolean], samRequestContext: SamRequestContext): IO[Unit] = cascadePolicies match { case Some(true) => + accessPolicyDAO.checkPolicyGroupsInUse(resource, samRequestContext).flatMap { problematicGroups => + if (problematicGroups.nonEmpty) logger.warn(s"Problematic groups to delete: ${problematicGroups}") + } accessPolicyDAO.removePolicyGroupsInUse(resource, samRequestContext) IO.unit case _ =>