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

Adds new command site membership list Closes #5980 #6087

Closed
wants to merge 1 commit into from

Conversation

mkm17
Copy link
Contributor

@mkm17 mkm17 commented Jun 10, 2024

Adds new command site membership list Closes #5980

Closes #5980

@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch 2 times, most recently from f5d3dd8 to cdddadf Compare June 10, 2024 06:22
@milanholemans
Copy link
Contributor

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

@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from cdddadf to 38f1b08 Compare June 15, 2024 08:19
@mkm17
Copy link
Contributor Author

mkm17 commented Jul 3, 2024

Here, the same change mentioned in this code review will be applied: using spo.getSiteId() to get the site ID in admin mode.

@Jwaegebaert
Copy link
Contributor

Hey @mkm17, there seem to be some conflicts. Could you take a look at them?

@milanholemans milanholemans marked this pull request as draft July 9, 2024 11:18
@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from 38f1b08 to bc2e96e Compare July 10, 2024 16:11
@mkm17 mkm17 marked this pull request as ready for review July 10, 2024 19:51
@mkm17 mkm17 marked this pull request as draft July 28, 2024 14:06
@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch 2 times, most recently from 5066cf0 to f05b5a8 Compare July 28, 2024 15:20
@mkm17 mkm17 marked this pull request as ready for review July 28, 2024 15:24
@milanholemans milanholemans self-assigned this Aug 3, 2024
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.

Cool command @mkm17! Right now it's a bit clearer to me what the difference is between the spo web get variant.
Anyway, could you have a look at the remarks I made?

src/m365/spo/commands.ts Show resolved Hide resolved
docs/docs/cmd/spo/tenant/tenant-site-membership-list.mdx Outdated Show resolved Hide resolved
docs/docs/cmd/spo/tenant/tenant-site-membership-list.mdx Outdated Show resolved Hide resolved
@milanholemans milanholemans marked this pull request as draft August 4, 2024 00:21
@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from f05b5a8 to 3757bba Compare August 11, 2024 15:47
@mkm17 mkm17 marked this pull request as ready for review August 11, 2024 15:52
@mkm17
Copy link
Contributor Author

mkm17 commented Aug 11, 2024

Thank you @milanholemans for the review, I have made the requested changes, and added some comments :)

@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from 3757bba to ae6887f Compare August 11, 2024 17:20
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 making good progress. Let's change a few more things before we continue.

@milanholemans milanholemans marked this pull request as draft August 15, 2024 11:57
@mkm17
Copy link
Contributor Author

mkm17 commented Sep 6, 2024

Hi @milanholemans, apologies for the delay in introducing the changes. I won't have access to a PC this weekend, but I’ll aim to send the updates at the beginning of next week.

@milanholemans
Copy link
Contributor

Hi @milanholemans, apologies for the delay in introducing the changes. I won't have access to a PC this weekend, but I’ll aim to send the updates at the beginning of next week.

Thanks for the update @mkm17, take your time 😊

@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch 2 times, most recently from 42e296c to d6694bc Compare September 12, 2024 17:05
@mkm17 mkm17 marked this pull request as ready for review September 12, 2024 17:10
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.

I was able to do another review. Let's change a few more things.

src/utils/spo.ts Outdated Show resolved Hide resolved
src/utils/spo.ts Outdated Show resolved Hide resolved
@milanholemans milanholemans marked this pull request as draft September 20, 2024 21:02
@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from d6694bc to 23fb121 Compare September 25, 2024 21:52
@mkm17 mkm17 marked this pull request as ready for review September 26, 2024 13:46
@milanholemans
Copy link
Contributor

Hi @mkm17, Could you please resolve the conflicts and rebase them with the latest main?

@milanholemans milanholemans marked this pull request as draft October 15, 2024 21:10
@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch 2 times, most recently from 9938294 to cedabf9 Compare October 16, 2024 13:32
@mkm17 mkm17 marked this pull request as ready for review October 16, 2024 13:37
@mkm17
Copy link
Contributor Author

mkm17 commented Oct 16, 2024

Hi @mkm17, Could you please resolve the conflicts and rebase them with the latest main?

@milanholemans ok done.

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 ready to be shipped!

throw 'Invalid request';
});

sinon.stub(spo, 'getSiteAdminPropertiesByUrl').resolves({ SiteId: siteId } as any);
Copy link
Contributor

Choose a reason for hiding this comment

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

Since we have to use this in almost every test, let's move it to the before hook so we avoid repetition.

}

public get description(): string {
return `Retrieve information about default site groups' membership`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's make the same edit in the docs.

Suggested change
return `Retrieve information about default site groups' membership`;
return `Retrieves information about default site groups' membership`;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@milanholemans, Ok I have changed these last two things. Thanks once again!

@mkm17 mkm17 force-pushed the issues/5980_get_site_membership_list branch from cedabf9 to 0df6d49 Compare October 17, 2024 20:39
@milanholemans
Copy link
Contributor

Merged manually, thanks for the new command!

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: m365 spo tenant site membership list
3 participants