Skip to content
Snippets Groups Projects
Commit 01cf9574 authored by Eterevskiy Georgiy's avatar Eterevskiy Georgiy
Browse files

Merge branch 'feature/rm_using_force' into 'master'

Rm `use_force` from `install` and `update` methods

See merge request !59
parents 30fef9ee 9e325fca
No related branches found
No related tags found
1 merge request!59Rm `use_force` from `install` and `update` methods
...@@ -440,11 +440,6 @@ class ExtensionSetup: ...@@ -440,11 +440,6 @@ class ExtensionSetup:
async def install(self, space_id: str, env_id: str, use_force: bool) -> list[str]: async def install(self, space_id: str, env_id: str, use_force: bool) -> list[str]:
errors = [] errors = []
if use_force:
errors += await self.__remove_collections(space_id, env_id)
errors += await self.__remove_clients(space_id)
errors += await self.__remove_roles(space_id)
errors += await self.__update_collections(space_id, env_id) errors += await self.__update_collections(space_id, env_id)
errors += await self.__update_roles(space_id, env_id) errors += await self.__update_roles(space_id, env_id)
errors += await self.__update_clients(space_id) errors += await self.__update_clients(space_id)
...@@ -454,12 +449,6 @@ class ExtensionSetup: ...@@ -454,12 +449,6 @@ class ExtensionSetup:
async def update(self, space_id: str, env_id: str, use_force: bool) -> list[str]: async def update(self, space_id: str, env_id: str, use_force: bool) -> list[str]:
errors = [] errors = []
# В случае обновление расширения с флагом force нужно предварительно удалить все сущности.
if use_force:
errors += await self.__remove_clients(space_id)
errors += await self.__remove_roles(space_id)
errors += await self.__remove_collections(space_id, env_id)
errors += await self.__update_collections(space_id, env_id) errors += await self.__update_collections(space_id, env_id)
errors += await self.__update_roles(space_id, env_id) errors += await self.__update_roles(space_id, env_id)
errors += await self.__update_clients(space_id) errors += await self.__update_clients(space_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment