Trying to add an href filter containing URL path (/admin/sites/*/courses/42400-example-course), but it’s returning 0 results, when I use a wildcard (% or *), but when I search a specific path (/admin/sites/56306/courses/42400-example-course), it returns results. What am I doing wrong?
ee/clickhouse/models/action.py
if entity.type == TREND_FILTER_TYPE_ACTIONS:
        action = entity.get_action()
        entity_filter, params = format_action_filter(action, prepend=prepend, filter_by_team=filter_by_team)
    else:
        key = f"{prepend}_event"
        entity_filter = f"event = %({key})s"
        params = {key: entity.id}
    return entity_filter, params
def get_action_tables_and_properties(action: Action) -> Set[Tuple[PropertyName, PropertyType]]:
    from ee.clickhouse.models.property import extract_tables_and_properties
    result: Set[Tuple[PropertyName, PropertyType]] = set()
    for action_step in action.steps.all():
        if action_step.url:
            result.add(("$current_url", "event"))
        result |= extract_tables_and_properties(Filter(data={"properties": action_step.properties}).properties)
    return result
def uses_elements_chain(action: Action) -> bool:
    for action_step in action.steps.all():
        if any(Property(**prop).type == "element" for prop in action_step.properties):
            return True
        if any(getattr(action_step, attribute) is not None for attribute in ["selector", "tag_name", "href", "text"]):
            return True
    return False