feat: initial implementation of list connections#628
Merged
feat: initial implementation of list connections#628
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request introduces new connection listing capabilities to the ConnectionsService, enabling users to retrieve and filter connections with flexible options such as name, folder, connector type, and pagination. The implementation includes both synchronous and asynchronous methods with comprehensive error handling and robust folder path resolution.
- Added
listandlist_asyncmethods with optional filtering parameters (name, folder path/key, connector key, pagination) - Implemented folder path resolution using
FolderServicedependency injection and OData filter construction - Enhanced test coverage with comprehensive unit tests for various filter combinations and edge cases
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/uipath/_services/connections_service.py | Added list/list_async methods, helper functions for OData filtering, and folder path resolution |
| src/uipath/_uipath.py | Updated connections property to inject FolderService dependency |
| tests/sdk/services/test_connections_service.py | Added comprehensive test coverage for new listing functionality with mock FolderService |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ca3cb2a to
4ab90b8
Compare
akshaylive
reviewed
Oct 7, 2025
Collaborator
akshaylive
left a comment
There was a problem hiding this comment.
This is great! Thanks for improving the sdk! :)
cristipufu
approved these changes
Oct 8, 2025
c93472f to
99cb99e
Compare
…n @infer_bindings
99cb99e to
a4b4228
Compare
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.
This pull request adds a new
listandlist_asyncmethod to theConnectionsService, enabling users to retrieve and filter connections with flexible options such as name, folder, connector type, and pagination. It also introduces robust folder path resolution, OData filter construction, and improves test coverage for these new features.New connection listing functionality:
listandlist_asyncmethods toConnectionsServicefor retrieving connections with optional filters (name, folder path/key, connector key, pagination). These methods support both synchronous and asynchronous usage and include comprehensive docstrings and usage examples._list_spechelper to construct OData filter queries, resolve folder paths to keys usingFolderService, and build request headers for folder scoping. Raises aValueErrorif folder path cannot be resolved._parse_and_validate_list_responseto handle both OData and raw list API responses, ensuring robust parsing and validation of returned connections.Integration and dependency management:
ConnectionsServiceconstructor to require aFolderServiceinstance for folder path resolution, and modified the SDK entrypoint (_uipath.py) to inject this dependency. [1] [2]Testing improvements:
FolderServiceto simulate folder key resolution. [1] [2] [3]