Releases: giovanny07/python-glpi-utils
Releases · giovanny07/python-glpi-utils
Release list
v1.4.5
Fixed
- Search parameter encoding:
search()now flattenscriteria,metacriteria
andforcedisplayinto PHP-style bracket notation (criteria[0][field]=126)
before passing them to the HTTP client. Previously, Python lists/dicts were passed
directly, causing GLPI to silently return no results on criteria-based searches
(e.g. searching computers by IP address, serial number, etc.).
Affects bothGlpiAPI.search()(sync) andAsyncGlpiAPI.search()(async).
Fixes #1.
Tests
- 10 new tests for search parameter flattening: unit tests for
_flatten_search_params()
and integration tests verifyingsearch()sends correctly encoded params.