Skip to content

Add ITIL category search, fetch, create, update and delete (0.6.10) - #49

Merged
baraline merged 2 commits into
mainfrom
feat/itil-categories
Nov 16, 2026
Merged

baraline merged 2 commits into
mainfrom
feat/itil-categories

Conversation

@baraline

Copy link
Copy Markdown
Owner

Summary

Adds the GLPI v2 /Dropdowns/ITILCategory routes to both clients, so a caller can find and create ITIL categories. Existing methods are unchanged. Release 0.6.10.

  • search_itil_categories, iter_search_itil_categories, get_itil_category, create_itil_category, update_itil_category and delete_itil_category, from a new ITILCategoryMixin and the ITIL_CATEGORY_ENDPOINT constant.
  • skip_entity: bool = False on search, iter and get. With True they omit the GLPI-Entity, GLPI-Profile and GLPI-Entity-Recursive headers, so the call covers every entity the caller can see. The write methods always send them.
  • GetITILCategory, PostITILCategory, PatchITILCategory and DeleteITILCategory, modelled on components.schemas.ITILCategory, exported from the package root and from glpi_python_client.models.
  • The _sync client is generated from the async source with unasync. Docs, skills, changelog and version metadata are updated to 0.6.10.

Tests

  • Full suite: 2306 passed, 2 skipped, 1 xfailed, coverage 95%.
  • Clean: ruff format, ruff check, mypy, unasync --check, sphinx.
  • Tests catch each mutated guard: the filter guard, the empty-batch stop, the short-page break, the start advance and the force None path.
  • The paging fakes are bounded, so a loop that never stops fails the test instead of hanging.

Note: vulture exits 3 on _sync/clients/client.py (exc_type, exc, tb unused). It does the same on main at a07b630, so this branch did not cause it.

🤖 Generated with Claude Code

baraline and others added 2 commits November 16, 2026 12:21
…PI clients, with their models, docs and the 0.6.10 release metadata.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…und the paging fakes so a loop that never stops fails the test instead of hanging.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.11%. Comparing base (a07b630) to head (65d83b0).
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #49      +/-   ##
==========================================
+ Coverage   98.06%   98.11%   +0.04%     
==========================================
  Files          94       96       +2     
  Lines        3726     3811      +85     
==========================================
+ Hits         3654     3739      +85     
  Misses         72       72              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@baraline
baraline merged commit 8a02d2c into main Nov 16, 2026
7 checks passed
@baraline
baraline deleted the feat/itil-categories branch November 16, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants