Skip to content

Add "Did You Mean This" Extension - #1692

Merged
Feng Zhou (fengzhou-msft) merged 36 commits into
Azure:masterfrom
christopher-o-toole:thoth-extension
May 15, 2020
Merged

Feng Zhou (fengzhou-msft) merged 36 commits into
Azure:masterfrom
christopher-o-toole:thoth-extension

Conversation

@christopher-o-toole

@christopher-o-toole Christopher O'Toole (christopher-o-toole) commented May 13, 2020

Copy link
Copy Markdown
Contributor

Replacing the previous PR #1536

New extension (in preview) which uses the Aladdin service to generate and show failure recovery recommendations on command failure. This extension makes use of the hook added to parser.py in CLI version 2.4.0. For more information, see this CLI PR.


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

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?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your PR is merged into master branch, a new PR will be created to update src/index.json automatically.
The precondition is to put your code inside this repo and upgrade the version in the PR but do not modify src/index.json.

…ecommendations aren't available and/or the user has an outdated CLI.
…s, add Aladdin style parameter placeholders, remove lookup table references, resolved issue with generated recommendations.
… async update check, clean up integration and unit tests, rely only on pip for versioning.
…gs. Expand command test suite to include a range of commands.
…mmendation model, add base class for aladdin test logic.
… check if telemetry is enabled, add more comments, enable automated test support for user fault command failures and extension metadata, add mock recommendation model file.
…rt_parameters function, remove number of pairs entry from mock recommendation file.
…r static analysis, order imporrts better, remove deprecated parameters from `kusto cluster create` test case, fix global param rules.
@azuresdkci

Copy link
Copy Markdown

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:

docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/christopher-o-toole/azure-cli-extensions.git@thoth-extension#subdirectory=src/$EXT&egg=$EXT"

@yonzhan

Copy link
Copy Markdown
Collaborator

add to S170

@jiasli Jiashuo Li (jiasli) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Comment thread src/ai-did-you-mean-this/setup.py Outdated
Comment thread src/ai-did-you-mean-this/setup.py Outdated
@haroldrandom

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

Comment thread src/ai-did-you-mean-this/azext_ai_did_you_mean_this/custom.py Outdated
@fengzhou-msft
Feng Zhou (fengzhou-msft) merged commit 87cbfa1 into Azure:master May 15, 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