Skip to content

feat(datafabric): gate entity-metadata resolution behind EnableEntityV3API - #1063

Merged
milind-jain-uipath merged 4 commits into
mainfrom
feat/datafabric-entity-v3-ff
Sep 3, 2026
Merged

feat(datafabric): gate entity-metadata resolution behind EnableEntityV3API#1063
milind-jain-uipath merged 4 commits into
mainfrom
feat/datafabric-entity-v3-ff

Conversation

@milind-jain-uipath

@milind-jain-uipath milind-jain-uipath commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

What

Gates Data Fabric entity-metadata resolution behind the EnableEntityV3API flag (also used by the frontend, UiPath/Agents#6127).

How

datafabric_tool.pyENTITY_V3_API_FF = "EnableEntityV3API"; in _ensure_datafabric_graph:

  • flag off (default): resolve_entity_set_async(...)
  • flag on: resolve_entity_set_v3_async(...)

Dependency

resolve_entity_set_v3_async is not in uipath-platform yet; only the flag-on path calls it. Blocked on that SDK method.

Companion

Requires EnableEntityV3API in _ALL_FLAGS (uipath-agents-python) for the flag to reach this runtime.

Tests

Two unit tests: flag off → v1 method, flag on → v3 method. pytest 10 passed; ruff clean; changed-file coverage 94.74%. Review: P0/P1 = 0.

Local robot testing (dummy method with v3 name was created similar to existing method). Extra operations to write to file were added

Screenshot 2026-09-03 at 1 35 27 PM

FF on
Screenshot 2026-09-03 at 1 34 21 PM
Screenshot 2026-09-03 at 1 33 56 PM


FF off (existing)
Screenshot 2026-09-03 at 1 37 04 PM

Screenshot 2026-09-03 at 1 36 48 PM

🤖 Generated with Claude Code

…V3API

When EnableEntityV3API is on, resolve entities via resolve_entity_set_v3_async;
otherwise via resolve_entity_set_async.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 3, 2026 07:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 3, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-03T07:13:47.619992Z 571b5fb PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 571b5fbbf1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/uipath_langchain/agent/tools/datafabric_tool/datafabric_tool.py

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The flag-on path can raise an AttributeError if resolve_entity_set_v3_async is not present in the installed SDK, so the implementation should defensively handle missing SDK support (fallback or structured error) before merging.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR adds a feature-flag gate in the Data Fabric query tool so entity-metadata resolution can switch between the current (v1) entity resolver and a future V3 resolver when EnableEntityV3API is enabled. This aligns the runtime behavior with the same flag used by the frontend and allows incremental rollout once the uipath-platform SDK exposes the V3 method.

Changes:

  • Introduced ENTITY_V3_API_FF = "EnableEntityV3API" and routed entity resolution to resolve_entity_set_v3_async(...) only when the flag is enabled.
  • Added unit tests to assert the v1 vs v3 resolver method selection based on the feature flag.
File summaries
File Description
src/uipath_langchain/agent/tools/datafabric_tool/datafabric_tool.py Adds feature-flag-based routing between v1 and v3 entity-metadata resolution methods.
tests/agent/tools/test_datafabric_tool.py Adds unit tests validating resolver selection when the feature flag is on vs off.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/uipath_langchain/agent/tools/datafabric_tool/datafabric_tool.py
milind-jain-uipath and others added 2 commits September 3, 2026 18:18
…3_async

The V3 resolution method resolve_entity_set_v3_async lands in
uipath-platform 0.2.24; raise the floor so the flag-on path resolves a
platform that provides it.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

@milind-jain-uipath
milind-jain-uipath merged commit a5ac19d into main Sep 3, 2026
44 checks passed
@milind-jain-uipath
milind-jain-uipath deleted the feat/datafabric-entity-v3-ff branch September 3, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants