-
Notifications
You must be signed in to change notification settings - Fork 328
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
Extend 'team user app remove' command with --userName (UPN) . Closes #5446 #5457
Conversation
Thank you @reshmee011! Seems like the pipeline fails, could you have a look please? |
@milanholemans: I will look into resolving the failures. Hope all is well with you. |
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.
Hey @reshmee011, it seems that we could simplify the code and speed up its execution. Let's adjust it before we merge it, k?
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.
Very nicely done with a few cosmetic changes I've done when merging the PR 👏
@@ -13,6 +14,7 @@ interface CommandArgs { | |||
interface Options extends GlobalOptions { | |||
id: string; | |||
userId: string; | |||
userName: string; |
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.
Since the user can specify either userName
or userId
both should be marked as optional
const endpoint: string = `${this.resource}/v1.0`; | ||
|
||
const requestOptions: CliRequestOptions = { | ||
url: `${endpoint}/users/${args.options.userId}/teamwork/installedApps/${args.options.id}`, | ||
url: `${endpoint}/users/${formatting.encodeQueryParameter(userId)}/teamwork/installedApps/${args.options.id}`, |
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.
Very nice!
Merged manually. Thank you! 👏 |
Extend 'team user app remove' command with --userName (UPN) . Closes #5446