-
Notifications
You must be signed in to change notification settings - Fork 327
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
Enhancement: Added copilot alias to chatbot commands #6386
Conversation
Hi @ktskumar, could you fix the error in the docs? Seems like you'll have to update the navigation nodes to the pages.
|
Hi @milanholemans, I have updated the navigation code. Pls review it |
Seems like there are still broken links in the release notes, could you have a look at it? |
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.
Nice start, let's do a couple of improvements before we merge it.
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.
Let's do a couple of changes to finish it.
it('defines alias', () => { | ||
const alias = command.alias(); | ||
assert.notStrictEqual(typeof alias, 'undefined'); | ||
}); |
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.
Let's remove this test.
@@ -88,22 +92,23 @@ class PpChatbotGetCommand extends PowerPlatformCommand { | |||
} | |||
|
|||
public async commandAction(logger: Logger, args: CommandArgs): Promise<void> { | |||
await this.showDeprecationWarning(logger, "pp chatbot get", "pp copilot get"); |
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.
Let's use the command names from the command file commands.CHATBOT_GET
and commands.COPILOT_GET
.
it('defines alias', () => { | ||
const alias = command.alias(); | ||
assert.notStrictEqual(typeof alias, 'copilot'); | ||
}); |
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.
Let's remove this test.
@@ -54,8 +58,9 @@ class PpChatbotListCommand extends PowerPlatformCommand { | |||
} | |||
|
|||
public async commandAction(logger: Logger, args: CommandArgs): Promise<void> { | |||
await this.showDeprecationWarning(logger, "pp chatbot list", "pp copilot list"); |
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.
Let's use the command names from the command file.
it('defines alias', () => { | ||
const alias = command.alias(); | ||
assert.notStrictEqual(typeof alias, 'undefined'); | ||
}); |
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.
Let's remove this test.
@@ -90,45 +94,46 @@ class PpChatbotRemoveCommand extends PowerPlatformCommand { | |||
} | |||
|
|||
public async commandAction(logger: Logger, args: CommandArgs): Promise<void> { | |||
await this.showDeprecationWarning(logger, "pp chatbot remove", "pp copilot remove"); |
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.
Let's use command names from the command file.
docs/docusaurus.config.ts
Outdated
if (routePath.includes('/copilot')) { | ||
return [routePath.replace('/copilot', '/chatbot')]; | ||
} |
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.
if (routePath.includes('/copilot')) { | |
return [routePath.replace('/copilot', '/chatbot')]; | |
} | |
if (routePath.includes('/copilot/copilot-')) { | |
return [routePath.replace('/copilot/copilot-', '/chatbot/chatbot-')]; | |
} |
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.
Nothing more to add!
Merged manually, thank you! |
Closes #6261
Enhancement:
Updated below commands,
[☑] Rename
pp chatbot get
topp copilot get
[☑] Add alias
pp chatbot get
to renamed command[☑] Rename
pp chatbot list
topp copilot list
[☑] Add alias
pp chatbot list
to renamed command[☑] Rename
pp chatbot remove
topp copilot remove
[☑] Add alias
pp chatbot remove
to renamed command