Skip to content

Conversation

@damodaravadhani
Copy link
Member

@damodaravadhani damodaravadhani commented Dec 20, 2022

Related command
az servicebus queue update

Description
Adding breaking change alert messages wherever required

Testing Guide

History Notes

{ServiceBus} az servicebus queue update: Add breaking change alerts


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

@ghost ghost added Auto-Assign Auto assign by bot Service Bus az servicebus labels Dec 20, 2022
@ghost ghost requested review from calvinhzy, evelyn-ys and yonzhan December 20, 2022 10:34
@ghost ghost assigned evelyn-ys Dec 20, 2022
@yonzhan yonzhan added this to the Dec 2022 (2023-01-10) milestone Dec 20, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Dec 20, 2022

ServiceBus

@damodaravadhani damodaravadhani changed the title {ServiceBus} az servicebus queue update: Adding breaking change alert messages {ServiceBus} az servicebus queue update: Add breaking change alert messages Dec 20, 2022
@damodaravadhani
Copy link
Member Author

@evelyn-ys, we are removing certain properties from queue update cmdlets in a future release since the properties cannot be updated once created. Also, since we are planning to migrate to entire repo to aaz, timespan inputs too would not accept values in the format dd:mm:ss. Added a warning for this too.

from isodate import Duration
from azure.cli.core.azclierror import InvalidArgumentValueError
from azure.cli.command_modules.servicebus.constants import DURATION_SECS, DURATION_MIN, DURATION_DAYS
from argcomplete import warn
Copy link
Member

@jiasli jiasli Feb 3, 2023

Choose a reason for hiding this comment

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

Why using warn from argcomplete. This usage is weird.

from datetime import timedelta
from isodate import parse_duration
from knack.util import CLIError
import warnings
Copy link
Member

Choose a reason for hiding this comment

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

It is not Azure CLI convention to use warnings module. Instead, warnings in Azure CLI is written like

if not subscriptions:
logger.warning('Please run "az login" to access your accounts.')

avgale pushed a commit to avgale/azure-cli that referenced this pull request Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Service Bus az servicebus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants