rename 'is_include' to 'is_allow_list'

This commit is contained in:
Jakub Trllo 2024-07-25 13:42:37 +02:00
parent c75dbd6c4e
commit 9af0e6e1cd
2 changed files with 4 additions and 4 deletions

View file

@ -349,9 +349,9 @@ class ProductTypesFilter:
Defines the filtering for product types.
"""
def __init__(self, product_types: List[str], is_include: bool):
def __init__(self, product_types: List[str], is_allow_list: bool):
self.product_types: List[str] = product_types
self.is_include: bool = is_include
self.is_allow_list: bool = is_allow_list
class _BaseLoaderController(ABC):

View file

@ -434,7 +434,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController):
def get_product_types_filter(self, project_name):
output = ProductTypesFilter(
is_include=False,
is_allow_list=False,
product_types=[]
)
# Without host is not determined context
@ -479,7 +479,7 @@ class LoaderController(BackendLoaderController, FrontendLoaderController):
)
if profile:
output = ProductTypesFilter(
is_include=profile["is_include"],
is_allow_list=profile["is_include"],
product_types=profile["filter_product_types"]
)
return output