Skip to content

Conversation

@aviatco
Copy link
Collaborator

@aviatco aviatco commented Jan 11, 2026

✨ Description of new changes

Fix #127

This pull request improves how metadata property queries are handled in the CLI, specifically by adding support for nested metadata properties and reducing unnecessary API calls for item definitions. The changes enhance both performance and query flexibility, and include updates to validation logic, utility functions, and tests.

Metadata property query improvements:

  • Added a new is_metadata_property_query utility function in fab_cmd_get_utils.py to correctly identify both top-level and nested metadata property queries, such as properties.connectionString or displayName.localized. This centralizes and simplifies validation logic.
  • Updated logic in fab_fs_get.py and fab_fs_get_item.py to use the new utility function for determining when to skip unnecessary calls to the getItemDefinition API, improving efficiency.

Metadata property support:

  • Added properties to the list of recognized metadata properties in fab_constant.py, enabling direct querying of the properties field.
  • Updated the item metadata list to include the properties field, eliminating unnecessary calls to the getItemDefinition API.

@aviatco aviatco requested a review from a team as a code owner January 11, 2026 14:59
may-hartov
may-hartov previously approved these changes Jan 11, 2026
Copy link
Contributor

@ohadedry ohadedry left a comment

Choose a reason for hiding this comment

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

Please update description to reflect latest changes

may-hartov
may-hartov previously approved these changes Jan 13, 2026
@aviatco aviatco changed the title fix: display sensitivity prompt only for item definition fix: Add ‘properties’ field to the item metadata list to eliminate unnecessary calls to the getItemDefinition API Jan 14, 2026
@aviatco aviatco requested a review from ohadedry January 15, 2026 07:19
Copy link
Collaborator

@ayeshurun ayeshurun left a comment

Choose a reason for hiding this comment

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

minor comment about naming in tests

@aviatco aviatco merged commit 304ad80 into microsoft:main Jan 15, 2026
12 checks passed
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.

[BUG] Get item's properties should not display definition prompt

4 participants