Ensure parent resource is always added to resources_list (#3567)

This commit is contained in:
Marcus Robinson 2023-06-14 16:51:07 +01:00 коммит произвёл GitHub
Родитель 9f748fa30e
Коммит 63bc06b05f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -18,7 +18,9 @@ BUG FIXES:
* Azure ML connection URI is an object, not string ([#3486](https://github.com/microsoft/AzureTRE/issues/3486))
* 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), [#3571](https://github.com/microsoft/AzureTRE/issues/3571))
* 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))
* Fix airlock_notifier not getting the right smtp password ([#3565](https://github.com/microsoft/AzureTRE/issues/3565))
COMPONENTS:

Просмотреть файл

@ -1 +1 @@
__version__ = "0.15.3"
__version__ = "0.15.5"

Просмотреть файл

@ -130,7 +130,7 @@ class ResourceRepository(BaseRepository):
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"]