Skip to content

Commit

Permalink
Add feedback on the PR (Azure#14820)
Browse files Browse the repository at this point in the history
  • Loading branch information
kceiw authored Apr 23, 2021
1 parent 64e42f3 commit 948025f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ PowerShellVersion = '7.2'
# Modules that must be imported into the global environment prior to importing this module
# RequiredModules = @(@{ModuleName="PSReadLine"; ModuleVersion="2.2.0-beta2"})

# NestedModules = @("Microsoft.Azure.PowerShell.Tools.AzPredictor.dll")
NestedModules = @("Microsoft.Azure.PowerShell.Tools.AzPredictor.dll")

ScriptsToProcess = @("PromptSurvey.ps1")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ protected override void ProcessRecord()
var profileSettings = Settings.GetProfileSettings();
var surveyId = profileSettings?.SurveyId?.ToString(CultureInfo.InvariantCulture) ?? "000000";

var link = string.Format(OpenAzSurveyLink._SurveyLinkFormat, surveyId, CultureInfo.InvariantCulture);
var link = string.Format(OpenAzSurvey._SurveyLinkFormat, surveyId, CultureInfo.InvariantCulture);

Console.WriteLine($"Opening survey {link}");
Console.WriteLine($"Opening the default browser to {link}");

// TODO [mahuang] Ouput the link for user to copy/paste in case it's not open in the default browser.
var processStartInfo = new ProcessStartInfo();
processStartInfo.FileName = link;
processStartInfo.UseShellExecute = true;
Expand Down
11 changes: 5 additions & 6 deletions tools/Az.Tools.Predictor/Az.Tools.Predictor/InterceptSurvey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,10 @@ if ($shouldIntercept) {
}
}

Write-Host "---------------------------------------------------";
Write-Host "Survey:" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline;
Write-Host " How was your experience using Az predictor?";
Write-Host "";
Write-Host "Run " -NoNewline; Write-Host "Open-AzSurvey" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline; Write-Host " to give us your feedback.";
Write-Host "---------------------------------------------------";

Write-Host "Survey:" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline;
Write-Host " How was your experience using the Az Predictor module?";
Write-Host "";
Write-Host "Run " -NoNewline; Write-Host "Open-AzSurvey" -ForegroundColor $Host.PrivateData.VerboseBackgroundColor -BackgroundColor $host.PrivateData.VerboseForegroundColor -NoNewline; Write-Host " to give us your feedback.";
Write-Host "---------------------------------------------------";
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ internal static class JsonUtilities
/// 2. Use string instead of number for enums.
/// 3. Use the string values (camel case) for enum.
/// 4. Use the string values for the type <see cref="System.Version"/> in the properties and <see cref="System.Collections.Generic.IDictionary&lt;TKey, TValue>"/> keys.
/// 3. Skip the property if the value is null.
/// 5. Skip the property if the value is null.
/// </summary>
public static readonly JsonSerializerOptions DefaultSerializerOptions = new JsonSerializerOptions()
{
Expand Down

0 comments on commit 948025f

Please sign in to comment.