Skip to content

[App Config] az appconfig feature set/list/delete: Support setting and filtering by tags for feature commands - #31711

Merged
Julie Zhu (yanzhudd) merged 8 commits into
Azure:devfrom
ChristineWanjau:cwanjau/supportFilteringByTgasForFeatureCommands
Jul 24, 2025
Merged

[App Config] az appconfig feature set/list/delete: Support setting and filtering by tags for feature commands#31711
Julie Zhu (yanzhudd) merged 8 commits into
Azure:devfrom
ChristineWanjau:cwanjau/supportFilteringByTgasForFeatureCommands

Conversation

@ChristineWanjau

@ChristineWanjau Christine Wanjau (ChristineWanjau) commented Jun 25, 2025

Copy link
Copy Markdown
Contributor

Related command

az appconfig feature set
az appconfig feature list
az appconfig feature delete

Description

This PR adds support for setting and filtering by tags for the feature commands.

Testing Guide

History Notes

[App Config] az appconfig feature list/delete/set: Support filtering by tags

This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 25, 2025

Copy link
Copy Markdown
️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️latest
️✔️3.12
️✔️3.9

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jun 25, 2025

Copy link
Copy Markdown
⚠️AzureCLI-BreakingChangeTest
⚠️appconfig
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd appconfig feature delete cmd appconfig feature delete added parameter tags
⚠️ 1006 - ParaAdd appconfig feature list cmd appconfig feature list added parameter tags
⚠️ 1006 - ParaAdd appconfig feature set cmd appconfig feature set added parameter tags

@yonzhan

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions

Copy link
Copy Markdown

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@ChristineWanjau
Christine Wanjau (ChristineWanjau) marked this pull request as ready for review June 25, 2025 10:15
Copilot AI review requested due to automatic review settings June 25, 2025 10:15

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.

Pull Request Overview

This pull request adds support for setting and filtering by tags for the feature commands (set, list, and delete) in the App Config module.

  • Updated tests to cover tag filtering and edge cases (e.g. empty tag values, too many tags).
  • Enhanced implementations in feature.py to accept a new tags parameter and propagated tag data in the feature models.
  • Revised parameter definitions in _params.py and updated the FeatureFlag model to include tags.

Reviewed Changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.

File Description
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/test_appconfig_feature_commands.py Added comprehensive tag filtering tests for feature set, list, and delete commands.
src/azure-cli/azure/cli/command_modules/appconfig/feature.py Updated feature command functions to accept and handle tags.
src/azure-cli/azure/cli/command_modules/appconfig/_params.py Added tags argument definitions and help messages for feature commands.
src/azure-cli/azure/cli/command_modules/appconfig/_featuremodels.py Extended FeatureFlag model to support and serialize tags.

@@ -67,7 +68,6 @@ def set_feature(cmd,
raise exception

# when creating a new Feature flag, these defaults will be used

Copilot AI Jun 25, 2025

Copy link

Choose a reason for hiding this comment

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

Consider initializing tags to an empty dictionary (e.g. 'tags = {}') if not provided, to ensure that FeatureFlag objects consistently represent tags as a dictionary instead of null.

Copilot uses AI. Check for mistakes.
@albertofori

Copy link
Copy Markdown
Contributor

Perhaps we should update _help.py with some examples?

@ChristineWanjau

Copy link
Copy Markdown
Contributor Author

Perhaps we should update _help.py with some examples?

Thats a good idea! I have added examples.

Comment thread src/azure-cli/azure/cli/command_modules/appconfig/_help.py
Comment thread src/azure-cli/azure/cli/command_modules/appconfig/_help.py
Co-authored-by: Albert Ofori <102393878+albertofori@users.noreply.github.com>
Co-authored-by: Albert Ofori <102393878+albertofori@users.noreply.github.com>
@yonzhan

Copy link
Copy Markdown
Collaborator

Please fix CI issues

@yanzhudd

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd Julie Zhu (yanzhudd) changed the title [App Config] az app config feature set/list/delete: Support setting and filtering by tags for feature commands [App Config] az appconfig feature set/list/delete: Support setting and filtering by tags for feature commands Jul 23, 2025
@yanzhudd
Julie Zhu (yanzhudd) merged commit 9094c46 into Azure:dev Jul 24, 2025
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants