Skip to content

[RDBMS] Add List-SKUS Command, Table Transformers, Local Context for Postgres, MySQL, Mariadb Single Server#15450

Merged
Juliehzl merged 6 commits intoAzure:devfrom
DaeunYim:daeunyim/sterling-s177
Oct 20, 2020
Merged

[RDBMS] Add List-SKUS Command, Table Transformers, Local Context for Postgres, MySQL, Mariadb Single Server#15450
Juliehzl merged 6 commits intoAzure:devfrom
DaeunYim:daeunyim/sterling-s177

Conversation

@DaeunYim
Copy link
Contributor

@DaeunYim DaeunYim commented Oct 9, 2020

Description

  1. Added list-skus commands for single server Postgres and MySQL
  2. Added table transformers for list-skus and server list commands
  3. Added local-context support for single server

Testing Guide

  1. List-skus command: run with the below commands
  • az postgres server list-skus -l eastus -o table
  • az mysql server list-skus -l eastus -o table
  • az mariadb server list-skus -l eastus -o table
  1. server list command: run with the below commands
  • az postgres server list -g <group_name> -n <server_name> -o table
  • az mysql server list -g <group_name> -n <server_name> -o table
  • az mariadb server list -g <group_name> -n <server_name> -o table
  1. local context command:
    az config param-persist on
  • az postgres -h and run commands to check if server name argument is included in the local context
    e.g.) az postgres server create -g <group_name> -n <server_name> -l => az postgres server show

History Notes


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

@DaeunYim DaeunYim requested a review from haroldrandom as a code owner October 9, 2020 00:18
@yonzhan
Copy link
Collaborator

yonzhan commented Oct 9, 2020

RDBMS

@yonzhan yonzhan added this to the S177 milestone Oct 9, 2020
@DaeunYim
Copy link
Contributor Author

DaeunYim commented Oct 9, 2020

/azp run

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 15450 in repo Azure/azure-cli

@DaeunYim DaeunYim force-pushed the daeunyim/sterling-s177 branch from 6de230a to bc8f8d9 Compare October 9, 2020 22:27
@DaeunYim DaeunYim force-pushed the daeunyim/sterling-s177 branch from bc8f8d9 to a7981ff Compare October 12, 2020 07:37
@DaeunYim DaeunYim changed the title [RDBMS] Add List-SKUS Command, Table Transformers, Local Context for Postgres and MySQL Single Server [RDBMS] Add List-SKUS Command, Table Transformers, Local Context for Postgres, MySQL, Mariadb Single Server Oct 12, 2020
Comment on lines +35 to +43
server_name_help = "Name of the server. The name can contain only lowercase letters, numbers, and the hyphen (-) character. " + \
"Minimum 3 characters and maximum 63 characters."
server_name_scope = ['{}'.format(command_group)]
server_name_setter_arg_type = CLIArgumentType(metavar='NAME', help=server_name_help, id_part='name',
local_context_attribute=LocalContextAttribute(name='server_name', actions=[LocalContextAction.SET], scopes=server_name_scope))
server_name_getter_arg_type = CLIArgumentType(metavar='NAME', help=server_name_help, id_part='name',
local_context_attribute=LocalContextAttribute(name='server_name', actions=[LocalContextAction.GET], scopes=server_name_scope))
server_name_arg_type = CLIArgumentType(metavar='NAME', help=server_name_help, id_part='name',
local_context_attribute=LocalContextAttribute(name='server_name', actions=[LocalContextAction.SET, LocalContextAction.GET], scopes=server_name_scope))
Copy link
Contributor

Choose a reason for hiding this comment

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

@arrownj could you help with local context part?

Copy link
Contributor

@arrownj arrownj left a comment

Choose a reason for hiding this comment

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

Looks good for local context part.

Copy link
Contributor

@Juliehzl Juliehzl left a comment

Choose a reason for hiding this comment

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

LGTM for command design

Copy link
Contributor

@haroldrandom haroldrandom left a comment

Choose a reason for hiding this comment

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

will merge once @arde0708 approve

@arde0708
Copy link
Contributor

will merge once @arde0708 approve

Done

@Juliehzl Juliehzl merged commit 72850c4 into Azure:dev Oct 20, 2020
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.

6 participants