forked from Azure/azure-powershell
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Correlate the suggestion related events (Azure#14041)
* Correlate the suggestion related events. - Collects the event when our suggestion is displayed. - Use SuggestionSessionId to correlate the suggestions that are provided by us, displayed by PSReadLine, and accepted by the user. - Collects the client id in the telemetry events to identify if it's called by PSReadLine or something else. * Update the version. * Use new api. * Guard against when the display mode is not known. * Fix the package and a bug - Use the preview packages that contain the change. - Fix a bug that the loop infinitely when parsing the parameter values and the last parameter is a switch parameter. * Rename the variable UserId to HashUserId. * Updated release notes * Added ChangeLog.md * Remove the binaries that're added accidentally. * Fixed typo in changelog * Fix the broken merge. * Fix the merge. * Remove the test version suffix. * Add a new field to the telemetry. * Update the psreadline binaries. * Update README.md Updated README to reflect on the change of versions. * Update Az.Tools.Predictor.psd1 Updated version requirements and addressed release notes comments. * Update the doc. * Update the link to dotnet 6.0 * Fix the list number. * Remove .NET 6 Co-authored-by: Damien Caro <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,610 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
787 changes: 787 additions & 0 deletions
787
tools/Az.Tools.Predictor/Az.Tools.Predictor.Test/AzPredictorTelemetryTests.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
tools/Az.Tools.Predictor/Az.Tools.Predictor.Test/Mocks/MockAzContext.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// ---------------------------------------------------------------------------------- | ||
// | ||
// Copyright Microsoft Corporation | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// ---------------------------------------------------------------------------------- | ||
|
||
using System; | ||
|
||
namespace Microsoft.Azure.PowerShell.Tools.AzPredictor.Test.Mocks | ||
{ | ||
sealed class MockAzContext : IAzContext | ||
{ | ||
public string HashUserId => "TestUserId"; | ||
|
||
public string MacAddress => "TestMacAddress"; | ||
|
||
public string OSVersion => "TestOSVersion"; | ||
|
||
public Version PowerShellVersion => Version.Parse("0.0.0.0"); | ||
|
||
public Version ModuleVersion => Version.Parse("0.0.0.0"); | ||
|
||
public Version AzVersion => Version.Parse("0.0.0.0"); | ||
|
||
public bool IsInternal => true; | ||
|
||
public void UpdateContext() | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.