Skip to content

Releases: giovanny07/python-glpi-utils

Release list

v1.4.5

Choose a tag to compare

@github-actions github-actions released this 22 Jun 16:26

Fixed

  • Search parameter encoding: search() now flattens criteria, metacriteria
    and forcedisplay into 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 both GlpiAPI.search() (sync) and AsyncGlpiAPI.search() (async).
    Fixes #1.

Tests

  • 10 new tests for search parameter flattening: unit tests for _flatten_search_params()
    and integration tests verifying search() sends correctly encoded params.