Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecations in the query filters #376

Closed
JuanTecedor opened this issue Jan 6, 2025 · 0 comments · Fixed by #377
Closed

Fix deprecations in the query filters #376

JuanTecedor opened this issue Jan 6, 2025 · 0 comments · Fixed by #377

Comments

@JuanTecedor
Copy link
Contributor

After running tests/test_query_filters.py, some of the tests produce the following warnings in TheHive client:

$ docker logs thehive4py-integration-tester | grep -i deprecated
[...]
[warn] o.t.s.q.FilterQuery ([email protected]@main-org) [2d097c9f31c5acfd] The filter '_contains' is deprecated and is replaced by '_has'
[warn] o.t.s.q.InputFilter ([email protected]@main-org) [c01680390b9b907f] Use of filter {"_createdAt": "0"} is deprecated. Please use {"_field": "_createdAt", "_value": "0"}
[warn] o.t.s.q.InputFilter ([email protected]@main-org) [1f35e365ccc71609] Use of filter {"_createdAt": "1736196782719"} is deprecated. Please use {"_field": "_createdAt", "_value": "1736196782719"}

This can be fixed by updating the dictionary structure of the filters in thehive4py/query/filters.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants