-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[App Config] az appconfig
: Add warning log info to output when the --yes
flag is set
#25560
Conversation
App Config |
Hi @avanigupta, Could you kindly take a look at this? Thanks! |
src/azure-cli/azure/cli/command_modules/appconfig/_kv_helpers.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/appconfig/_constants.py
Outdated
Show resolved
Hide resolved
@@ -637,30 +693,26 @@ def __print_features_preview(old_json, new_json, strict=False): | |||
res = differ.diff(old_json, new_json) | |||
keys = str(res.keys()) | |||
if res == {} or (('update' not in keys) and ('insert' not in keys) and (not strict or ('delete' not in keys))): | |||
logger.warning('\nTarget configuration already contains all feature flags in source. No changes will be made.') | |||
return False | |||
return ff_diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a comment for this if statement?
@@ -689,28 +739,23 @@ def __print_preview(old_json, new_json, strict=False): | |||
res = differ.diff(old_json, new_json) | |||
keys = str(res.keys()) | |||
if res == {} or (('update' not in keys) and ('insert' not in keys) and (not strict or ('delete' not in keys))): | |||
logger.warning('\nTarget configuration already contains all key-values in source. No changes will be made.') | |||
return False | |||
return kv_diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please add a comment for this if statement?
I'd like to confirm with you why it is marked as a breaking change? Will printing the log cause a breaking change to the user's script? |
Please note that we will launch the release for this sprint tomorrow morning. Since there are still some comments above, so we postpone the release time of this PR to the next sprint (04-04), could you accept this release time? |
@zhoxing-ms Yes please. For users who have scripts that should terminate on warnings, this could potentially cause the script to break. Just a precaution on this. |
Since the only outstanding ones are for adding comments, could we make the release tomorrow if I address those comments and push the changes now? |
️✔️acr
️✔️acs
️✔️advisor
️✔️ams
️✔️apim
️✔️appconfig
️✔️appservice
️✔️aro
️✔️backup
️✔️batch
️✔️batchai
️✔️billing
️✔️botservice
️✔️cdn
️✔️cloud
️✔️cognitiveservices
️✔️config
️✔️configure
️✔️consumption
️✔️container
️✔️core
️✔️cosmosdb
️✔️databoxedge
️✔️dla
️✔️dls
️✔️dms
️✔️eventgrid
️✔️eventhubs
️✔️feedback
️✔️find
️✔️hdinsight
️✔️identity
️✔️iot
️✔️keyvault
️✔️kusto
️✔️lab
️✔️managedservices
️✔️maps
️✔️marketplaceordering
️✔️monitor
️✔️natgateway
️✔️netappfiles
️✔️network
️✔️policyinsights
️✔️privatedns
️✔️profile
️✔️rdbms
️✔️redis
️✔️relay
️✔️resource
️✔️role
️✔️search
️✔️security
️✔️servicebus
️✔️serviceconnector
️✔️servicefabric
️✔️signalr
️✔️sql
️✔️sqlvm
️✔️storage
️✔️synapse
️✔️telemetry
️✔️util
️✔️vm
|
Hi @zhoxing-ms. I just wanted to confirm if this will make the release window as the comments have been addressed. |
OK, so I'd like to confirm with you that the breaking change contained in this PR only refers to the warning log at present? |
Yes please. That’s the only change here. The input and returned output behaviour does not change for users. |
I'm so sorry for my late reply. I didn't see your comments in time because I was super busy last Friday. |
@zhoxing-ms No worries. The 04-04 release time should be fine. Thanks! |
Thanks for your understanding~ |
az appconfig
: Adding logging to output when the "yes" flag is set az appconfig
: Add logging to output when the --yes
flag is set
az appconfig
: Add logging to output when the --yes
flag is set az appconfig
: Add warning log info to output when the --yes
flag is set
@albertofori Since we usually do not add the breaking change tag for |
…`--yes` flag is set (Azure#25560)
Related command
az appconfig import
az appconfig export
Description
Related to Azure/AppConfiguration issue #712. This fix separates kv diffing from print previews and enables logging of specific information to output even when the
--yes
flag is set.Testing Guide
History Notes
[App Config]
az appconfig import/export
: Add warning log info to output even when--yes
flag is setThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.