Skip to content
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

Deprecate db-up extension #8027

Merged
merged 2 commits into from
Sep 27, 2024
Merged

Deprecate db-up extension #8027

merged 2 commits into from
Sep 27, 2024

Conversation

evelyn-ys
Copy link
Member


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

Related command

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

Copy link

azure-client-tools-bot-prd bot commented Sep 26, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Sep 26, 2024

Deprecate db-up extension

Copy link

github-actions bot commented Sep 26, 2024

@github-actions github-actions bot added the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Sep 26, 2024
@github-actions github-actions bot removed the release-version-block Updates do not qualify release version rules. NOTE: please do not edit it manually. label Sep 26, 2024
@@ -32,20 +37,27 @@ def load_command_table(self, _): # pylint: disable=too-many-locals, too-many-st
from ._exception_handler import password_handler
g.custom_command('up', 'mysql_up', validator=db_up_namespace_processor('mysql'),
table_transformer=table_transform_connection_string,
exception_handler=password_handler)
exception_handler=password_handler,
deprecate_info=g.deprecate(message_func=_deprecation_message))
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to set deprecate_info at command group mysql level?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's not appropriate because az mysql is also defined in Mysql module in cli main repo and it's not going to be deprecated. That's why I add the deprecation for each command

@evelyn-ys evelyn-ys merged commit a8bd699 into Azure:main Sep 27, 2024
20 checks passed
@azclibot
Copy link
Collaborator

[Release] Update index.json for extension [ db-up ] : https://dev.azure.com/azclitools/release/_build/results?buildId=193406&view=results

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.

4 participants