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

Add "Did You Mean This" Extension #1692

Merged
merged 36 commits into from
May 15, 2020
Merged

Add "Did You Mean This" Extension #1692

merged 36 commits into from
May 15, 2020

Conversation

christopher-o-toole
Copy link
Contributor

@christopher-o-toole christopher-o-toole commented May 13, 2020

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.

Christopher OToole and others added 23 commits April 3, 2020 17:14
…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

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 yonzhan requested a review from fengzhou-msft May 14, 2020 00:43
@yonzhan yonzhan requested a review from jiasli May 14, 2020 00:44
@yonzhan yonzhan requested a review from haroldrandom May 14, 2020 00:44
@yonzhan yonzhan added this to the S170 milestone May 14, 2020
@yonzhan
Copy link
Collaborator

yonzhan commented May 14, 2020

add to S170

Copy link
Member

@jiasli jiasli left a comment

Choose a reason for hiding this comment

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

LGTM

@haroldrandom
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@fengzhou-msft 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