refactor(chalice): user auto_capture instead of is_property
This commit is contained in:
parent
a7c02b7cd5
commit
77edddb441
2 changed files with 2 additions and 2 deletions
|
|
@ -430,7 +430,7 @@ def search_query_parts_ch(data: schemas.SessionsSearchPayloadSchema, error_statu
|
||||||
is_not = False
|
is_not = False
|
||||||
if sh.is_negation_operator(f.operator):
|
if sh.is_negation_operator(f.operator):
|
||||||
is_not = True
|
is_not = True
|
||||||
if f.is_property:
|
if not f.auto_captured:
|
||||||
cast = get_col_cast(data_type=f.data_type, value=f.value)
|
cast = get_col_cast(data_type=f.data_type, value=f.value)
|
||||||
if is_any:
|
if is_any:
|
||||||
global_properties.append(f'isNotNull(e.properties.`{f.type}`)')
|
global_properties.append(f'isNotNull(e.properties.`{f.type}`)')
|
||||||
|
|
|
||||||
|
|
@ -689,7 +689,7 @@ class SessionSearchFilterSchema(BaseModel):
|
||||||
data_type: Optional[PropertyType] = Field(default=PropertyType.STRING.value)
|
data_type: Optional[PropertyType] = Field(default=PropertyType.STRING.value)
|
||||||
# used to tell if the current filter is predefined or user-property having the same name
|
# used to tell if the current filter is predefined or user-property having the same name
|
||||||
# used in case the user sends a property with the same name aas a predefined property
|
# used in case the user sends a property with the same name aas a predefined property
|
||||||
is_property: Optional[bool] = Field(default=False)
|
auto_captured: Optional[bool] = Field(default=True)
|
||||||
|
|
||||||
_remove_duplicate_values = field_validator('value', mode='before')(remove_duplicate_values)
|
_remove_duplicate_values = field_validator('value', mode='before')(remove_duplicate_values)
|
||||||
_single_to_list_values = field_validator('value', mode='before')(single_to_list)
|
_single_to_list_values = field_validator('value', mode='before')(single_to_list)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue