Repository navigation
#39 - Support role management API - #22
Merged
Merged
Conversation
* main: No issue: Replace flake with ruff and format code % Conflicts: % pycaprio/core/clients/retryable_client.py % pycaprio/core/mappings.py
* main: No issue: Update lock file
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #22 +/- ##
==========================================
- Coverage 96.12% 95.90% -0.23%
==========================================
Files 20 20
Lines 594 635 +41
Branches 35 38 +3
==========================================
+ Hits 571 609 +38
- Misses 15 18 +3
Partials 8 8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
* main: (30 commits) inception-project#38 - Allow connecting to INCEpTION servers that use self-signed or internal SSL certificates inception-project#36 - Uploading a curation for a document fails or leaves it in the wrong state inception-project#34 - Clean up typechecker issues inception-project#32 - Switch to uv retryable_client.py - added SSLAdapter class + SSL parameters; http_adapter.py - certificate parameters; pycaprio.py - certificate parameters No issue: Set version to 0.4.0-dev No issue: no testpy No issue: Added release section to README No issue: Set version to 0.3.1 inception-project#24 - Support local projects No issue: Update release workflow inception-project#24 - Support Local Projects - Adds unit tests for retrieving list of annotations from a document - Adds unit tests for retrieving annotation by a specific user from a document inception-project#24 Support Local Projects - Implements method for retrieving a list of annotations from a document - Implements method for retrieving the annotation of a specific user from a document inception-project#24 - Support Local Documents - Adds unit test for retrieving a document from a give project in LocalInceptionAdapter inception-project#24 - Support Local Documents - Adds unit tests for retrieving list of documents from a project in LocalInceptionAdapter inception-project#24 - Support Local Documents - Implements method for retrieving a list of documents in a project - Implements method for retrieving a single document in a project - Minor formatting changes inception-project#26 - Run integration tests locally as well using testcontainers inception-project#24 - Support Local Projects - Adds first unit tests for LocalInceptionAdapter inception-project#24 - Support Local Projects - Adds placeholders for missing abstract methods inception-project#24 - Support Local Projects - Implements method for retrieving all projects in local directory - Implements method for retrieving a single project from local directory ... % Conflicts: % pycaprio/core/adapters/http_adapter.py
- Add roles/permissions API (list_roles, assign_roles, delete_roles) to manage user permissions in projects - Add support for query string parameters (params) to HTTP client POST and DELETE methods - URL-encode user-controlled path segments (usernames/user IDs) to prevent path corruption - Add _extract_role_names() helper to safely parse permission responses, handling empty/no-content bodies - Implement roles endpoints in both HttpInceptionAdapter and LocalInceptionAdapter - Update abstract adapter and client interfaces with new role method signatures - Add RoleType constants (ANNOTATOR, CURATOR, MANAGER) to mappings for role names - Add unit tests for role methods including empty-response-body handling - Add integration tests for list_roles, assign_roles, delete_roles workflows
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.
What's in the PR
How to test manually
Automatic testing
Documentation