Skip to content

feat(resource-catalog): add ENTITY to ResourceType enum#1705

Merged
msbhavana merged 2 commits into
mainfrom
feat/entity-resource-catalog-type
Jun 9, 2026
Merged

feat(resource-catalog): add ENTITY to ResourceType enum#1705
msbhavana merged 2 commits into
mainfrom
feat/entity-resource-catalog-type

Conversation

@msbhavana

Copy link
Copy Markdown
Contributor

Summary

  • Adds ENTITY = "entity" to the ResourceType enum in resource_catalog.py
  • Enables entity bindings to go through the resource catalog lookup during uipath push
  • When an entity is found in the catalog, it is created as a referenced resource instead of being skipped or falling back to a virtual resource
  • Updates existing test to use choiceSet as the unsupported kind example (instead of entity)
  • Adds new test test_entity_binding_catalog_hit_creates_reference to verify entities are properly referenced

Context

Entity bindings in bindings.json were previously skipped during push because the ResourceType enum had no ENTITY member. This caused _find_in_resource_catalog to short-circuit (returning None), and since entity is also not in the supported_virtual_kinds set, the binding was silently skipped.

With this change, folder-level entities declared in bindings can be properly resolved and linked into Studio Web solutions as referenced resources.

Test plan

  • Verified locally: uip codedagent push with entity binding creates a referenced resource (kind = Entity, type = Native)
  • Existing tests updated to reflect new behavior
  • New test added for entity catalog hit → reference creation

🤖 Generated with Claude Code

…d resource support

Entity bindings were previously skipped during push because the ResourceType
enum lacked an ENTITY member, causing catalog lookups to short-circuit. This
meant entity resources could only be created as virtual placeholders. Adding
ENTITY to the enum enables proper resource catalog lookups so entities can be
created as referenced resources when found in the catalog.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 9, 2026 14:38
@github-actions github-actions Bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-integrations labels Jun 9, 2026

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.

Pull request overview

Adds support for treating entity bindings as first-class Resource Catalog resources during uipath push by extending the platform SDK’s ResourceType enum, and updates/extends CLI tests to validate the new behavior.

Changes:

  • Added ENTITY = "entity" to uipath.platform.resource_catalog.ResourceType so entity bindings participate in catalog lookup.
  • Updated the “unsupported virtual kind” test to use choiceSet (since entity is now supported via catalog lookup).
  • Added a new test ensuring an entity catalog hit results in creating a referenced resource.

Reviewed changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/uipath/uv.lock Lockfile regen and local editable uipath-platform version bump reference.
packages/uipath/tests/cli/test_create_resources.py Updates unsupported-kind test and adds entity catalog-hit → reference test.
packages/uipath-platform/uv.lock Lockfile regen reflecting uipath-platform version bump.
packages/uipath-platform/src/uipath/platform/resource_catalog/resource_catalog.py Adds ENTITY to ResourceType enum enabling catalog lookup for entities.
packages/uipath-platform/pyproject.toml Bumps uipath-platform package version to 0.1.62.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/uipath/tests/cli/test_create_resources.py Outdated
Strengthen the entity binding test to verify that the resource catalog
is queried with the correct resource_type, name, and folder_path
parameters, not just that it was called once.

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

sonarqubecloud Bot commented Jun 9, 2026

Copy link
Copy Markdown

@msbhavana msbhavana requested a review from cosmin-paun June 9, 2026 14:55
@msbhavana msbhavana merged commit d31ef42 into main Jun 9, 2026
164 checks passed
@msbhavana msbhavana deleted the feat/entity-resource-catalog-type branch June 9, 2026 15:07

[options]
exclude-newer = "2026-06-06T13:38:31.678016Z"
exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please revert this ... add current date if necessary

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