Skip to content
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

New command: remove enterprise application. #6127

Closed
wants to merge 2 commits into from

Conversation

Saurabh7019
Copy link
Contributor

Closes #6111

@Saurabh7019 Saurabh7019 marked this pull request as ready for review July 8, 2024 12:21
@milanholemans
Copy link
Contributor

Thank you @Saurabh7019, we'll try to review it ASAP!

Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done @Saurabh7019, we're almost there. Let's first change some things before we continue.

docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
@milanholemans milanholemans marked this pull request as draft July 18, 2024 21:54
@Saurabh7019 Saurabh7019 marked this pull request as ready for review July 21, 2024 20:32
@milanholemans
Copy link
Contributor

Hi @Saurabh7019, as discussed here: #6155, I think we should rename the options. Sorry for that!
I'll update the spec accordingly.

@milanholemans milanholemans marked this pull request as draft July 21, 2024 20:35
@Saurabh7019 Saurabh7019 marked this pull request as ready for review July 21, 2024 21:11
Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're almost there. Let's do a couple of fine-tunings before we merge it.

docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/entra/enterpriseapp/enterpriseapp-remove.mdx Outdated Show resolved Hide resolved
@milanholemans milanholemans marked this pull request as draft August 3, 2024 21:38
@Saurabh7019 Saurabh7019 marked this pull request as ready for review August 5, 2024 12:36
Copy link
Contributor

@milanholemans milanholemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Found 2 more small things we could/should fix, but that's something I could fix while merging the PR as well.

Comment on lines +147 to +152
let spMatchQuery: string = '';
if (options.displayName) {
spMatchQuery = `displayName eq '${formatting.encodeQueryParameter(options.displayName)}'`;
}

const spItemsResponse = await odata.getAllItems<{ id: string }>(`${this.resource}/v1.0/servicePrincipals?$filter=${spMatchQuery}&$select=id`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we merge this code together now?

Comment on lines +196 to +202
sinon.stub(request, 'get').callsFake(async (opts) => {
if (opts.url === `https://graph.microsoft.com/v1.0/servicePrincipals?$filter=appId eq '65415bb1-9267-4313-bbf5-ae259732ee12'&$select=id`) {
return spAppInfo;
}

throw 'Invalid request';
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need this stub anymore, right?

@milanholemans
Copy link
Contributor

Merged manually, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command: remove enterprise application
2 participants