-
Notifications
You must be signed in to change notification settings - Fork 172
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
fix(bot): bot name conflicts #1098
Changes from 3 commits
6c73da6
9cfa15b
dbab746
233f044
eaf559a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -401,6 +401,9 @@ export class TeamsBotImpl { | |
`Before running this bot, please manually update bot's message endpoint(${this.config.provision.siteEndpoint}${CommonStrings.MESSAGE_ENDPOINT_SUFFIX}). Click 'Get Help' button for more details.`, | ||
Links.UPDATE_MESSAGE_ENDPOINT | ||
); | ||
Logger.info( | ||
`Please manually update bot's message endpoint(${this.config.provision.siteEndpoint}${CommonStrings.MESSAGE_ENDPOINT_SUFFIX}).` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this sentence is the same as above, I'd like to have a variable to for it to remove duplicate code. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. updated. |
||
); | ||
break; | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
export class Messages { | ||
public static readonly SomethingIsInvalidWithValue = (something: string, value: string): string => | ||
`'${something}' is invalid with '${value}'.`; | ||
`'${something}' is invalid with value '${value}'.`; | ||
public static readonly InputValidValueForSomething = (something: string): string => | ||
`Please select valid values for '${something}'.`; | ||
public static readonly SomethingIsMissing = (something: string): string => | ||
|
@@ -32,12 +32,12 @@ export class Messages { | |
"Please click 'Get Help' button for more details."; | ||
public static readonly ClickIssueButtonToReportIssue = | ||
"Please click 'Report Issue' button to report the issue."; | ||
public static readonly CommandFailWithMessage = (command: string, message: string): string => | ||
`Run '${command}' failed with message: ${message}`; | ||
public static readonly CommandExecutionFailed = (command: string): string => | ||
`Run '${command}' failed.`; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about "Failed to run ${}" ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok for me. |
||
public static readonly DoSthBeforeSth = (sth: string, beforeSth: string): string => | ||
`Perform command '${sth}' before '${beforeSth}'.`; | ||
public static readonly FailToCallAppStudio = (apiName: string): string => | ||
`Failed to execute '${apiName}'.`; | ||
public static readonly FailToCallAppStudioForCheckingAADApp = | ||
"Failed to call app studio's api to check aad app's existence."; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need to use "App Studio" which is aligned with official name? Same for "AAD application existence" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay for me. |
||
public static readonly SuccessfullyRetrievedTemplateZip = (zipUrl: string): string => | ||
`Successfully retrieved zip package from ${zipUrl}.`; | ||
public static readonly FallingBackToUseLocalTemplateZip = | ||
|
@@ -96,6 +96,8 @@ export class Messages { | |
"The subscription didn't register to use namespace 'Microsoft.BotService'."; | ||
public static readonly MaxFreeAppServicePlanIsTen = | ||
"The maximum number of Free App Service Plan allowed in a Subscription is 10."; | ||
public static readonly BotNameAlreadyRegistered = | ||
"The bot name is already registered to another bot application."; | ||
|
||
// Suggestions | ||
public static readonly RetryTheCurrentStep = "Please retry the current step."; | ||
|
@@ -107,4 +109,10 @@ export class Messages { | |
public static readonly RecreateTheProject = "Please recreate the project."; | ||
public static readonly CheckCommandOutputAndTryToFixIt = | ||
"Please check the command output and try to fix it."; | ||
public static readonly DeleteExistingBotChannelRegistration = | ||
"Please delete existing azure bot channel registrations."; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
public static readonly DeleteBotAfterAzureAccountSwitching = | ||
"If azure account is switched, don't forget to delete azure bot channel registration under the previous account."; | ||
public static readonly CheckOutputLogAndTryToFix = | ||
"Please check log in output channel and try to fix this issue."; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What if the error message is changed from SDK?