Repository navigation
0.6.6: the GLPI v2 /Administration/Group routes, to search, read, create, update and delete groups - #45
Merged
Conversation
…reate, update and delete groups, with skip_entity on the searches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e, provisioning skill and CHANGELOG, version bumped in pyproject, __version__ and every skill Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #45 +/- ##
==========================================
+ Coverage 97.97% 98.02% +0.04%
==========================================
Files 91 93 +2
Lines 3554 3637 +83
==========================================
+ Hits 3482 3565 +83
Misses 72 72 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release 0.6.6 adds the GLPI v2
/Administration/Grouproutes. Until now a caller could find and create users and entities through the client, but not groups. The itsm_synchronisation sync needs groups to create a GLPI group for an EasyVista team.Existing methods are unchanged.
Added
search_groups,iter_search_groups,get_group,create_group,update_groupanddelete_group, on both clients. They come from a newGroupMixinand aGROUP_ENDPOINTconstant, and the sync client is regenerated byunasync_build.py.search_groupsanditer_search_groupstakeskip_entity: bool = False, assearch_usersdoes.True, theGLPI-Entity,GLPI-ProfileandGLPI-Entity-Recursiveheaders are left out, so the search spans every entity the caller can see.GetGroup,PostGroup,PatchGroupandDeleteGroup, modelled oncomponents.schemas.Group, exported from the package root and fromglpi_python_client.models.glpi-user-location-provisioningskill and the skills README now cover groups. The version is 0.6.6 everywheretest_version_agreementchecks.Notes
is_recursivefield. A caller that needs one has to send it throughextra_payload, and nothing here shows the server honours it.extra_payload: {}, so the body isentity: {"id": 492, "extra_payload": {}}. This is the library's existing behaviour for every nested reference.Checks
ruff check .andruff format --check .: clean.mypy glpi_python_client: clean.pytest -m "not integration"with the coverage gate: 2150 passed, 2 skipped, 1 xfailed, coverage 98.02%.unasync_build.py --check: up to date.-W: clean.vulture --min-confidence 80: six findings, all in files this PR does not touch.After merge
0.6.6and publish the GitHub release.novahe-plugins.🤖 Generated with Claude Code