Skip to content

fix(business-rules): leave the input size to the service - #1994

Merged
ashishupadhyay88 merged 2 commits into
mainfrom
fix/business-rules-lift-input-key-limit
Nov 17, 2026
Merged

ashishupadhyay88 merged 2 commits into
mainfrom
fix/business-rules-lift-input-key-limit

Conversation

@ashishupadhyay88

Copy link
Copy Markdown
Contributor

Summary

  • The Business Rules service no longer limits a run's input_arguments to 256 keys, so run() / run_async() stop rejecting larger inputs on the client.
  • The None check and the mapping-type check stay. The 256-character rule-name limit is unchanged.
  • Bump uipath-platform to 0.3.8.

Test plan

  • test_rejects_oversized_input replaced by test_leaves_the_input_size_to_the_service, which sends 1000 keys and checks they all reach the request body
  • pytest tests/services/test_business_rules_service.py, ruff check/format, mypy

🤖 Generated with Claude Code

The Business Rules service no longer caps a run's input at 256 keys, so
the SDK stops refusing larger inputs before they are sent.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 16, 2026 10:10
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Nov 16, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues were identified for the change delegating input-size limits to the Business Rules service.

No open issues 🎉

What changed in this PR

This PR lets the Business Rules service determine input-size limits rather than enforcing a 256-key cap in the Python SDK.

Changes:

  • Remove the input-key limit while preserving None and mapping-type checks and the 256-character rule-name limit.
  • Replace the oversized-input rejection test with a test verifying that all 1,000 keys reach the request body.
  • Bump uipath-platform to 0.3.8 and synchronize both lockfiles.
File Description
packages/​uipath/​uv.lock Update the linked platform package to 0.3.8.
packages/​uipath-platform/​uv.lock Synchronize the platform package version.
packages/​uipath-platform/​tests/​services/​test_business_rules_service.py Verify that large inputs are forwarded intact.
packages/​uipath-platform/​src/​uipath/​platform/​business_rules/​_business_rules_service.py Remove the client-side input-key cap.
packages/​uipath-platform/​pyproject.toml Set the platform release version to 0.3.8.

Review effort: Balanced

@sonarqubecloud

Copy link
Copy Markdown

@ashishupadhyay88
ashishupadhyay88 merged commit 4220d64 into main Nov 17, 2026
186 checks passed
@ashishupadhyay88
ashishupadhyay88 deleted the fix/business-rules-lift-input-key-limit branch November 17, 2026 10:09
andreizdrali-uipath added a commit that referenced this pull request Nov 17, 2026
main published 0.3.8 in #1994, so this change needs its own version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-integrations test:uipath-langchain Triggers tests in the uipath-langchain-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants