fix: make entity query service folder-aware with routing context#1490
Open
UIPath-Harshit wants to merge 1 commit intomainfrom
Open
fix: make entity query service folder-aware with routing context#1490UIPath-Harshit wants to merge 1 commit intomainfrom
UIPath-Harshit wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Adds optional query routing context support to the Entities query-records API so multi-folder / multi-entity queries can be routed per entity via the request body.
Changes:
- Introduces new routing models (
EntityRouting,QueryRoutingContext) for per-entity folder routing. - Extends
EntitiesService.query_entity_recordsandquery_entity_records_asyncto accept an optionalrouting_context. - Updates request construction to serialize
routingContextinto the POST body when provided.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 7 comments.
| File | Description |
|---|---|
packages/uipath-platform/src/uipath/platform/entities/entities.py |
Adds Pydantic models representing routing context for query execution. |
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py |
Plumbs routing_context through public/internal APIs and serializes it into the query execute request body. |
packages/uipath-platform/src/uipath/platform/entities/__init__.py |
Exposes the new routing models via package exports. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Outdated
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Outdated
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Outdated
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Outdated
Show resolved
Hide resolved
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py
Outdated
Show resolved
Hide resolved
2de743f to
5691d8f
Compare
- Add QueryRoutingOverrideContext and EntityRouting models to support multi-folder entity queries - Pass optional routing_context parameter through query_entity_records / query_entity_records_async to the query execution endpoint - When present, routingContext is included in the request body, allowing per-entity folder routing that takes precedence over the folder header - Add unit tests for sync and async query with routing context - Bump uipath-platform version to 0.1.12 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
5691d8f to
232bf65
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.
Summary
QueryRoutingContextandEntityRoutingmodels to support multi-folder entity queriesrouting_contextparameter throughquery_entity_records/query_entity_records_asyncto the query execution endpointroutingContextis included in the request body, allowing per-entity folder routing that takes precedence over the folder headerTest plan
routingContextis omitted when not provided🤖 Generated with Claude Code