Skip to content
This repository has been archived by the owner on Jul 14, 2023. It is now read-only.

extension mode configurable #360

Merged
merged 16 commits into from
May 20, 2020
Merged

extension mode configurable #360

merged 16 commits into from
May 20, 2020

Conversation

qiaozha
Copy link
Member

@qiaozha qiaozha commented May 11, 2020

This is to solve

  1. issue support configuration for experiemental/preview/.. #351 configurable extension
  2. issue When there's no show command in a command group. we shouldn't use wait command even if the operation is LongRunOperation #361 wait command should exist when no show command in the group
  3. issue no-wait needs support from command #358 wait command custom function should have sdk_no_wait
  4. part of issue datafactory fails azdev linter #364
    4.1 if the operation already has parameter 'name', main resource option shouldn't be applied.
    4.2 change wait_comamnd to the custom_wait_command since python sdk get operation is not always consistent with the show command parameter.
    4.3 add parameter description in param.py for wait command.
    4.4 allow change subgroup in the command.

@qiaozha
Copy link
Member Author

qiaozha commented May 12, 2020

/azp run

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

policy_name,
no_wait=False):
return sdk_no_wait(no_wait, client.begin_delete,
resource_group_name=resource_group_name,

Choose a reason for hiding this comment

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

there may be some python formatting lint issue here?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am sure this one will not cause the lint error. but please don't merge this PR for now

@@ -37,13 +38,13 @@ export function GenerateAzureCliCommands(model: CodeModelAz): string[] {
output.push(" client_factory=" + cf_name + ")");
let groupinfos = model.CommandGroup_Name.split(' ');
let extraInfo = "";
if(groupinfos.length == 2) {
if(groupinfos.length == 2 && model.Extension_Mode == 'experimental') {
Copy link
Member

Choose a reason for hiding this comment

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

Add similar logic when Extension_Mode is preview.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought preview don't need to add this is_preview=True at the end of the command?

Copy link
Member

Choose a reason for hiding this comment

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

If not added, it means GA.

factory_name,
integration_runtime_name,
no_wait=False):
return sdk_no_wait(no_wait, client.begin_stop,

Choose a reason for hiding this comment

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

is it possible to have better format? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

what kind of format does CLI need?

Copy link
Member Author

Choose a reason for hiding this comment

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

Changed, please review again.

@qiaozha qiaozha merged commit 15eda17 into master May 20, 2020
@qiaozha qiaozha deleted the extension-mode-configurable branch May 20, 2020 05:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants