Repository navigation
feat(tasks): [1/2] let quick form tasks send extra task source metadata [ACTN-11909] - #1948
Open
Sahil-Wakode wants to merge 4 commits into
Open
Sahil-Wakode wants to merge 4 commits into
Sahil-Wakode wants to merge 4 commits into
Conversation
🚨 Heads up:
|
Sahil-Wakode
force-pushed
the
feat/quickform-task-source-metadata
branch
from
October 22, 2026 09:41
6b8b66c to
ff73d76
Compare
|
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The backward-compatible change reuses existing merge behavior, includes a focused regression test, and has no identified blocking issues.
No open issues 🎉
What changed in this PR
Adds optional task_source_metadata support to asynchronous QuickForm creation, enabling Action Center task events to link to the correct trace span.
Changes:
- Passes custom metadata through the existing task-source merge helper; synchronous creation remains unchanged.
- Adds a regression test verifying
ParentSpanIdis included andInstanceIdis preserved. - Bumps
uipath-platformto0.2.42and updates both lockfiles.
| File | Description |
|---|---|
| packages/uipath/uv.lock | Updates the platform package version. |
| packages/uipath-platform/uv.lock | Updates the platform package version. |
| packages/uipath-platform/tests/services/test_actions_service.py | Tests custom metadata merging for async QuickForms. |
| packages/uipath-platform/src/uipath/platform/action_center/_tasks_service.py | Adds and forwards the optional metadata parameter. |
| packages/uipath-platform/pyproject.toml | Bumps the package version to 0.2.42. |
Review effort: Balanced
This branch has not been deployed
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
create_quickform_asyncnow takestask_source_metadata, likecreate_asyncalready does.Quick form tasks already send
taskSourceMetadata, but only the fixed keys the SDK sets (InstanceId,FolderKey,JobKey,ProcessKey). Callers had no way to add their own keys. Now any keys passed intask_source_metadataare added to that block.Why
Action Center shows task events in the trace and needs a
ParentSpanIdto place them under the right step. App tasks can already send it. Quick form tasks couldn't. Part 2 (uipath-langchain-python) sends it from the escalation tool.Changes
_tasks_service.py: passtask_source_metadatafromcreate_quickform_asyncto the request.test_actions_service.py: test that the extra key is sent and the fixed keys are kept.uipath-platformbumped to 0.2.42 so part 2 can depend on it.Testing
test_actions_service.py: 33/33 pass. The new test fails without this change.ruff formatandruff checkpass.