Skip to content

Consolidates spo site list and spo site classic list commands. Closes #1492#3456

Closed
martinlingstuyl wants to merge 1 commit intopnp:mainfrom
martinlingstuyl:consolidateSPSiteList
Closed

Consolidates spo site list and spo site classic list commands. Closes #1492#3456
martinlingstuyl wants to merge 1 commit intopnp:mainfrom
martinlingstuyl:consolidateSPSiteList

Conversation

@martinlingstuyl
Copy link
Copy Markdown
Contributor

Closes #1492

This PR consolidates spo site list and spo site classic list commands.

Remarks

  • I've kept the spo site classic list code and docs files in the source because of potential breaking changes. I've added a deprecation notice in the docs as well as in the command.
  • The spo site list was originally built with a default type (by default it lists group connected team sites) I've kept this in to forego a breaking change, but I propose to remove the default in the next major version.
  • I've made the choice to only allow --includeOneDriveSites together with an explicit --type All. This is to have clarity, regarding the default of the point above. After the next major version, type All is default, and you would not need to specify it explicitly.
  • I've made the choice to include the webTemplate option as an alternative to type. I've thought about combining them, but I think this is clearer for the end user.

@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Jul 8, 2022

I agree on removing the default for the list behavior

@Adam-it Adam-it self-assigned this Jul 8, 2022
Copy link
Copy Markdown
Member

@Adam-it Adam-it left a comment

Choose a reason for hiding this comment

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

@martinlingstuyl good job 👍 you rock 🤩
I tested it and works really good 👍👍
I only have a one small improvement comment I noticed which might be just done along the merge.
Probably you would like to merge this yourself or wait for someone else to have a look at this as well so not merging it now but do let me know if you would like me to do it so you may focus on the important stuff 💪

let siteType = options.type;

if (!siteType) {
siteType = 'TeamSite';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think if this is empty we could just return return 'GROUP#0' 🤔 not needed to fill this variable with some value in order to proceed in further logic if we may stop the complexity (as simple as is) already here?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I will do it when merging

@Adam-it Adam-it removed their assignment Jul 8, 2022
@Adam-it Adam-it self-assigned this Jul 17, 2022
@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Jul 17, 2022

BTW what a nice easter egg in the PR index 3->4->5->6 🤩

@Adam-it Adam-it removed their assignment Jul 17, 2022
@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Jul 17, 2022

merged manually. Thanks for your awesome work 🤩

@Adam-it Adam-it closed this Jul 17, 2022
@martinlingstuyl martinlingstuyl deleted the consolidateSPSiteList branch July 18, 2022 03:59
@martinlingstuyl
Copy link
Copy Markdown
Contributor Author

BTW what a nice easter egg in the PR index 3->4->5->6 🤩

?? What line nrs?

@Adam-it
Copy link
Copy Markdown
Member

Adam-it commented Jul 18, 2022

BTW what a nice easter egg in the PR index 3->4->5->6 🤩

?? What line nrs?

I mean the PR id is 3456 😋. What a perfect number. Almost like 1234 😉

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.

Consolidate spo site list and spo site classic list commands

2 participants