From cdc5d4be779eb6a2cdc7570cb84e21ddba364d8c Mon Sep 17 00:00:00 2001 From: marrobi Date: Tue, 13 Jun 2023 08:50:00 +0000 Subject: [PATCH] Ensure failed resources are added to resources_list --- CHANGELOG.md | 2 ++ api_app/_version.py | 2 +- api_app/db/repositories/resources.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c649349e6..8a49eeffcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ BUG FIXES: * Update key in Linux VM deploy script ([#3434](https://github.com/microsoft/AzureTRE/issues/3434)) * Add missing `azure_environment` porter parameters ([#3549](https://github.com/microsoft/AzureTRE/issues/3549)) * Fix airlock_notifier not getting the right smtp password ([#3561](https://github.com/microsoft/AzureTRE/issues/3561)) +* Fix issue when deleting failed resources gives no steps ([#3567](https://github.com/microsoft/AzureTRE/issues/3567)) + COMPONENTS: diff --git a/api_app/_version.py b/api_app/_version.py index c0d4999208..32e2f393c7 100644 --- a/api_app/_version.py +++ b/api_app/_version.py @@ -1 +1 @@ -__version__ = "0.15.2" +__version__ = "0.15.5" diff --git a/api_app/db/repositories/resources.py b/api_app/db/repositories/resources.py index 05cc98cf38..6cbc464080 100644 --- a/api_app/db/repositories/resources.py +++ b/api_app/db/repositories/resources.py @@ -130,7 +130,7 @@ async def get_resource_dependency_list(self, resource: Resource) -> List: dependent_resources_list = [] # Get all related resources - related_resources_query = f"SELECT * FROM c WHERE CONTAINS(c.resourcePath, '{parent_resource_path}') AND c.deploymentStatus != '{Status.Deleted}' and c.deploymentStatus != '{Status.DeploymentFailed}'" + related_resources_query = f"SELECT * FROM c WHERE CONTAINS(c.resourcePath, '{parent_resource_path}') AND c.deploymentStatus != '{Status.Deleted}'" related_resources = await self.query(query=related_resources_query) for resource in related_resources: resource_path = resource["resourcePath"]