feat: JIT escalation apps support#1823
Open
Sandeepan-Ghosh-0312 wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for JIT (debug) Action Center “escalation apps” task creation by allowing callers to bypass deployed-app schema resolution and instead send app identity hints (project key / app type) so Orchestrator can resolve a not-yet-deployed app.
Changes:
- Extend
TasksService.create/create_asyncto support JIT (debug) creation viais_debug,app_project_key,app_type, and optionalaction_schema. - Include additional escalation channel property fields in the agent models to carry app metadata.
- Add tests covering debug-mode behavior and request payload expectations.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/uipath/src/uipath/agent/models/agent.py | Adds app-related fields to escalation channel properties to represent JIT escalation app metadata. |
| packages/uipath-platform/src/uipath/platform/action_center/_tasks_service.py | Adds JIT/debug parameters and logic to task creation + taskSource enhancements (solutionId/isDebug). |
| packages/uipath-platform/tests/services/test_actions_service.py | Adds tests for debug-mode creation and payload contents. |
Comments suppressed due to low confidence (1)
packages/uipath-platform/src/uipath/platform/action_center/_tasks_service.py:134
- _create_spec calls _apply_task_source with two arguments, but _apply_task_source now requires the new is_debug parameter. This will raise a TypeError at runtime when creating app tasks.
json_payload, priority, labels, is_actionable_message_enabled
)
_apply_task_source(json_payload, source_name)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+125
to
+128
| if is_debug and app_type is not None: | ||
| json_payload["appType"] = app_type | ||
| if is_debug and app_project_key is not None: | ||
| json_payload["appProjectKey"] = app_project_key |
Comment on lines
+511
to
+513
|
|
||
| if is_debug: | ||
| (key, schema) = (app_key, action_schema) |
Comment on lines
+613
to
+615
|
|
||
| if is_debug: | ||
| (key, schema) = (app_key, action_schema) |
|
|
||
|
|
||
| def _apply_task_source(payload: Dict[str, Any], source_name: str) -> None: | ||
| def _apply_task_source(payload: Dict[str, Any], source_name: str, is_debug: bool) -> None: |
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.
No description provided.