Skip to content

Commit

Permalink
Ensure failed resources are added to resources_list
Browse files Browse the repository at this point in the history
  • Loading branch information
marrobi committed Jun 13, 2023
1 parent e5c0c9a commit cdc5d4b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion api_app/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.15.2"
__version__ = "0.15.5"
2 changes: 1 addition & 1 deletion api_app/db/repositories/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit cdc5d4b

Please sign in to comment.