Skip to content

feat(platform): list v3 entities without field definitions - #1885

Open
wilcobrouwer wants to merge 2 commits into
mainfrom
feat/list-entities-without-fields
Open

wilcobrouwer wants to merge 2 commits into
mainfrom
feat/list-entities-without-fields

Conversation

@wilcobrouwer

@wilcobrouwer wilcobrouwer commented Sep 7, 2026 •

Copy link
Copy Markdown

Why

list_entities_v3() returns every entity with its full fields schema. On a tenant with many entities that is a large response, and @traced stores it in the span as well. Callers that only need names and ids (for example to resolve an entity id by name) pay for every field definition.

Measured on a test tenant with 11 entities:

route response entities with fields
GET datafabric_/api/v3/entities 174.9 KB 11 11
GET datafabric_/api/v3/entities/paginated 5.9 KB 11 0

However, on production our COE team has 100+ entities with a large amount of fields. This becomes a 3+ MB response that takes over a second to arrive.

What changed

  • Added parameter to only request the entity names. (default unchanged)
  • Bumped uipath-platform to 0.2.42.

🤖 Generated with Claude Code

@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Sep 7, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 7, 2026

Copy link
Copy Markdown

@wilcobrouwer
wilcobrouwer marked this pull request as ready for review September 7, 2026 14:36
Copilot AI lite review requested due to automatic review settings September 7, 2026 14:36

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

The change is backward compatible by default, correctly gated to v1-only behavior, and includes targeted sync/async tests for the new functionality.

Pull request overview

This PR adds an opt-in way to list Data Service entities without returning each entity’s full fields schema, reducing response size (and traced span size) for tenants with many entities while keeping default behavior unchanged.

Changes:

  • Added include_fields: bool = True to EntitiesService.list_entities() / list_entities_async() and routed include_fields=False to the v1 /Entity/simple endpoint.
  • Extended the internal EntitySchemaService list methods/spec builder to support include_fields, rejecting include_fields=False when use_v3=True.
  • Added sync/async tests for the “simple” route behavior and a test asserting v3 rejection; bumped uipath-platform to 0.2.27.
File summaries
File Description
packages/uipath/uv.lock Updates locked uipath-platform version to 0.2.27.
packages/uipath-platform/uv.lock Updates local package lock version to 0.2.27.
packages/uipath-platform/tests/services/test_entities_service.py Adds coverage for listing entities without field schemas (sync/async) and v3 rejection behavior.
packages/uipath-platform/src/uipath/platform/entities/_entity_schema_service.py Implements include_fields routing to /Entity/simple and enforces v1-only support.
packages/uipath-platform/src/uipath/platform/entities/_entities_service.py Exposes include_fields on public list methods and documents the behavior.
packages/uipath-platform/pyproject.toml Bumps package version to 0.2.27.
Review details
  • Files reviewed: 4/6 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wilcobrouwer
wilcobrouwer force-pushed the feat/list-entities-without-fields branch from 8dc0ec0 to abf78b1 Compare October 16, 2026 08:51
@wilcobrouwer wilcobrouwer changed the title feat(platform): list entities without field definitions feat(platform): list v3 entities without field definitions Oct 16, 2026
@wilcobrouwer
wilcobrouwer force-pushed the feat/list-entities-without-fields branch from abf78b1 to 3b4a4ac Compare October 22, 2026 06:37
wilcobrouwer and others added 2 commits October 22, 2026 08:45
list_entities_v3(include_fields=False) pages through
GET datafabric_/api/v3/entities/paginated, which lists the same entities
as GET /v3/entities without loading their field schemas. Bumps
uipath-platform to 0.2.42.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wilcobrouwer
wilcobrouwer force-pushed the feat/list-entities-without-fields branch from 3b4a4ac to fa4997d Compare October 22, 2026 06:48
@sonarqubecloud

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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.

2 participants