Skip to content

Commit

Permalink
fix(install): remove loguru dependency (#1372)
Browse files Browse the repository at this point in the history
Closes #1331
Closes #1305

(cherry picked from commit 7ce45b8)

- refactor: avoid a lot of warning related to advanded_query_dsl parsing
  • Loading branch information
David Fidalgo authored and frascuchon committed Apr 11, 2022
1 parent d93e985 commit 9e52414
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions setup.cfg
Expand Up @@ -50,8 +50,6 @@ server =
smart-open
brotli-asgi ~= 1.1.0
Deprecated ~= 1.2.0
# logging
loguru ~= 0.6.0
# Advanced query search dsl
luqum ~= 0.11.0
# metrics
Expand Down
7 changes: 6 additions & 1 deletion src/rubrix/server/tasks/search/query_builder.py
Expand Up @@ -68,7 +68,12 @@ def to_es_query(cls, query: BaseSearchQuery) -> Dict[str, Any]:
query_text = filters.text_query(query.query_text)
all_filters = filters.metadata(query.metadata)
query_data = query.dict(
exclude={"query_text", "metadata", "uncovered_by_rules"}
exclude={
"advanced_query_dsl",
"query_text",
"metadata",
"uncovered_by_rules",
}
)
for key, value in query_data.items():
if value is None:
Expand Down

0 comments on commit 9e52414

Please sign in to comment.